vdr  1.7.31
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Attributes | Static Private Attributes | List of all members
cControl Class Reference

#include <player.h>

Public Member Functions

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

Static Public Member Functions

static void Launch (cControl *Control)
static void Attach (void)
static void Shutdown (void)
static cControlControl (bool Hidden=false)
static void Launch (cControl *Control)
static void Attach (void)
static void Shutdown (void)
static cControlControl (bool Hidden=false)

Protected Attributes

cPlayerplayer

Private Attributes

bool attached
bool hidden

Static Private Attributes

static cControlcontrol = NULL
static cMutex mutex

Additional Inherited Members

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

Detailed Description

Definition at line 76 of file include/vdr/player.h.

Constructor & Destructor Documentation

cControl::cControl ( cPlayer Player,
bool  Hidden = false 
)

Definition at line 45 of file player.c.

References attached, hidden, and player.

cControl::~cControl ( )
virtual

Definition at line 52 of file player.c.

References control.

cControl::cControl ( cPlayer Player,
bool  Hidden = false 
)
virtual cControl::~cControl ( )
virtual

Member Function Documentation

void cControl::Attach ( void  )
static
static void cControl::Attach ( void  )
static
cControl * cControl::Control ( bool  Hidden = false)
static

Returns the current replay control (if any) in case it is currently visible.

If Hidden is true, the control will be returned even if it is currently hidden.

Definition at line 73 of file player.c.

References control, hidden, and mutex.

Referenced by cSkinLCARSDisplayMenu::Flush(), Launch(), main(), and cMenuMain::Update().

static cControl* cControl::Control ( bool  Hidden = false)
static

Returns the current replay control (if any) in case it is currently visible.

If Hidden is true, the control will be returned even if it is currently hidden.

double cControl::FramesPerSecond ( void  )
inline

Definition at line 101 of file player.h.

References cPlayer::FramesPerSecond(), and player.

double cControl::FramesPerSecond ( void  )
inline
cString cControl::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 in cPictureControl.

Definition at line 68 of file player.c.

Referenced by cSkinLCARSDisplayMenu::DrawPlay().

virtual cString cControl::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 in cPictureControl.

bool cControl::GetIndex ( int &  Current,
int &  Total,
bool  SnapToIFrame = false 
)
inline

Reimplemented in cDvbPlayerControl, and cDvbPlayerControl.

Definition at line 102 of file player.h.

References cPlayer::GetIndex(), and player.

bool cControl::GetIndex ( int &  Current,
int &  Total,
bool  SnapToIFrame = false 
)
inline

Reimplemented in cDvbPlayerControl, and cDvbPlayerControl.

Definition at line 102 of file include/vdr/player.h.

References cPlayer::GetIndex(), and player.

Referenced by cSkinLCARSDisplayMenu::DrawPlay().

cOsdObject * cControl::GetInfo ( void  )
virtual

Returns an OSD object that displays information about the currently played programme.

If no such information is available, NULL will be returned.

Reimplemented in cReplayControl, and cReplayControl.

Definition at line 58 of file player.c.

Referenced by main().

virtual cOsdObject* cControl::GetInfo ( void  )
virtual

Returns an OSD object that displays information about the currently played programme.

If no such information is available, NULL will be returned.

Reimplemented in cReplayControl, and cReplayControl.

const cRecording * cControl::GetRecording ( void  )
virtual

Returns the cRecording that is currently being replayed, or NULL if this player is not playing a cRecording.

Reimplemented in cReplayControl, and cReplayControl.

Definition at line 63 of file player.c.

Referenced by cSkinLCARSDisplayMenu::DrawPlay().

virtual const cRecording* cControl::GetRecording ( void  )
virtual

Returns the cRecording that is currently being replayed, or NULL if this player is not playing a cRecording.

Reimplemented in cReplayControl, and cReplayControl.

bool cControl::GetReplayMode ( bool &  Play,
bool &  Forward,
int &  Speed 
)
inline

Reimplemented in cDvbPlayerControl, and cDvbPlayerControl.

Definition at line 103 of file include/vdr/player.h.

References cPlayer::GetReplayMode(), and player.

bool cControl::GetReplayMode ( bool &  Play,
bool &  Forward,
int &  Speed 
)
inline

Reimplemented in cDvbPlayerControl, and cDvbPlayerControl.

Definition at line 103 of file player.h.

References cPlayer::GetReplayMode(), and player.

virtual void cControl::Hide ( void  )
pure virtual

Implemented in cReplayControl, cReplayControl, cTransferControl, and cTransferControl.

Referenced by main().

virtual void cControl::Hide ( void  )
pure virtual
void cControl::Launch ( cControl Control)
static
static void cControl::Launch ( cControl Control)
static
static void cControl::Shutdown ( void  )
static
void cControl::Shutdown ( void  )
static

Definition at line 100 of file player.c.

References control, and mutex.

Referenced by Attach(), cSVDRP::CmdPLAY(), cMenuRecordings::Delete(), main(), and cCutter::Stop().

Member Data Documentation

bool cControl::attached
private

Definition at line 80 of file include/vdr/player.h.

Referenced by Attach(), and cControl().

static cControl * cControl::control = NULL
staticprivate

Definition at line 78 of file include/vdr/player.h.

Referenced by Attach(), Control(), Launch(), Shutdown(), and ~cControl().

bool cControl::hidden
private

Definition at line 81 of file include/vdr/player.h.

Referenced by cControl(), and Control().

static cMutex cControl::mutex
staticprivate

Definition at line 79 of file include/vdr/player.h.

Referenced by Attach(), Control(), Launch(), and Shutdown().

cPlayer * cControl::player
protected

Definition at line 83 of file include/vdr/player.h.

Referenced by Attach(), cControl(), FramesPerSecond(), GetIndex(), and GetReplayMode().


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