vdr-plugin-softhddevice-drm-gles 1.5.9-20e15de
cSoftHdMenu Class Reference

#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 cSoftHdMenuMenu ()
 

Static Public Attributes

static cSoftHdMenupSoftHdMenu = 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

cSoftHdDevicem_pDevice
 
HotkeyState m_hotkeyState = HotkeyState::Initial
 
std::string m_path
 
std::string m_lastItem
 
std::string m_playlist
 

Detailed Description

Definition at line 40 of file softhdmenu.h.

Constructor & Destructor Documentation

◆ cSoftHdMenu()

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.

◆ ~cSoftHdMenu()

cSoftHdMenu::~cSoftHdMenu ( )
virtual

Softhddevice menu destructor.

Definition at line 59 of file softhdmenu.cpp.

References pSoftHdMenu.

Member Function Documentation

◆ FindFileMenu()

void cSoftHdMenu::FindFileMenu ( std::string  searchPath,
FILE *  playlist 
)
private

Create mediaplayer sub menu find file or make a play list.

Parameters
searchPathpath to start search mediafile
playlistif 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().

◆ HandleHotKey()

◆ IsValidMediaFile()

int cSoftHdMenu::IsValidMediaFile ( const char *  name)
private

Test if it's a media file - at least if it has the right file extension...

Parameters
namefile name
Returns
true if it's a media file

Definition at line 510 of file softhdmenu.cpp.

Referenced by FindFileMenu(), MakePlayList(), and ProcessKey().

◆ MainMenu()

void cSoftHdMenu::MainMenu ( void  )
private

Create main menu.

Definition at line 87 of file softhdmenu.cpp.

References m_pDevice, SeparatorName(), SeparatorSpace(), and cSoftHdDevice::UsePip().

Referenced by cSoftHdMenu().

◆ MakePlayList()

void cSoftHdMenu::MakePlayList ( const char *  target,
const char *  mode 
)
private

Make a play list.

Parameters
targetpath to start search mediafiles
modeopen file mode

Definition at line 467 of file softhdmenu.cpp.

References FindFileMenu(), IsValidMediaFile(), m_path, and m_playlist.

Referenced by ProcessKey().

◆ Menu()

static cSoftHdMenu * cSoftHdMenu::Menu ( )
inlinestatic

Definition at line 46 of file softhdmenu.h.

References pSoftHdMenu.

Referenced by cSoftHdPlayer::Action().

◆ PlayListMenu()

◆ PlayMedia()

void cSoftHdMenu::PlayMedia ( const char *  name)
private

Play media file.

Parameters
namefile name

Definition at line 494 of file softhdmenu.cpp.

References cSoftHdControl::Control(), LOGERROR, m_path, and m_pDevice.

Referenced by ProcessKey().

◆ ProcessKey()

◆ SelectPlaylistMenu()

void cSoftHdMenu::SelectPlaylistMenu ( void  )
private

Create mediaplayer select playlist menu.

Definition at line 372 of file softhdmenu.cpp.

References LOGERROR.

Referenced by ProcessKey().

Member Data Documentation

◆ m_hotkeyState

HotkeyState cSoftHdMenu::m_hotkeyState = HotkeyState::Initial
private

Definition at line 55 of file softhdmenu.h.

Referenced by ProcessKey().

◆ m_lastItem

std::string cSoftHdMenu::m_lastItem
private

Definition at line 66 of file softhdmenu.h.

Referenced by FindFileMenu(), and ProcessKey().

◆ m_path

std::string cSoftHdMenu::m_path
private

Definition at line 65 of file softhdmenu.h.

Referenced by MakePlayList(), PlayMedia(), and ProcessKey().

◆ m_pDevice

cSoftHdDevice* cSoftHdMenu::m_pDevice
private

Definition at line 53 of file softhdmenu.h.

Referenced by HandleHotKey(), MainMenu(), PlayMedia(), and ProcessKey().

◆ m_playlist

std::string cSoftHdMenu::m_playlist
private

Definition at line 67 of file softhdmenu.h.

Referenced by cSoftHdMenu(), FindFileMenu(), MakePlayList(), and ProcessKey().

◆ pSoftHdMenu

cSoftHdMenu * cSoftHdMenu::pSoftHdMenu = NULL
static

Definition at line 45 of file softhdmenu.h.

Referenced by cSoftHdMenu(), Menu(), and ~cSoftHdMenu().


The documentation for this class was generated from the following files: