vdr 2.7.7
cReplayControl Class Reference

#include <menu.h>

Public Member Functions

 cReplayControl (bool PauseLive=false)
virtual ~cReplayControl () override
void Stop (void)
virtual cOsdObjectGetInfo (void) override
virtual const cRecordingGetRecording (void) override
virtual eOSState ProcessKey (eKeys Key) override
virtual void Show (void) override
virtual void Hide (void) override
bool Visible (void)
virtual void ClearEditingMarks (void) override
Public Member Functions inherited from cDvbPlayerControl
 cDvbPlayerControl (const char *FileName, bool PauseLive=false)
virtual ~cDvbPlayerControl () override
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)
const cErrorsGetErrors (void)
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 () override
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 DelTimeshiftTimer (void)
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 (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 ErrorJump (bool Forward)
void EditCut (void)
void EditTest (void)

Private Attributes

cSkinDisplayReplaydisplayReplay
cAdaptiveSkipper adaptiveSkipper
cMarks marks
bool marksModified
bool visible
bool modeOnly
bool shown
bool displayFrames
int lastErrors
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 cTimertimeshiftTimer = NULL
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 ( )
overridevirtual

Member Function Documentation

◆ ClearEditingMarks()

void cReplayControl::ClearEditingMarks ( void )
overridevirtual

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 5897 of file menu.c.

References marks, cStatus::MsgMarksModified(), and cStateKey::Remove().

◆ ClearLastReplayed()

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

Definition at line 5925 of file menu.c.

References fileName.

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

◆ DelTimeshiftTimer()

void cReplayControl::DelTimeshiftTimer ( void )
static

Definition at line 5846 of file menu.c.

References isyslog, LOCK_TIMERS_WRITE, and timeshiftTimer.

Referenced by main().

◆ EditCut()

void cReplayControl::EditCut ( void )
private

◆ EditTest()

void cReplayControl::EditTest ( void )
private

◆ ErrorJump()

◆ GetInfo()

cOsdObject * cReplayControl::GetInfo ( void )
overridevirtual

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 6296 of file menu.c.

References cOsdObject::cOsdObject(), LastReplayed(), and LOCK_RECORDINGS_READ.

◆ GetRecording()

const cRecording * cReplayControl::GetRecording ( void )
overridevirtual

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

Reimplemented from cControl.

Definition at line 6304 of file menu.c.

References LastReplayed(), and LOCK_RECORDINGS_READ.

◆ Hide()

void cReplayControl::Hide ( void )
overridevirtual

◆ 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 )
overridevirtual

Reimplemented from cOsdObject.

Definition at line 5943 of file menu.c.

References ShowTimed().

Referenced by ProcessKey(), and TimeSearch().

◆ ShowMode()

◆ ShowProgress()

◆ ShowTimed()

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

Definition at line 5931 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 6037 of file menu.c.

References displayReplay, timeSearchPos, timeSearchTime, and tr.

Referenced by TimeSearch(), and TimeSearchProcess().

◆ TimeSearchProcess()

◆ Visible()

bool cReplayControl::Visible ( void )
inline

Definition at line 333 of file menu.h.

References visible.

Member Data Documentation

◆ adaptiveSkipper

cAdaptiveSkipper cReplayControl::adaptiveSkipper
private

Definition at line 297 of file menu.h.

Referenced by cReplayControl(), and ProcessKey().

◆ currentReplayControl

cReplayControl * cReplayControl::currentReplayControl = NULL
staticprivate

Definition at line 313 of file menu.h.

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

◆ displayFrames

bool cReplayControl::displayFrames
private

Definition at line 300 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 302 of file menu.h.

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

◆ lastErrors

int cReplayControl::lastErrors
private

Definition at line 301 of file menu.h.

Referenced by cReplayControl(), and ShowProgress().

◆ lastForward

bool cReplayControl::lastForward
private

Definition at line 303 of file menu.h.

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

◆ lastPlay

bool cReplayControl::lastPlay
private

Definition at line 303 of file menu.h.

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

◆ lastSpeed

int cReplayControl::lastSpeed
private

Definition at line 304 of file menu.h.

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

◆ lastTotal

int cReplayControl::lastTotal
private

Definition at line 302 of file menu.h.

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

◆ marks

cMarks cReplayControl::marks
private

◆ marksModified

bool cReplayControl::marksModified
private

Definition at line 299 of file menu.h.

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

◆ modeOnly

bool cReplayControl::modeOnly
private

Definition at line 300 of file menu.h.

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

◆ shown

bool cReplayControl::shown
private

Definition at line 300 of file menu.h.

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

◆ timeoutShow

time_t cReplayControl::timeoutShow
private

Definition at line 305 of file menu.h.

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

◆ timeSearchActive

bool cReplayControl::timeSearchActive
private

Definition at line 307 of file menu.h.

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

◆ timeSearchHide

bool cReplayControl::timeSearchHide
private

Definition at line 307 of file menu.h.

Referenced by TimeSearch(), and TimeSearchProcess().

◆ timeSearchPos

int cReplayControl::timeSearchPos
private

Definition at line 308 of file menu.h.

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

◆ timeSearchTime

int cReplayControl::timeSearchTime
private

Definition at line 308 of file menu.h.

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

◆ timeshiftTimer

cTimer * cReplayControl::timeshiftTimer = NULL
staticprivate

Definition at line 295 of file menu.h.

Referenced by DelTimeshiftTimer(), and Stop().

◆ updateTimer

cTimeMs cReplayControl::updateTimer
private

Definition at line 306 of file menu.h.

Referenced by ShowProgress().

◆ visible

bool cReplayControl::visible
private

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