vdr
2.2.0
|
#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 () |
void | SetMarks (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 | 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 (int Frames, bool MarkRequired) |
void | EditCut (void) |
void | EditTest (void) |
Private Attributes | |
cSkinDisplayReplay * | displayReplay |
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 |
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 5174 of file menu.c.
References cSetup::AdaptiveSkipInitial, adaptiveSkipper, currentReplayControl, displayFrames, displayReplay, cRecording::FileName(), fileName, cRecording::FramesPerSecond(), cAdaptiveSkipper::Initialize(), cRecording::IsPesRecording(), lastCurrent, lastForward, lastPlay, lastSpeed, lastTotal, cMarks::Load(), marks, marksModified, modeOnly, cStatus::MsgReplaying(), cRecording::Name(), cDevice::PrimaryDevice(), cSetup::ProgressDisplayTime, cDevice::SetKeepTracks(), cDvbPlayerControl::SetMarks(), SetTrackDescriptions(), Setup, shown, ShowTimed(), timeoutShow, timeSearchActive, and visible.
|
virtual |
Definition at line 5197 of file menu.c.
References currentReplayControl, fileName, Hide(), cStatus::MsgReplaying(), cDevice::PrimaryDevice(), cDevice::SetKeepTracks(), and Stop().
|
static |
Definition at line 5257 of file menu.c.
References fileName.
Referenced by cMenuRecordings::Delete(), and Stop().
|
private |
Definition at line 5543 of file menu.c.
References cRecordingsHandler::Add(), cInterface::Confirm(), cListBase::Count(), cCutter::EditedFileName(), fileName, cMarks::GetNumSequences(), cRecordingsHandler::GetUsage(), Hide(), Interface, marks, cSkins::Message(), mtError, mtInfo, RecordingsHandler, ruCut, ShowMode(), Skins, and tr.
Referenced by ProcessKey().
|
private |
Definition at line 5565 of file menu.c.
References cControl::FramesPerSecond(), cMarks::Get(), cDvbPlayerControl::GetIndex(), cMarks::GetNext(), cDvbPlayerControl::Goto(), cListObject::Index(), marks, cList< T >::Next(), cMark::Position(), SecondsToFrames(), Setup, and cSetup::SkipEdited.
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 5581 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 5589 of file menu.c.
References cRecordings::GetByName(), LastReplayed(), and Recordings.
|
virtual |
Implements cControl.
Definition at line 5280 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 5250 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 5481 of file menu.c.
References cListBase::Count(), displayFrames, cControl::FramesPerSecond(), cDvbPlayerControl::GetIndex(), cMarks::GetNext(), cMarks::GetPrev(), cDvbPlayerControl::GetReplayMode(), cDvbPlayerControl::Goto(), marks, cSetup::PauseOnMarkJump, SecondsToFrames(), and Setup.
Referenced by ProcessKey().
|
private |
Definition at line 5506 of file menu.c.
References displayFrames, cDvbPlayerControl::Forward(), cMarks::Get(), cDvbPlayerControl::GetIndex(), cDvbPlayerControl::GetReplayMode(), cDvbPlayerControl::Goto(), marks, marksModified, min(), cList< T >::Next(), cDvbPlayerControl::Play(), cMark::Position(), cList< T >::Prev(), cMark::SetPosition(), and cDvbPlayerControl::SkipFrames().
Referenced by ProcessKey().
|
private |
Definition at line 5455 of file menu.c.
References cMarks::Add(), cListBase::Del(), displayFrames, cDvbPlayerControl::Forward(), cMarks::Get(), cDvbPlayerControl::GetIndex(), cDvbPlayerControl::GetReplayMode(), cDvbPlayerControl::Goto(), lastCurrent, cMutex::Lock(), marks, marksModified, cSetup::PauseOnMarkSet, cDvbPlayerControl::Play(), Setup, ShowTimed(), and cMutex::Unlock().
Referenced by ProcessKey().
|
static |
Definition at line 5245 of file menu.c.
References currentReplayControl, and fileName.
Referenced by cMenuRecordings::Delete(), cRecording::IsInUse(), SetTrackDescriptions(), and cCutter::Stop().
Reimplemented from cOsdObject.
Definition at line 5596 of file menu.c.
References cDvbPlayerControl::Active(), adaptiveSkipper, cSetup::AdaptiveSkipPrevNext, cDvbPlayerControl::Backward(), displayFrames, EditCut(), EditTest(), cDvbPlayerControl::Forward(), cDvbPlayerControl::GetReplayMode(), cAdaptiveSkipper::GetValue(), Hide(), k_Release, k_Repeat, kBack, kBlue, kDown, kEditCut, kEditTest, kFastFwd, kFastRew, kGreen, kLeft, kMarkJumpBack, kMarkJumpForward, kMarkMoveBack, kMarkMoveForward, kMarkSkipBack, kMarkSkipForward, kMarkToggle, kNext, kNone, kOk, kPause, kPlay, kPlayPause, kPrev, kRed, kRight, kStop, kUp, kYellow, MarkJump(), MarkMove(), marks, marksModified, MarkToggle(), modeOnly, cSetup::MultiSpeedMode, osContinue, osEnd, osRecordings, osUnknown, cDvbPlayerControl::Pause(), cDvbPlayerControl::Play(), RAWKEY, Setup, Show(), ShowMode(), shown, ShowProgress(), cDvbPlayerControl::SkipSeconds(), cSetup::SkipSeconds, cSetup::SkipSecondsRepeat, Stop(), timeoutShow, TimeSearch(), timeSearchActive, TimeSearchProcess(), cMarks::Update(), and visible.
|
static |
Definition at line 5240 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 5275 of file menu.c.
References ShowTimed().
Referenced by ProcessKey(), and TimeSearch().
|
private |
Definition at line 5299 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 5324 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 5263 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 5207 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(), cMenuRecordings::SetRecording(), Setup, Skins, cDvbPlayerControl::Stop(), cRecordControl::Stop(), cRecordControl::Timer(), Timers, cTimer::ToDescr(), and tr.
Referenced by ProcessKey(), and ~cReplayControl().
|
private |
Definition at line 5437 of file menu.c.
References Hide(), modeOnly, Show(), timeoutShow, timeSearchActive, TimeSearchDisplay(), timeSearchHide, timeSearchPos, timeSearchTime, and visible.
Referenced by ProcessKey().
|
private |
Definition at line 5365 of file menu.c.
References displayReplay, cSkinDisplayReplay::SetJump(), timeSearchPos, timeSearchTime, and tr.
Referenced by TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 5383 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(), SecondsToFrames(), cSkinDisplayReplay::SetJump(), ShowMode(), cDvbPlayerControl::SkipSeconds(), STAY_SECONDS_OFF_END, timeSearchActive, TimeSearchDisplay(), timeSearchHide, timeSearchPos, and timeSearchTime.
Referenced by ProcessKey().
|
inline |
|
private |
Definition at line 289 of file menu.h.
Referenced by cReplayControl(), and ProcessKey().
|
staticprivate |
Definition at line 303 of file menu.h.
Referenced by cReplayControl(), NowReplaying(), and ~cReplayControl().
|
private |
Definition at line 292 of file menu.h.
Referenced by cReplayControl(), MarkJump(), MarkMove(), MarkToggle(), ProcessKey(), and ShowProgress().
|
private |
Definition at line 288 of file menu.h.
Referenced by cReplayControl(), Hide(), ShowMode(), ShowProgress(), TimeSearchDisplay(), and TimeSearchProcess().
|
staticprivate |
Definition at line 304 of file menu.h.
Referenced by ClearLastReplayed(), cReplayControl(), EditCut(), LastReplayed(), NowReplaying(), SetRecording(), ShowProgress(), Stop(), and ~cReplayControl().
|
private |
Definition at line 293 of file menu.h.
Referenced by cReplayControl(), MarkToggle(), ShowProgress(), and TimeSearchProcess().
|
private |
Definition at line 294 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 294 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 295 of file menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
|
private |
Definition at line 293 of file menu.h.
Referenced by cReplayControl(), ShowProgress(), and TimeSearchProcess().
|
private |
Definition at line 290 of file menu.h.
Referenced by cReplayControl(), EditCut(), EditTest(), Hide(), MarkJump(), MarkMove(), MarkToggle(), ProcessKey(), and ShowProgress().
|
private |
Definition at line 291 of file menu.h.
Referenced by cReplayControl(), Hide(), MarkMove(), MarkToggle(), and ProcessKey().
|
private |
Definition at line 292 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowProgress(), ShowTimed(), and TimeSearch().
|
private |
Definition at line 292 of file menu.h.
Referenced by cReplayControl(), ProcessKey(), and ShowTimed().
|
private |
Definition at line 296 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowTimed(), and TimeSearch().
|
private |
Definition at line 297 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 297 of file menu.h.
Referenced by TimeSearch(), and TimeSearchProcess().
|
private |
Definition at line 298 of file menu.h.
Referenced by TimeSearch(), TimeSearchDisplay(), and TimeSearchProcess().
|
private |
Definition at line 298 of file menu.h.
Referenced by TimeSearch(), TimeSearchDisplay(), and TimeSearchProcess().
|
private |
Definition at line 292 of file menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowProgress(), ShowTimed(), TimeSearch(), and Visible().