vdr
2.0.7
|
#include <menu.h>
Public Member Functions | |
cReplayControl (bool PauseLive=false) | |
virtual | ~cReplayControl () |
void | Stop (void) |
virtual cOsdObject * | GetInfo (void) |
virtual const cRecording * | GetRecording (void) |
virtual eOSState | ProcessKey (eKeys Key) |
virtual void | Show (void) |
virtual void | Hide (void) |
bool | Visible (void) |
![]() | |
cDvbPlayerControl (const char *FileName, bool PauseLive=false) | |
virtual | ~cDvbPlayerControl () |
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 | GetReplayMode (bool &Play, bool &Forward, int &Speed) |
void | Goto (int Index, bool Still=false) |
![]() | |
cControl (cPlayer *Player, bool Hidden=false) | |
virtual | ~cControl () |
virtual cString | GetHeader (void) |
double | FramesPerSecond (void) |
bool | GetIndex (int &Current, int &Total, bool SnapToIFrame=false) |
bool | GetReplayMode (bool &Play, bool &Forward, int &Speed) |
![]() | |
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 void | Launch (cControl *Control) |
static void | Attach (void) |
static void | Shutdown (void) |
static cControl * | Control (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 (bool Forward) |
void | EditCut (void) |
void | EditTest (void) |
Private Attributes | |
cSkinDisplayReplay * | displayReplay |
cMarks | marks |
bool | marksModified |
bool | visible |
bool | modeOnly |
bool | shown |
bool | displayFrames |
int | lastCurrent |
int | lastTotal |
bool | lastPlay |
bool | lastForward |
int | lastSpeed |
int | lastSkipSeconds |
eKeys | lastSkipKey |
cTimeMs | lastSkipTimeout |
time_t | timeoutShow |
bool | timeSearchActive |
bool | timeSearchHide |
int | timeSearchTime |
int | timeSearchPos |
Static Private Attributes | |
static cReplayControl * | currentReplayControl = NULL |
static cString | fileName |
Additional Inherited Members | |
![]() | |
void | SetNeedsFastResponse (bool NeedsFastResponse) |
![]() | |
cPlayer * | player |
cReplayControl::cReplayControl | ( | bool | PauseLive = false | ) |
Definition at line 4935 of file menu.c.
References currentReplayControl, displayFrames, displayReplay, cRecording::FileName(), fileName, cRecording::FramesPerSecond(), cRecording::IsPesRecording(), kNone, lastCurrent, lastForward, lastPlay, lastSkipKey, lastSkipSeconds, lastSkipTimeout, lastSpeed, lastTotal, cMarks::Load(), marks, marksModified, modeOnly, cStatus::MsgReplaying(), cRecording::Name(), cDevice::PrimaryDevice(), cSetup::ProgressDisplayTime, REPLAYCONTROLSKIPSECONDS, cTimeMs::Set(), cDevice::SetKeepTracks(), SetTrackDescriptions(), Setup, shown, ShowTimed(), timeoutShow, timeSearchActive, and visible.
|
virtual |
Definition at line 4959 of file menu.c.
References currentReplayControl, fileName, Hide(), cStatus::MsgReplaying(), cDevice::PrimaryDevice(), cDevice::SetKeepTracks(), and Stop().
|
static |
Definition at line 5018 of file menu.c.
References fileName.
Referenced by cMenuRecordings::Delete(), and Stop().
|
private |
Definition at line 5288 of file menu.c.
References cCutter::Active(), cListBase::Count(), fileName, cMarks::GetNumSequences(), Hide(), marks, cSkins::Message(), mtError, mtInfo, ShowMode(), Skins, cCutter::Start(), and tr.
Referenced by ProcessKey().
|
private |
Definition at line 5308 of file menu.c.
References cControl::FramesPerSecond(), cMarks::Get(), cDvbPlayerControl::GetIndex(), cMarks::GetNext(), cDvbPlayerControl::Goto(), cListObject::Index(), marks, cList< T >::Next(), cDvbPlayerControl::Play(), cSetup::PlayJump, cMark::Position(), SecondsToFrames(), and Setup.
Referenced by ProcessKey().
|
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 5326 of file menu.c.
References cRecordings::GetByName(), LastReplayed(), and Recordings.
|
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 5334 of file menu.c.
References cRecordings::GetByName(), LastReplayed(), and Recordings.
|
virtual |
Implements cControl.
Definition at line 5041 of file menu.c.
References displayReplay, lastForward, lastPlay, lastSpeed, marks, marksModified, modeOnly, cMarks::Save(), cOsdObject::SetNeedsFastResponse(), timeoutShow, timeSearchActive, and visible.
Referenced by EditCut(), ProcessKey(), ShowTimed(), TimeSearch(), TimeSearchProcess(), and ~cReplayControl().
|
static |
Definition at line 5011 of file menu.c.
References fileName, cRecordings::GetByName(), and Recordings.
Referenced by cMenuRecordings::cMenuRecordings(), cRecordControl::cRecordControl(), GetInfo(), GetRecording(), main(), cMenuMain::ProcessKey(), cSetup::Save(), cMenuRecordings::Set(), and cMenuMain::Update().
|
private |
Definition at line 5239 of file menu.c.
References cListBase::Count(), displayFrames, cControl::FramesPerSecond(), cDvbPlayerControl::GetIndex(), cMarks::GetNext(), cMarks::GetPrev(), cDvbPlayerControl::GetReplayMode(), cDvbPlayerControl::Goto(), cSetup::JumpPlay, marks, cDvbPlayerControl::Play(), SecondsToFrames(), and Setup.
Referenced by ProcessKey().
|
private |
Definition at line 5265 of file menu.c.
References displayFrames, cMarks::Get(), cDvbPlayerControl::GetIndex(), cDvbPlayerControl::Goto(), marks, marksModified, cList< T >::Next(), cMark::Position(), cList< T >::Prev(), cMark::SetPosition(), and cDvbPlayerControl::SkipFrames().
Referenced by ProcessKey().
|
private |
Definition at line 5218 of file menu.c.
References cMarks::Add(), cListBase::Del(), displayFrames, cDvbPlayerControl::Forward(), cMarks::Get(), cDvbPlayerControl::GetIndex(), cDvbPlayerControl::GetReplayMode(), cDvbPlayerControl::Goto(), lastCurrent, marks, marksModified, cSetup::PauseOnMarkSet, cDvbPlayerControl::Play(), Setup, and ShowTimed().
Referenced by ProcessKey().
|
static |
Definition at line 5006 of file menu.c.
References currentReplayControl, and fileName.
Referenced by cMenuRecordings::Delete(), SetTrackDescriptions(), and cCutter::Stop().
Reimplemented from cOsdObject.
Definition at line 5341 of file menu.c.
References cDvbPlayerControl::Active(), cDvbPlayerControl::Backward(), displayFrames, EditCut(), EditTest(), cDvbPlayerControl::Forward(), cDvbPlayerControl::GetReplayMode(), Hide(), k1, k3, k_Release, k_Repeat, kBack, kBlue, kDown, kEditCut, kEditTest, kFastFwd, kFastRew, kGreen, kLeft, kMarkJumpBack, kMarkJumpForward, kMarkMoveBack, kMarkMoveForward, kMarkToggle, kNext, kNone, kOk, kPause, kPlay, kPlayPause, kPrev, kRed, kRight, kStop, kUp, kYellow, lastSkipKey, lastSkipSeconds, lastSkipTimeout, MarkJump(), MarkMove(), marks, marksModified, MarkToggle(), modeOnly, cSetup::MultiSpeedMode, osContinue, osEnd, osRecordings, osUnknown, cDvbPlayerControl::Pause(), cDvbPlayerControl::Play(), RAWKEY, REPLAYCONTROLSKIPLIMIT, REPLAYCONTROLSKIPSECONDS, REPLAYCONTROLSKIPTIMEOUT, cTimeMs::Set(), Setup, Show(), ShowMode(), shown, ShowProgress(), cDvbPlayerControl::SkipSeconds(), Stop(), cTimeMs::TimedOut(), timeoutShow, TimeSearch(), timeSearchActive, TimeSearchProcess(), cMarks::Update(), and visible.
|
static |
Definition at line 5001 of file menu.c.
References fileName.
Referenced by cSVDRP::CmdPLAY(), cRecordControl::cRecordControl(), cSetup::Parse(), cRecordControls::PauseLiveVideo(), and cMenuRecordings::Play().
|
virtual |
Reimplemented from cOsdObject.
Definition at line 5036 of file menu.c.
References ShowTimed().
Referenced by ProcessKey(), and TimeSearch().
|
private |
Definition at line 5060 of file menu.c.
References cSkins::Current(), displayReplay, cSkin::DisplayReplay(), cDvbPlayerControl::Forward(), cDvbPlayerControl::GetReplayMode(), cOsd::IsOpen(), lastForward, lastPlay, lastSpeed, modeOnly, MODETIMEOUT, cDvbPlayerControl::Play(), cSkinDisplayReplay::SetMode(), Setup, cSetup::ShowReplayMode, Skins, timeoutShow, and visible.
Referenced by EditCut(), ProcessKey(), ShowProgress(), and TimeSearchProcess().
|
private |
Definition at line 5085 of file menu.c.
References cSkins::Current(), displayFrames, displayReplay, cSkin::DisplayReplay(), fileName, cSkinDisplay::Flush(), cControl::FramesPerSecond(), cRecordings::GetByName(), cDvbPlayerControl::GetIndex(), IndexToHMSF(), lastCurrent, lastTotal, marks, modeOnly, Recordings, cSkinDisplayReplay::SetCurrent(), cSkinDisplayReplay::SetMarks(), cOsdObject::SetNeedsFastResponse(), cSkinDisplayReplay::SetProgress(), cSkinDisplayReplay::SetRecording(), cSkinDisplayReplay::SetTotal(), Setup, ShowMode(), cSetup::ShowRemainingTime, Skins, and visible.
Referenced by ProcessKey(), and ShowTimed().
|
private |
Definition at line 5024 of file menu.c.
References Hide(), modeOnly, shown, ShowProgress(), timeoutShow, and visible.
Referenced by cReplayControl(), MarkToggle(), and Show().
void cReplayControl::Stop | ( | void | ) |
Definition at line 4969 of file menu.c.
References cDvbPlayerControl::Active(), ClearLastReplayed(), cInterface::Confirm(), cTimers::Del(), cRecordings::DelByName(), cRecording::Delete(), cSetup::DelTimeshiftRec, fileName, cRecordings::GetByName(), cRecordControls::GetRecordControl(), cRecordControl::InstantId(), Interface, isyslog, cSkins::Message(), mtError, Recordings, cTimers::SetModified(), Setup, Skins, cDvbPlayerControl::Stop(), cRecordControl::Stop(), cRecordControl::Timer(), Timers, cTimer::ToDescr(), and tr.
Referenced by ProcessKey(), and ~cReplayControl().
|
private |
Definition at line 5200 of file menu.c.
References Hide(), modeOnly, Show(), timeoutShow, timeSearchActive, TimeSearchDisplay(), timeSearchHide, timeSearchPos, timeSearchTime, and visible.
Referenced by ProcessKey().
|
private |
Definition at line 5126 of file menu.c.
References displayReplay, cSkinDisplayReplay::SetJump(), timeSearchPos, timeSearchTime, and tr.
Referenced by TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 5144 of file menu.c.
References displayReplay, cControl::FramesPerSecond(), cDvbPlayerControl::Goto(), Hide(), k0, k9, k_Flags, kDown, kFastFwd, kFastRew, kLeft, kOk, kPause, kPlay, kPlayPause, kRight, kUp, lastCurrent, lastTotal, min(), cDvbPlayerControl::Play(), SecondsToFrames(), cSkinDisplayReplay::SetJump(), ShowMode(), cDvbPlayerControl::SkipSeconds(), STAY_SECONDS_OFF_END, timeSearchActive, TimeSearchDisplay(), timeSearchHide, timeSearchPos, and timeSearchTime.
Referenced by ProcessKey().
|
inline |
|
staticprivate |
Definition at line 279 of file menu.h.
Referenced by cReplayControl(), NowReplaying(), and ~cReplayControl().
|
private |
Definition at line 265 of file menu.h.
Referenced by cReplayControl(), MarkJump(), MarkMove(), MarkToggle(), ProcessKey(), and ShowProgress().
|
private |
Definition at line 262 of file menu.h.
Referenced by cReplayControl(), Hide(), ShowMode(), ShowProgress(), TimeSearchDisplay(), and TimeSearchProcess().
|
staticprivate |
Definition at line 280 of file menu.h.
Referenced by ClearLastReplayed(), cReplayControl(), EditCut(), LastReplayed(), NowReplaying(), SetRecording(), ShowProgress(), Stop(), and ~cReplayControl().
|
private |
Definition at line 266 of file menu.h.
Referenced by cReplayControl(), MarkToggle(), ShowProgress(), and TimeSearchProcess().
|
private |
Definition at line 267 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 267 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 270 of file menu.h.
Referenced by cReplayControl(), and ProcessKey().
|
private |
Definition at line 269 of file menu.h.
Referenced by cReplayControl(), and ProcessKey().
|
private |
Definition at line 271 of file menu.h.
Referenced by cReplayControl(), and ProcessKey().
|
private |
Definition at line 268 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 266 of file menu.h.
Referenced by cReplayControl(), ShowProgress(), and TimeSearchProcess().
|
private |
Definition at line 263 of file menu.h.
Referenced by cReplayControl(), EditCut(), EditTest(), Hide(), MarkJump(), MarkMove(), MarkToggle(), ProcessKey(), and ShowProgress().
|
private |
Definition at line 264 of file menu.h.
Referenced by cReplayControl(), Hide(), MarkMove(), MarkToggle(), and ProcessKey().
|
private |
Definition at line 265 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowProgress(), ShowTimed(), and TimeSearch().
|
private |
Definition at line 265 of file menu.h.
Referenced by cReplayControl(), ProcessKey(), and ShowTimed().
|
private |
Definition at line 272 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowTimed(), and TimeSearch().
|
private |
Definition at line 273 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 273 of file menu.h.
Referenced by TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 274 of file menu.h.
Referenced by TimeSearch(), TimeSearchDisplay(), and TimeSearchProcess().
|
private |
Definition at line 274 of file menu.h.
Referenced by TimeSearch(), TimeSearchDisplay(), and TimeSearchProcess().
|
private |
Definition at line 265 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowProgress(), ShowTimed(), TimeSearch(), and Visible().