vdr 2.6.9
cReplayControl Class Reference

#include <menu.h>

Public Member Functions

 cReplayControl (bool PauseLive=false)
 
virtual ~cReplayControl ()
 
void Stop (void)
 
virtual cOsdObjectGetInfo (void)
 
virtual const cRecordingGetRecording (void)
 
virtual eOSState ProcessKey (eKeys Key)
 
virtual void Show (void)
 
virtual void Hide (void)
 
bool Visible (void)
 
virtual void ClearEditingMarks (void)
 
- Public Member Functions inherited from cDvbPlayerControl
 cDvbPlayerControl (const char *FileName, bool PauseLive=false)
 
virtual ~cDvbPlayerControl ()
 
void SetMarks (const cMarks *Marks)
 
bool Active (void)
 
void Stop (void)
 
void Pause (void)
 
void Play (void)
 
void Forward (void)
 
void Backward (void)
 
int SkipFrames (int Frames)
 
void SkipSeconds (int Seconds)
 
bool GetIndex (int &Current, int &Total, bool SnapToIFrame=false)
 
bool GetFrameNumber (int &Current, int &Total)
 
bool GetReplayMode (bool &Play, bool &Forward, int &Speed)
 
void Goto (int Index, bool Still=false)
 
- Public Member Functions inherited from cControl
 cControl (cPlayer *Player, bool Hidden=false)
 
virtual ~cControl ()
 
virtual cString GetHeader (void)
 
void SetPlayer (cPlayer *Player)
 
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
 

Static Public Member Functions

static void SetRecording (const char *FileName)
 
static const char * NowReplaying (void)
 
static const char * LastReplayed (void)
 
static void ClearLastReplayed (const char *FileName)
 
- 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 TimeSearchDisplay (void)
 
void TimeSearchProcess (eKeys Key)
 
void TimeSearch (void)
 
void ShowTimed (int Seconds=0)
 
void ShowMode (void)
 
bool ShowProgress (bool Initial)
 
void MarkToggle (void)
 
void MarkJump (bool Forward)
 
void MarkMove (int Frames, bool MarkRequired)
 
void EditCut (void)
 
void EditTest (void)
 

Private Attributes

cSkinDisplayReplaydisplayReplay
 
cAdaptiveSkipper adaptiveSkipper
 
cMarks marks
 
bool marksModified
 
bool visible
 
bool modeOnly
 
bool shown
 
bool displayFrames
 
int lastCurrent
 
int lastTotal
 
bool lastPlay
 
bool lastForward
 
int lastSpeed
 
time_t timeoutShow
 
cTimeMs updateTimer
 
bool timeSearchActive
 
bool timeSearchHide
 
int timeSearchTime
 
int timeSearchPos
 

Static Private Attributes

static cReplayControlcurrentReplayControl = NULL
 
static cString fileName
 

Additional Inherited Members

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

Detailed Description

Definition at line 293 of file menu.h.

Constructor & Destructor Documentation

◆ cReplayControl()

◆ ~cReplayControl()

cReplayControl::~cReplayControl ( )
virtual

Member Function Documentation

◆ ClearEditingMarks()

void cReplayControl::ClearEditingMarks ( void )
virtual

Clears any editing marks this player might be showing.

Deletion of the marks themselves is handled separately, calling this function merely tells the player to no longer display the marks, if it has any.

Reimplemented from cControl.

Definition at line 5860 of file menu.c.

References cListBase::Del(), cList< T >::First(), cListBase::Lock(), marks, cStatus::MsgMarksModified(), and cStateKey::Remove().

◆ ClearLastReplayed()

void cReplayControl::ClearLastReplayed ( const char * FileName)
static

Definition at line 5888 of file menu.c.

References fileName.

Referenced by cMenuRecordings::Delete(), and Stop().

◆ EditCut()

◆ EditTest()

◆ GetInfo()

cOsdObject * cReplayControl::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 from cControl.

Definition at line 6213 of file menu.c.

References LastReplayed(), and LOCK_RECORDINGS_READ.

◆ GetRecording()

const cRecording * cReplayControl::GetRecording ( void )
virtual

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

Reimplemented from cControl.

Definition at line 6221 of file menu.c.

References LastReplayed(), and LOCK_RECORDINGS_READ.

◆ Hide()

◆ LastReplayed()

const char * cReplayControl::LastReplayed ( void )
static

◆ MarkJump()

◆ MarkMove()

◆ MarkToggle()

◆ NowReplaying()

const char * cReplayControl::NowReplaying ( void )
static

◆ ProcessKey()

◆ SetRecording()

void cReplayControl::SetRecording ( const char * FileName)
static

◆ Show()

