vdr-plugin-softhddevice-drm-gles 1.4.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
cSoftHdMenu Class Reference

#include <softhdmenu.h>

Collaboration diagram for cSoftHdMenu:
Collaboration graph
[legend]

Public Member Functions

 cSoftHdMenu (const char *, cSoftHdDevice *, int=0, int=0, int=0, int=0, int=0)
 Softhddevice menu constructor. More...
 
virtual ~cSoftHdMenu ()
 Softhddevice menu destructor. More...
 
void PlayListMenu (void)
 Create playlist menu. More...
 
virtual eOSState ProcessKey (eKeys)
 Handle key event. More...
 

Static Public Member Functions

static cSoftHdMenuMenu ()
 

Static Public Attributes

static cSoftHdMenupSoftHdMenu = NULL
 

Private Member Functions

void HandleHotKey (int)
 Handle a key code which was compose by hotkey handling in ProcessKey() More...
 
void MainMenu (void)
 Create main menu. More...
 
void SelectPL (void)
 Create select playlist menu. More...
 
void FindFile (string, FILE *)
 Create sub menu find file or make a play list. More...
 
void MakePlayList (const char *, const char *)
 Make a play list. More...
 
int TestMedia (const char *)
 Test if it's a media file. More...
 
void PlayMedia (const char *)
 Play media file. More...
 

Private Attributes

cSoftHdDevicem_pDevice
 
HotkeyState m_hotkeyState
 
string m_path
 
string m_lastItem
 
string m_playlist
 

Detailed Description

Definition at line 35 of file softhdmenu.h.

Constructor & Destructor Documentation

◆ cSoftHdMenu()

cSoftHdMenu::cSoftHdMenu ( const char *  title,
cSoftHdDevice device,
int  c0 = 0,
int  c1 = 0,
int  c2 = 0,
int  c3 = 0,
int  c4 = 0 
)

Softhddevice menu constructor.

Definition at line 59 of file softhdmenu.cpp.

References cSoftHdControl::Control(), Initial, L_MEDIA, LOGDEBUG2, m_hotkeyState, m_pDevice, m_playlist, MainMenu(), PlayListMenu(), and pSoftHdMenu.

◆ ~cSoftHdMenu()

cSoftHdMenu::~cSoftHdMenu ( )
virtual

Softhddevice menu destructor.

Definition at line 79 of file softhdmenu.cpp.

References pSoftHdMenu.

Member Function Documentation

◆ FindFile()

void cSoftHdMenu::FindFile ( string  searchPath,
FILE *  playlist 
)
private

Create sub menu find file or make a play list.

Parameters
SearchPathpath to start search mediafile
playlistif there is a play list write to play list else make a new menu

Definition at line 369 of file softhdmenu.cpp.

References FindFile(), LOGERROR, m_lastItem, m_playlist, and TestMedia().

Referenced by FindFile(), MakePlayList(), and ProcessKey().

◆ HandleHotKey()

void cSoftHdMenu::HandleHotKey ( int  code)
private

◆ MainMenu()

void cSoftHdMenu::MainMenu ( void  )
private

Create main menu.

Definition at line 107 of file softhdmenu.cpp.

References SeparatorName(), and SeparatorSpace().

Referenced by cSoftHdMenu().

◆ MakePlayList()

void cSoftHdMenu::MakePlayList ( const char *  target,
const char *  mode 
)
private

Make a play list.

Parameters
Targetpath to start search mediafiles
modeopen file mode

Definition at line 436 of file softhdmenu.cpp.

References FindFile(), m_path, m_playlist, and TestMedia().

Referenced by ProcessKey().

◆ Menu()

static cSoftHdMenu * cSoftHdMenu::Menu ( )
inlinestatic

Definition at line 41 of file softhdmenu.h.

References pSoftHdMenu.

Referenced by cSoftHdPlayer::Action().

◆ PlayListMenu()

void cSoftHdMenu::PlayListMenu ( void  )

◆ PlayMedia()

void cSoftHdMenu::PlayMedia ( const char *  name)
private

Play media file.

Parameters
namefile name

Definition at line 461 of file softhdmenu.cpp.

References cSoftHdControl::Control(), LOGERROR, m_path, and m_pDevice.

Referenced by ProcessKey().

◆ ProcessKey()

eOSState cSoftHdMenu::ProcessKey ( eKeys  key)
virtual

◆ SelectPL()

void cSoftHdMenu::SelectPL ( void  )
private

Create select playlist menu.

Definition at line 343 of file softhdmenu.cpp.

References LOGERROR.

Referenced by ProcessKey().

◆ TestMedia()

int cSoftHdMenu::TestMedia ( const char *  name)
private

Test if it's a media file.

Parameters
namefile name
Returns
true if it's a media file

Definition at line 477 of file softhdmenu.cpp.

Referenced by FindFile(), MakePlayList(), and ProcessKey().

Member Data Documentation

◆ m_hotkeyState

HotkeyState cSoftHdMenu::m_hotkeyState
private

Definition at line 50 of file softhdmenu.h.

Referenced by cSoftHdMenu(), and ProcessKey().

◆ m_lastItem

string cSoftHdMenu::m_lastItem
private

Definition at line 61 of file softhdmenu.h.

Referenced by FindFile(), and ProcessKey().

◆ m_path

string cSoftHdMenu::m_path
private

Definition at line 60 of file softhdmenu.h.

Referenced by MakePlayList(), PlayMedia(), and ProcessKey().

◆ m_pDevice

cSoftHdDevice* cSoftHdMenu::m_pDevice
private

Definition at line 48 of file softhdmenu.h.

Referenced by cSoftHdMenu(), HandleHotKey(), PlayMedia(), and ProcessKey().

◆ m_playlist

string cSoftHdMenu::m_playlist
private

Definition at line 62 of file softhdmenu.h.

Referenced by cSoftHdMenu(), FindFile(), MakePlayList(), and ProcessKey().

◆ pSoftHdMenu

cSoftHdMenu * cSoftHdMenu::pSoftHdMenu = NULL
static

Definition at line 40 of file softhdmenu.h.

Referenced by cSoftHdMenu(), Menu(), and ~cSoftHdMenu().


The documentation for this class was generated from the following files: