vdr-plugin-softhddevice-drm-gles 1.5.9-20e15de
softhdmenu.h
Go to the documentation of this file.
1
21#ifndef __SOFTHDMENU_H
22#define __SOFTHDMENU_H
23
24#include <string>
25
26#include <vdr/osdbase.h>
27
28class cSoftHdDevice;
29
30/*****************************************************************************
31 * cSoftHdMenu
32 ****************************************************************************/
33
34typedef enum {
37 Red
39
40class cSoftHdMenu : public cOsdMenu
41{
42public:
43 cSoftHdMenu(const char *, cSoftHdDevice *, int = 0, int = 0, int = 0, int = 0, int = 0);
44 virtual ~cSoftHdMenu();
46 static cSoftHdMenu *Menu() { return pSoftHdMenu; }
47
48 // mediaplayer
49 void PlayListMenu(void);
50 virtual eOSState ProcessKey(eKeys);
51
52private:
54
56 void HandleHotKey(int);
57
58 // mediaplayer
59 void MainMenu(void);
60 void SelectPlaylistMenu(void);
61 void FindFileMenu(std::string, FILE *);
62 void MakePlayList(const char *, const char *);
63 int IsValidMediaFile(const char *);
64 void PlayMedia(const char *);
65 std::string m_path;
66 std::string m_lastItem;
67 std::string m_playlist;
68};
69
70#endif
int IsValidMediaFile(const char *)
Test if it's a media file - at least if it has the right file extension...
static cSoftHdMenu * pSoftHdMenu
Definition softhdmenu.h:45
void MainMenu(void)
Create main menu.
void PlayListMenu(void)
Create mediaplayer playlist menu.
std::string m_lastItem
Definition softhdmenu.h:66
virtual ~cSoftHdMenu()
Softhddevice menu destructor.
virtual eOSState ProcessKey(eKeys)
Handle key event.
std::string m_playlist
Definition softhdmenu.h:67
void PlayMedia(const char *)
Play media file.
HotkeyState m_hotkeyState
Definition softhdmenu.h:55
void MakePlayList(const char *, const char *)
Make a play list.
void FindFileMenu(std::string, FILE *)
Create mediaplayer sub menu find file or make a play list.
void HandleHotKey(int)
Handle a key code which was compose by hotkey handling in ProcessKey()
static cSoftHdMenu * Menu()
Definition softhdmenu.h:46
cSoftHdDevice * m_pDevice
Definition softhdmenu.h:53
void SelectPlaylistMenu(void)
Create mediaplayer select playlist menu.
std::string m_path
Definition softhdmenu.h:65
HotkeyState
Definition softhdmenu.h:34
@ Initial
Definition softhdmenu.h:35
@ Red
Definition softhdmenu.h:37
@ Blue
Definition softhdmenu.h:36