void cReplayControl::Show ( void )
virtual

Reimplemented from cOsdObject.

Definition at line 5906 of file menu.c.

References ShowTimed().

Referenced by ProcessKey(), and TimeSearch().

◆ ShowMode()

◆ ShowProgress()

◆ ShowTimed()

void cReplayControl::ShowTimed ( int Seconds = 0)
private

Definition at line 5894 of file menu.c.

References Hide(), modeOnly, shown, ShowProgress(), timeoutShow, and visible.

Referenced by cReplayControl(), MarkToggle(), and Show().

◆ Stop()

◆ TimeSearch()

void cReplayControl::TimeSearch ( void )
private

◆ TimeSearchDisplay()

void cReplayControl::TimeSearchDisplay ( void )
private

Definition at line 5995 of file menu.c.

References displayReplay, cSkinDisplayReplay::SetJump(), timeSearchPos, timeSearchTime, and tr.

Referenced by TimeSearch(), and TimeSearchProcess().

◆ TimeSearchProcess()

◆ Visible()

bool cReplayControl::Visible ( void )
inline

Definition at line 329 of file menu.h.

References visible.

Member Data Documentation

◆ adaptiveSkipper

cAdaptiveSkipper cReplayControl::adaptiveSkipper
private

Definition at line 296 of file menu.h.

Referenced by cReplayControl(), and ProcessKey().

◆ currentReplayControl

cReplayControl * cReplayControl::currentReplayControl = NULL
staticprivate

Definition at line 311 of file menu.h.

Referenced by cReplayControl(), NowReplaying(), and ~cReplayControl().

◆ displayFrames

bool cReplayControl::displayFrames
private

Definition at line 299 of file menu.h.

Referenced by cReplayControl(), MarkJump(), MarkMove(), MarkToggle(), ProcessKey(), and ShowProgress().

◆ displayReplay

cSkinDisplayReplay* cReplayControl::displayReplay
private

◆ fileName

cString cReplayControl::fileName
staticprivate

◆ lastCurrent

int cReplayControl::lastCurrent
private

Definition at line 300 of file menu.h.

Referenced by cReplayControl(), MarkToggle(), ShowProgress(), and TimeSearchProcess().

◆ lastForward

bool cReplayControl::lastForward
private

Definition at line 301 of file menu.h.

Referenced by cReplayControl(), Hide(), and ShowMode().

◆ lastPlay

bool cReplayControl::lastPlay
private

Definition at line 301 of file menu.h.

Referenced by cReplayControl(), Hide(), and ShowMode().

◆ lastSpeed

int cReplayControl::lastSpeed
private

Definition at line 302 of file menu.h.

Referenced by cReplayControl(), Hide(), and ShowMode().

◆ lastTotal

int cReplayControl::lastTotal
private

Definition at line 300 of file menu.h.

Referenced by cReplayControl(), ShowProgress(), and TimeSearchProcess().

◆ marks

cMarks cReplayControl::marks
private

◆ marksModified

bool cReplayControl::marksModified
private

Definition at line 298 of file menu.h.

Referenced by cReplayControl(), Hide(), MarkMove(), MarkToggle(), and ProcessKey().

◆ modeOnly

bool cReplayControl::modeOnly
private

Definition at line 299 of file menu.h.

Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowProgress(), ShowTimed(), and TimeSearch().

◆ shown

bool cReplayControl::shown
private

Definition at line 299 of file menu.h.

Referenced by cReplayControl(), ProcessKey(), and ShowTimed().

◆ timeoutShow

time_t cReplayControl::timeoutShow
private

Definition at line 303 of file menu.h.

Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowTimed(), and TimeSearch().

◆ timeSearchActive

bool cReplayControl::timeSearchActive
private

Definition at line 305 of file menu.h.

Referenced by cReplayControl(), Hide(), ProcessKey(), TimeSearch(), and TimeSearchProcess().

◆ timeSearchHide

bool cReplayControl::timeSearchHide
private

Definition at line 305 of file menu.h.

Referenced by TimeSearch(), and TimeSearchProcess().

◆ timeSearchPos

int cReplayControl::timeSearchPos
private

Definition at line 306 of file menu.h.

Referenced by TimeSearch(), TimeSearchDisplay(), and TimeSearchProcess().

◆ timeSearchTime

int cReplayControl::timeSearchTime
private

Definition at line 306 of file menu.h.

Referenced by TimeSearch(), TimeSearchDisplay(), and TimeSearchProcess().

◆ updateTimer

cTimeMs cReplayControl::updateTimer
private

Definition at line 304 of file menu.h.

Referenced by ShowProgress().

◆ visible

bool cReplayControl::visible
private

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