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
20
class
cSoftHdDevice
;
21
27
typedef
enum
{
28
Initial
,
29
Blue
,
30
Red
31
}
HotkeyState
;
32
36
class
cSoftHdMenu
:
public
cOsdMenu {
37
public
:
38
cSoftHdMenu
(
const
char
*,
cSoftHdDevice
*,
int
= 0,
int
= 0,
int
= 0,
int
= 0,
int
= 0);
39
virtual
~cSoftHdMenu
();
40
static
cSoftHdMenu
*
pSoftHdMenu
;
41
static
cSoftHdMenu
*
Menu
() {
return
pSoftHdMenu
; }
42
43
// mediaplayer
44
void
PlayListMenu
(
void
);
45
virtual
eOSState
ProcessKey
(
eKeys
);
46
47
private
:
48
cSoftHdDevice
*
m_pDevice
;
49
50
HotkeyState
m_hotkeyState
=
HotkeyState::Initial
;
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
cSoftHdDevice
Output Device Implementation.
Definition
softhddevice.h:106
cSoftHdMenu
Plugin Main Menu.
Definition
softhdmenu.h:36
cSoftHdMenu::m_lastItem
std::string m_lastItem
Definition
softhdmenu.h:61
cSoftHdMenu::m_playlist
std::string m_playlist
Definition
softhdmenu.h:62
cSoftHdMenu::m_hotkeyState
HotkeyState m_hotkeyState
Definition
softhdmenu.h:50
cSoftHdMenu::Menu
static cSoftHdMenu * Menu()
Definition
softhdmenu.h:41
cSoftHdMenu::m_pDevice
cSoftHdDevice * m_pDevice
Definition
softhdmenu.h:48
cSoftHdMenu::m_path
std::string m_path
Definition
softhdmenu.h:60
cSoftHdMenu::MainMenu
void MainMenu(void)
Create main menu.
Definition
softhdmenu.cpp:81
cSoftHdMenu::PlayListMenu
void PlayListMenu(void)
Create mediaplayer playlist menu.
Definition
softhdmenu.cpp:347
cSoftHdMenu::~cSoftHdMenu
virtual ~cSoftHdMenu()
Definition
softhdmenu.cpp:53
cSoftHdMenu::ProcessKey
virtual eOSState ProcessKey(eKeys)
Handle key event.
Definition
softhdmenu.cpp:172
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::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
HotkeyState
HotkeyState
Definition
softhdmenu.h:27
cSoftHdMenu::SelectPlaylistMenu
void SelectPlaylistMenu(void)
Create mediaplayer select playlist menu.
Definition
softhdmenu.cpp:368
Initial
@ Initial
Definition
softhdmenu.h:28
Red
@ Red
Definition
softhdmenu.h:30
Blue
@ Blue
Definition
softhdmenu.h:29
cSoftHdMenu::pSoftHdMenu
static cSoftHdMenu * pSoftHdMenu
Definition
softhdmenu.h:40
vector
Definition
drmhdr.h:33
softhdmenu.h
Generated by
1.9.8