vdr-plugin-softhddevice-drm-gles 1.6.4-d0291bb
cSoftHdMenu Class Reference

Plugin Main Menu. More...

#include <softhdmenu.h>

Public Member Functions

 cSoftHdMenu (const char *, cSoftHdDevice *, int=0, int=0, int=0, int=0, int=0)
 Build main or playlist menu.
 
virtual ~cSoftHdMenu ()
 
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
 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

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

Detailed Description

Plugin Main Menu.

Definition at line 43 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 
)

Build main or playlist menu.

Definition at line 28 of file softhdmenu.cpp.

References cSoftHdControl::Control(), L_MEDIA, LOGDEBUG2, m_playlist, MainMenu(), PlayListMenu(), and pSoftHdMenu.

◆ ~cSoftHdMenu()

cSoftHdMenu::~cSoftHdMenu ( )
virtual

Definition at line 44 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 395 of file softhdmenu.cpp.

References FindFileMenu(), IsValidMediaFile(), LOGERROR, m_lastItem, and m_playlist.

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

◆ HandleHotKey()

void cSoftHdMenu::HandleHotKey ( int  code)
private

◆ IsValidMediaFile()

bool 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 506 of file softhdmenu.cpp.

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

◆ MainMenu()

void cSoftHdMenu::MainMenu ( void  )
private

Create main menu.

Definition at line 76 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 463 of file softhdmenu.cpp.

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

Referenced by ProcessKey().

◆ Menu()

static cSoftHdMenu * cSoftHdMenu::Menu ( )
inlinestatic

Definition at line 48 of file softhdmenu.h.

References pSoftHdMenu.

Referenced by cSoftHdPlayer::Action().

◆ PlayListMenu()

void cSoftHdMenu::PlayListMenu ( void  )

Create mediaplayer playlist menu.

Definition at line 347 of file softhdmenu.cpp.

References cSoftHdControl::Control().

Referenced by cSoftHdMenu(), and ProcessKey().

◆ PlayMedia()

void cSoftHdMenu::PlayMedia ( const char name)
private

Play media file.

Parameters
namefile name

Definition at line 490 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 368 of file softhdmenu.cpp.

References LOGERROR.

Referenced by ProcessKey().

Member Data Documentation

◆ m_hotkeyState

HotkeyState cSoftHdMenu::m_hotkeyState = HotkeyState::Initial
private

Definition at line 57 of file softhdmenu.h.

Referenced by ProcessKey().

◆ m_lastItem

std::string cSoftHdMenu::m_lastItem
private

Definition at line 68 of file softhdmenu.h.

Referenced by FindFileMenu(), and ProcessKey().

◆ m_path

std::string cSoftHdMenu::m_path
private

Definition at line 67 of file softhdmenu.h.

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

◆ m_pDevice

cSoftHdDevice* cSoftHdMenu::m_pDevice
private

Definition at line 55 of file softhdmenu.h.

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

◆ m_playlist

std::string cSoftHdMenu::m_playlist
private

Definition at line 69 of file softhdmenu.h.

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


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