|
vdr-plugin-drmdevice 2.0.0-46418f1
|
Plugin Main Menu. More...
#include <menu.h>
Public Member Functions | |
| cDeviceMenu (const char *, cOutputDevice *, int=0, int=0, int=0, int=0, int=0) | |
| Build main or playlist menu. | |
| virtual | ~cDeviceMenu () |
| void | PlayListMenu (void) |
| Create mediaplayer playlist menu. | |
| virtual eOSState | ProcessKey (eKeys) |
| Handle key event. | |
Static Public Member Functions | |
| static cDeviceMenu * | Menu () |
Static Public Attributes | |
| static cDeviceMenu * | pMenu = NULL |
| Main Menu Instance. | |
Private Member Functions | |
| void | HandleHotKey (int) |
| Handle a key code which was compose by hotkey handling in ProcessKey() | |
| void | MainMenu (void) |
| Create main menu. | |
| void | SelectPlaylistMenu (void) |
| Create mediaplayer select playlist menu. | |
| void | FindFileMenu (std::string, FILE *) |
| Create mediaplayer sub menu find file or make a play list. | |
| void | MakePlayList (const char *, const char *) |
| Make a play list. | |
| bool | IsValidMediaFile (const char *) |
| Test if it's a media file - at least if it has the right file extension... | |
| void | PlayMedia (const char *) |
| Play media file. | |
Private Attributes | |
| cOutputDevice * | m_pDevice |
| HotkeyState | m_hotkeyState = HotkeyState::Initial |
| std::string | m_path |
| std::string | m_lastItem |
| std::string | m_playlist |
| cDeviceMenu::cDeviceMenu | ( | const char * | title, |
| cOutputDevice * | device, | ||
| int | c0 = 0, |
||
| int | c1 = 0, |
||
| int | c2 = 0, |
||
| int | c3 = 0, |
||
| int | c4 = 0 |
||
| ) |
Build main or playlist menu.
Definition at line 28 of file menu.cpp.
References cDrmDeviceControl::Control(), L_MEDIA, LOGDEBUG2, m_playlist, MainMenu(), PlayListMenu(), and pMenu.
Create mediaplayer sub menu find file or make a play list.
| searchPath | path to start search mediafile |
| playlist | if there is a play list write to play list else make a new menu |
Definition at line 395 of file menu.cpp.
References FindFileMenu(), IsValidMediaFile(), LOGERROR, m_lastItem, and m_playlist.
Referenced by FindFileMenu(), MakePlayList(), and ProcessKey().
Handle a key code which was compose by hotkey handling in ProcessKey()
| code | hotkey code to handle (see enum Hotkeys) |
Definition at line 134 of file menu.cpp.
References cOutputDevice::Attach(), ATTACHDEVICE, code, cOutputDevice::Detach(), DETACHDEVICE, m_pDevice, cOutputDevice::PipChannelChange(), PIPCHANNELDOWN, cOutputDevice::PipChannelSwap(), PIPCHANNELSWAP, PIPCHANNELSWITCHBACK, PIPCHANNELUP, PIPPOSITIONSWAP, cOutputDevice::PipSwapPosition(), cOutputDevice::PipToggle(), and PIPTOGGLEONOFF.
Referenced by ProcessKey().
Test if it's a media file - at least if it has the right file extension...
| name | file name |
Definition at line 506 of file menu.cpp.
Referenced by FindFileMenu(), MakePlayList(), and ProcessKey().
Create main menu.
Definition at line 76 of file menu.cpp.
References m_pDevice, SeparatorName(), SeparatorSpace(), and cOutputDevice::UsePip().
Referenced by cDeviceMenu().
Make a play list.
| target | path to start search mediafiles |
| mode | open file mode |
Definition at line 463 of file menu.cpp.
References FindFileMenu(), IsValidMediaFile(), m_path, and m_playlist.
Referenced by ProcessKey().
|
inlinestatic |
Create mediaplayer playlist menu.
Definition at line 347 of file menu.cpp.
References cDrmDeviceControl::Control().
Referenced by cDeviceMenu(), and ProcessKey().
Play media file.
| name | file name |
Definition at line 490 of file menu.cpp.
References cDrmDeviceControl::Control(), LOGERROR, m_path, and m_pDevice.
Referenced by ProcessKey().
Handle key event.
| key | key event |
Definition at line 172 of file menu.cpp.
References Blue, cDrmDeviceControl::Control(), cOutputDevice::Detach(), DETACHKEYBASE, FindFileMenu(), HandleHotKey(), Initial, IsValidMediaFile(), m_hotkeyState, m_lastItem, m_path, m_pDevice, m_playlist, MakePlayList(), cOutputDevice::PipChannelChange(), cOutputDevice::PipChannelSwap(), PIPKEYBASE, cOutputDevice::PipSwapPosition(), cOutputDevice::PipToggle(), PlayListMenu(), PlayMedia(), Red, SelectPlaylistMenu(), and cOutputDevice::UsePip().
Create mediaplayer select playlist menu.
Definition at line 368 of file menu.cpp.
References LOGERROR.
Referenced by ProcessKey().
|
private |
Definition at line 57 of file menu.h.
Referenced by ProcessKey().
|
private |
Definition at line 68 of file menu.h.
Referenced by FindFileMenu(), and ProcessKey().
|
private |
Definition at line 67 of file menu.h.
Referenced by MakePlayList(), PlayMedia(), and ProcessKey().
|
private |
Definition at line 55 of file menu.h.
Referenced by HandleHotKey(), MainMenu(), PlayMedia(), and ProcessKey().
|
private |
Definition at line 69 of file menu.h.
Referenced by cDeviceMenu(), FindFileMenu(), MakePlayList(), and ProcessKey().