vdr-plugin-softhddevice-drm-gles 1.6.2
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
27typedef enum {
30 Red
32
36class cSoftHdMenu : public cOsdMenu {
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 SelectPlaylistMenu(void);
56 void FindFileMenu(std::string, FILE *);
57 void MakePlayList(const char *, const char *);
58 bool IsValidMediaFile(const char *);
59 void PlayMedia(const char *);
60 std::string m_path;
61 std::string m_lastItem;
62 std::string m_playlist;
63};
64
67#endif
Output Device Implementation.
Plugin Main Menu.
Definition softhdmenu.h:36
std::string m_lastItem
Definition softhdmenu.h:61
std::string m_playlist
Definition softhdmenu.h:62
HotkeyState m_hotkeyState
Definition softhdmenu.h:50
static cSoftHdMenu * Menu()
Definition softhdmenu.h:41
cSoftHdDevice * m_pDevice
Definition softhdmenu.h:48
std::string m_path
Definition softhdmenu.h:60
void MainMenu(void)
Create main menu.
void PlayListMenu(void)
Create mediaplayer playlist menu.
virtual ~cSoftHdMenu()
virtual eOSState ProcessKey(eKeys)
Handle key event.
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...
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()
HotkeyState
Definition softhdmenu.h:27
void SelectPlaylistMenu(void)
Create mediaplayer select playlist menu.
@ Initial
Definition softhdmenu.h:28
@ Red
Definition softhdmenu.h:30
@ Blue
Definition softhdmenu.h:29
static cSoftHdMenu * pSoftHdMenu
Definition softhdmenu.h:40