vdr-plugin-softhddevice-drm-gles 1.4.0
softhdmenu.h
Go to the documentation of this file.
1
21#ifndef __SOFTHDMENU_H
22#define __SOFTHDMENU_H
23
24#include "softhddevice.h"
25
26/*****************************************************************************
27 * cSoftHdMenu
28 ****************************************************************************/
29
30typedef enum {
32 Blue
34
35class cSoftHdMenu : public cOsdMenu
36{
37public:
38 cSoftHdMenu(const char *, cSoftHdDevice *, int = 0, int = 0, int = 0, int = 0, int = 0);
39 virtual ~cSoftHdMenu();
41 static cSoftHdMenu *Menu() { return pSoftHdMenu; }
42
43 // mediaplayer
44 void PlayListMenu(void);
45 virtual eOSState ProcessKey(eKeys);
46
47private:
49
51 void HandleHotKey(int);
52
53 // mediaplayer
54 void MainMenu(void);
55 void SelectPL(void);
56 void FindFile(string, FILE *);
57 void MakePlayList(const char *, const char *);
58 int TestMedia(const char *);
59 void PlayMedia(const char *);
60 string m_path;
61 string m_lastItem;
62 string m_playlist;
63};
64
65#endif
static cSoftHdMenu * pSoftHdMenu
Definition: softhdmenu.h:40
void MainMenu(void)
Create main menu.
Definition: softhdmenu.cpp:107
string m_lastItem
Definition: softhdmenu.h:61
void PlayListMenu(void)
Create playlist menu.
Definition: softhdmenu.cpp:319
cSoftHdMenu(const char *, cSoftHdDevice *, int=0, int=0, int=0, int=0, int=0)
Softhddevice menu constructor.
Definition: softhdmenu.cpp:59
void SelectPL(void)
Create select playlist menu.
Definition: softhdmenu.cpp:343
virtual ~cSoftHdMenu()
Softhddevice menu destructor.
Definition: softhdmenu.cpp:79
string m_path
Definition: softhdmenu.h:60
virtual eOSState ProcessKey(eKeys)
Handle key event.
Definition: softhdmenu.cpp:172
void PlayMedia(const char *)
Play media file.
Definition: softhdmenu.cpp:461
HotkeyState m_hotkeyState
Definition: softhdmenu.h:50
void FindFile(string, FILE *)
Create sub menu find file or make a play list.
Definition: softhdmenu.cpp:369
void MakePlayList(const char *, const char *)
Make a play list.
Definition: softhdmenu.cpp:436
int TestMedia(const char *)
Test if it's a media file.
Definition: softhdmenu.cpp:477
void HandleHotKey(int)
Handle a key code which was compose by hotkey handling in ProcessKey()
Definition: softhdmenu.cpp:145
static cSoftHdMenu * Menu()
Definition: softhdmenu.h:41
cSoftHdDevice * m_pDevice
Definition: softhdmenu.h:48
string m_playlist
Definition: softhdmenu.h:62
Device class header file.
HotkeyState
Definition: softhdmenu.h:30
@ Initial
Definition: softhdmenu.h:31
@ Blue
Definition: softhdmenu.h:32