vdr  2.4.7
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
cPictureControl Class Reference

#include <player.h>

Public Member Functions

 cPictureControl (cPictureEntry *Pictures, const cPictureEntry *PictureEntry, bool SlideShow=false)
 
virtual ~cPictureControl ()
 
virtual cString GetHeader (void)
 
virtual eOSState ProcessKey (eKeys Key)
 
- Public Member Functions inherited from cControl
 cControl (cPlayer *Player, bool Hidden=false)
 
virtual ~cControl ()
 
virtual cOsdObjectGetInfo (void)
 
virtual const cRecordingGetRecording (void)
 
virtual void ClearEditingMarks (void)
 
double FramesPerSecond (void) const
 
bool GetIndex (int &Current, int &Total, bool SnapToIFrame=false) const
 
bool GetFrameNumber (int &Current, int &Total) const
 
bool GetReplayMode (bool &Play, bool &Forward, int &Speed) const
 
- Public Member Functions inherited from cOsdObject
 cOsdObject (bool FastResponse=false)
 
virtual ~cOsdObject ()
 
virtual bool NeedsFastResponse (void)
 
bool IsMenu (void) const
 
virtual void Show (void)
 

Static Public Member Functions

static bool Active (void)
 
static const char * LastDisplayed (void)
 
- Static Public Member Functions inherited from cControl
static void Launch (cControl *Control)
 
static void Attach (void)
 
static void Shutdown (void)
 
static cControlControl (bool Hidden=false)
 
static cControlControl (cMutexLock &MutexLock, bool Hidden=false)
 

Private Member Functions

void NextPicture (int Direction)
 
void NextDirectory (int Direction)
 
void DisplayCaption (void)
 
virtual void Hide (void)
 

Private Attributes

cPictureEntrypictures
 
const cPictureEntrypictureEntry
 
cPicturePlayerplayer
 
cOsdosd
 
cString lastPath
 
cTimeMs slideShowDelay
 
bool slideShow
 
bool alwaysDisplayCaption
 

Static Private Attributes

static int active = 0
 
static cString lastDisplayed
 

Additional Inherited Members

- Protected Member Functions inherited from cOsdObject
void SetNeedsFastResponse (bool NeedsFastResponse)
 
- Protected Attributes inherited from cControl
cPlayerplayer
 

Detailed Description

Definition at line 23 of file PLUGINS/src/pictures/player.h.

Constructor & Destructor Documentation

◆ cPictureControl()

cPictureControl::cPictureControl ( cPictureEntry Pictures,
const cPictureEntry PictureEntry,
bool  SlideShow = false 
)

◆ ~cPictureControl()

cPictureControl::~cPictureControl ( )
virtual

Definition at line 112 of file PLUGINS/src/pictures/player.c.

References active, osd, pictures, and player.

Member Function Documentation

◆ Active()

static bool cPictureControl::Active ( void  )
inlinestatic

Definition at line 44 of file PLUGINS/src/pictures/player.h.

References active.

Referenced by cPictureMenu::ProcessKey(), and cPictureMenu::Set().

◆ DisplayCaption()

void cPictureControl::DisplayCaption ( void  )
private

◆ GetHeader()

cString cPictureControl::GetHeader ( void  )
virtual

This can be used by players that don't play a cRecording, but rather do something completely different.

The resulting string may be used by skins as a last resort, in case they want to display the state of the current player. The return value is expected to be a short, single line string. The default implementation returns an empty string.

Reimplemented from cControl.

Definition at line 207 of file PLUGINS/src/pictures/player.c.

References tr.

◆ Hide()

virtual void cPictureControl::Hide ( void  )
inlineprivatevirtual

Implements cControl.

Definition at line 38 of file PLUGINS/src/pictures/player.h.

◆ LastDisplayed()

const char * cPictureControl::LastDisplayed ( void  )
static

Definition at line 259 of file PLUGINS/src/pictures/player.c.

References lastDisplayed.

Referenced by cPictureMenu::CreatePictureMenu().

◆ NextDirectory()

void cPictureControl::NextDirectory ( int  Direction)
private

◆ NextPicture()

void cPictureControl::NextPicture ( int  Direction)
private

◆ ProcessKey()

eOSState cPictureControl::ProcessKey ( eKeys  Key)
virtual

Member Data Documentation

◆ active

int cPictureControl::active = 0
staticprivate

Definition at line 25 of file PLUGINS/src/pictures/player.h.

Referenced by Active(), cPictureControl(), and ~cPictureControl().

◆ alwaysDisplayCaption

bool cPictureControl::alwaysDisplayCaption
private

Definition at line 34 of file PLUGINS/src/pictures/player.h.

Referenced by cPictureControl(), DisplayCaption(), and ProcessKey().

◆ lastDisplayed

cString cPictureControl::lastDisplayed
staticprivate

Definition at line 26 of file PLUGINS/src/pictures/player.h.

Referenced by DisplayCaption(), and LastDisplayed().

◆ lastPath

cString cPictureControl::lastPath
private

Definition at line 31 of file PLUGINS/src/pictures/player.h.

Referenced by cPictureControl(), and DisplayCaption().

◆ osd

cOsd* cPictureControl::osd
private

◆ pictureEntry

const cPictureEntry* cPictureControl::pictureEntry
private

◆ pictures

cPictureEntry* cPictureControl::pictures
private

Definition at line 27 of file PLUGINS/src/pictures/player.h.

Referenced by cPictureControl(), DisplayCaption(), and ~cPictureControl().

◆ player

cPicturePlayer* cPictureControl::player
private

Definition at line 29 of file PLUGINS/src/pictures/player.h.

Referenced by NextDirectory(), NextPicture(), and ~cPictureControl().

◆ slideShow

bool cPictureControl::slideShow
private

Definition at line 33 of file PLUGINS/src/pictures/player.h.

Referenced by cPictureControl(), and ProcessKey().

◆ slideShowDelay

cTimeMs cPictureControl::slideShowDelay
private

Definition at line 32 of file PLUGINS/src/pictures/player.h.

Referenced by cPictureControl(), and ProcessKey().


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