|
vdr-plugin-softhddevice-drm-gles 1.5.9-20e15de
|
#include <softhdmenu.h>
Public Member Functions | |
| cSoftHdMenu (const char *, cSoftHdDevice *, int=0, int=0, int=0, int=0, int=0) | |
| Softhddevice menu constructor. | |
| virtual | ~cSoftHdMenu () |
| Softhddevice menu destructor. | |
| void | PlayListMenu (void) |
| Create mediaplayer playlist menu. | |
| virtual eOSState | ProcessKey (eKeys) |
| Handle key event. | |
Static Public Member Functions | |
| static cSoftHdMenu * | Menu () |
Static Public Attributes | |
| static cSoftHdMenu * | pSoftHdMenu = NULL |
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. | |
| int | 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 | |
| cSoftHdDevice * | m_pDevice |
| HotkeyState | m_hotkeyState = HotkeyState::Initial |
| std::string | m_path |
| std::string | m_lastItem |
| std::string | m_playlist |
Definition at line 40 of file softhdmenu.h.
| cSoftHdMenu::cSoftHdMenu | ( | const char * | title, |
| cSoftHdDevice * | device, | ||
| int | c0 = 0, |
||
| int | c1 = 0, |
||
| int | c2 = 0, |
||
| int | c3 = 0, |
||
| int | c4 = 0 |
||
| ) |
Softhddevice menu constructor.
Definition at line 40 of file softhdmenu.cpp.
References cSoftHdControl::Control(), L_MEDIA, LOGDEBUG2, m_playlist, MainMenu(), PlayListMenu(), and pSoftHdMenu.
|
virtual |
|
private |
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 399 of file softhdmenu.cpp.
References FindFileMenu(), IsValidMediaFile(), LOGERROR, m_lastItem, and m_playlist.
Referenced by FindFileMenu(), MakePlayList(), and ProcessKey().
|
private |
Handle a key code which was compose by hotkey handling in ProcessKey()
Definition at line 138 of file softhdmenu.cpp.
References cSoftHdDevice::Attach(), ATTACHDEVICE, code, cSoftHdDevice::Detach(), DETACHDEVICE, m_pDevice, cSoftHdDevice::PipChannelChange(), PIPCHANNELDOWN, cSoftHdDevice::PipChannelSwap(), PIPCHANNELSWAP, PIPCHANNELSWITCHBACK, PIPCHANNELUP, PIPPOSITIONSWAP, cSoftHdDevice::PipSwapPosition(), cSoftHdDevice::PipToggle(), and PIPTOGGLEONOFF.
Referenced by ProcessKey().
|
private |
Test if it's a media file - at least if it has the right file extension...
| name | file name |
Definition at line 510 of file softhdmenu.cpp.
Referenced by FindFileMenu(), MakePlayList(), and ProcessKey().
|
private |
Create main menu.
Definition at line 87 of file softhdmenu.cpp.
References m_pDevice, SeparatorName(), SeparatorSpace(), and cSoftHdDevice::UsePip().
Referenced by cSoftHdMenu().
|
private |
Make a play list.
| target | path to start search mediafiles |
| mode | open file mode |
Definition at line 467 of file softhdmenu.cpp.
References FindFileMenu(), IsValidMediaFile(), m_path, and m_playlist.
Referenced by ProcessKey().
|
inlinestatic |
Definition at line 46 of file softhdmenu.h.
References pSoftHdMenu.
Referenced by cSoftHdPlayer::Action().
| void cSoftHdMenu::PlayListMenu | ( | void | ) |
Create mediaplayer playlist menu.
Definition at line 351 of file softhdmenu.cpp.
References cSoftHdControl::Control(), cSoftHdPlayer::GetCurrentPlaylistEntry(), cSoftHdPlayer::GetFirstPlaylistEntry(), cPlaylistEntry::GetNextEntry(), cPlaylistEntry::OsdItemString(), and cSoftHdControl::Player().
Referenced by cSoftHdPlayer::Action(), cSoftHdMenu(), and ProcessKey().
|
private |
Play media file.
| name | file name |
Definition at line 494 of file softhdmenu.cpp.
References cSoftHdControl::Control(), LOGERROR, m_path, and m_pDevice.
Referenced by ProcessKey().
|
virtual |
Handle key event.
| key | key event |
Definition at line 176 of file softhdmenu.cpp.
References Blue, cSoftHdControl::Control(), cSoftHdDevice::Detach(), DETACHKEYBASE, FindFileMenu(), HandleHotKey(), Initial, IsValidMediaFile(), cSoftHdPlayer::JumpSec(), m_hotkeyState, m_lastItem, m_path, m_pDevice, m_playlist, MakePlayList(), cSoftHdDevice::PipChannelChange(), cSoftHdDevice::PipChannelSwap(), PIPKEYBASE, cSoftHdDevice::PipSwapPosition(), cSoftHdDevice::PipToggle(), cSoftHdControl::Player(), PlayListMenu(), PlayMedia(), Red, SelectPlaylistMenu(), cSoftHdPlayer::SetEntry(), cSoftHdPlayer::Stop(), cSoftHdPlayer::ToggleRandomPlay(), and cSoftHdDevice::UsePip().
|
private |
Create mediaplayer select playlist menu.
Definition at line 372 of file softhdmenu.cpp.
References LOGERROR.
Referenced by ProcessKey().
|
private |
Definition at line 55 of file softhdmenu.h.
Referenced by ProcessKey().
|
private |
Definition at line 66 of file softhdmenu.h.
Referenced by FindFileMenu(), and ProcessKey().
|
private |
Definition at line 65 of file softhdmenu.h.
Referenced by MakePlayList(), PlayMedia(), and ProcessKey().
|
private |
Definition at line 53 of file softhdmenu.h.
Referenced by HandleHotKey(), MainMenu(), PlayMedia(), and ProcessKey().
|
private |
Definition at line 67 of file softhdmenu.h.
Referenced by cSoftHdMenu(), FindFileMenu(), MakePlayList(), and ProcessKey().
|
static |
Definition at line 45 of file softhdmenu.h.
Referenced by cSoftHdMenu(), Menu(), and ~cSoftHdMenu().