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
20
class
cSoftHdDevice
;
21
32
typedef
enum
{
33
Initial
,
34
Blue
,
35
Red
36
}
HotkeyState
;
37
43
class
cSoftHdMenu
:
public
cOsdMenu {
44
public
:
45
cSoftHdMenu
(
const
char
*,
cSoftHdDevice
*,
int
= 0,
int
= 0,
int
= 0,
int
= 0,
int
= 0);
46
virtual
~cSoftHdMenu
();
47
static
cSoftHdMenu
*
pSoftHdMenu
;
48
static
cSoftHdMenu
*
Menu
() {
return
pSoftHdMenu
; }
49
50
// mediaplayer
51
void
PlayListMenu
(
void
);
52
virtual
eOSState
ProcessKey
(
eKeys
);
53
54
private
:
55
cSoftHdDevice
*
m_pDevice
;
56
57
HotkeyState
m_hotkeyState
=
HotkeyState::Initial
;
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
cSoftHdDevice
Output Device Implementation.
Definition
softhddevice.h:116
cSoftHdMenu
Plugin Main Menu.
Definition
softhdmenu.h:43
cSoftHdMenu::MainMenu
void MainMenu(void)
Create main menu.
Definition
softhdmenu.cpp:76
cSoftHdMenu::PlayListMenu
void PlayListMenu(void)
Create mediaplayer playlist menu.
Definition
softhdmenu.cpp:347
cSoftHdMenu::m_lastItem
std::string m_lastItem
Definition
softhdmenu.h:68
cSoftHdMenu::~cSoftHdMenu
virtual ~cSoftHdMenu()
Definition
softhdmenu.cpp:44
cSoftHdMenu::ProcessKey
virtual eOSState ProcessKey(eKeys)
Handle key event.
Definition
softhdmenu.cpp:172
cSoftHdMenu::m_playlist
std::string m_playlist
Definition
softhdmenu.h:69
cSoftHdMenu::PlayMedia
void PlayMedia(const char *)
Play media file.
Definition
softhdmenu.cpp:490
cSoftHdMenu::IsValidMediaFile
bool IsValidMediaFile(const char *)
Test if it's a media file - at least if it has the right file extension...
Definition
softhdmenu.cpp:506
cSoftHdMenu::m_hotkeyState
HotkeyState m_hotkeyState
Definition
softhdmenu.h:57
cSoftHdMenu::MakePlayList
void MakePlayList(const char *, const char *)
Make a play list.
Definition
softhdmenu.cpp:463
cSoftHdMenu::FindFileMenu
void FindFileMenu(std::string, FILE *)
Create mediaplayer sub menu find file or make a play list.
Definition
softhdmenu.cpp:395
cSoftHdMenu::HandleHotKey
void HandleHotKey(int)
Handle a key code which was compose by hotkey handling in ProcessKey()
Definition
softhdmenu.cpp:134
cSoftHdMenu::Menu
static cSoftHdMenu * Menu()
Definition
softhdmenu.h:48
cSoftHdMenu::m_pDevice
cSoftHdDevice * m_pDevice
Definition
softhdmenu.h:55
cSoftHdMenu::SelectPlaylistMenu
void SelectPlaylistMenu(void)
Create mediaplayer select playlist menu.
Definition
softhdmenu.cpp:368
cSoftHdMenu::m_path
std::string m_path
Definition
softhdmenu.h:67
HotkeyState
HotkeyState
Hotkey States.
Definition
softhdmenu.h:32
Initial
@ Initial
Definition
softhdmenu.h:33
Red
@ Red
Definition
softhdmenu.h:35
Blue
@ Blue
Definition
softhdmenu.h:34
cSoftHdMenu::pSoftHdMenu
static cSoftHdMenu * pSoftHdMenu
Main Menu Instance.
Definition
softhdmenu.h:47
vector
Definition
drmhdr.h:33
softhdmenu.h
Generated by
1.9.8