vdr-plugin-softhddevice-drm-gles 1.6.4-d0291bb
softhdmenu.h
Go to the documentation of this file.
1// SPDX-License-Identifier: AGPL-3.0-or-later
2
13#ifndef __SOFTHDMENU_H
14#define __SOFTHDMENU_H
15
16#include <string>
17
18#include <vdr/osdbase.h>
19
20class cSoftHdDevice;
21
32typedef enum {
35 Red
37
43class cSoftHdMenu : public cOsdMenu {
44public:
45 cSoftHdMenu(const char *, cSoftHdDevice *, int = 0, int = 0, int = 0, int = 0, int = 0);
46 virtual ~cSoftHdMenu();
48 static cSoftHdMenu *Menu() { return pSoftHdMenu; }
49
50 // mediaplayer
51 void PlayListMenu(void);
52 virtual eOSState ProcessKey(eKeys);
53
54private:
56
58 void HandleHotKey(int);
59
60 // mediaplayer
61 void MainMenu(void);
62 void SelectPlaylistMenu(void);
63 void FindFileMenu(std::string, FILE *);
64 void MakePlayList(const char *, const char *);
65 bool IsValidMediaFile(const char *);
66 void PlayMedia(const char *);
67 std::string m_path;
68 std::string m_lastItem;
69 std::string m_playlist;
70};
71
72#endif
Output Device Implementation.
Plugin Main Menu.
Definition softhdmenu.h:43
void MainMenu(void)
Create main menu.
void PlayListMenu(void)
Create mediaplayer playlist menu.
std::string m_lastItem
Definition softhdmenu.h:68
virtual ~cSoftHdMenu()
virtual eOSState ProcessKey(eKeys)
Handle key event.
std::string m_playlist
Definition softhdmenu.h:69
void PlayMedia(const char *)
Play media file.
bool IsValidMediaFile(const char *)
Test if it's a media file - at least if it has the right file extension...
HotkeyState m_hotkeyState
Definition softhdmenu.h:57
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:48
cSoftHdDevice * m_pDevice
Definition softhdmenu.h:55
void SelectPlaylistMenu(void)
Create mediaplayer select playlist menu.
std::string m_path
Definition softhdmenu.h:67
HotkeyState
Hotkey States.
Definition softhdmenu.h:32
@ Initial
Definition softhdmenu.h:33
@ Red
Definition softhdmenu.h:35
@ Blue
Definition softhdmenu.h:34
static cSoftHdMenu * pSoftHdMenu
Main Menu Instance.
Definition softhdmenu.h:47