vdr
1.7.27
|
#include <menu.h>
Public Member Functions | |
cReplayControl (bool PauseLive=false) | |
virtual | ~cReplayControl () |
void | Stop (void) |
virtual cOsdObject * | GetInfo (void) |
virtual eOSState | ProcessKey (eKeys Key) |
virtual void | Show (void) |
virtual void | Hide (void) |
bool | Visible (void) |
cReplayControl (bool PauseLive=false) | |
virtual | ~cReplayControl () |
void | Stop (void) |
virtual cOsdObject * | GetInfo (void) |
virtual eOSState | ProcessKey (eKeys Key) |
virtual void | Show (void) |
virtual void | Hide (void) |
bool | Visible (void) |
Static Public Member Functions | |
static void | SetRecording (const char *FileName, const char *Title) |
static const char * | NowReplaying (void) |
static const char * | LastReplayed (void) |
static void | ClearLastReplayed (const char *FileName) |
static void | SetRecording (const char *FileName, const char *Title) |
static const char * | NowReplaying (void) |
static const char * | LastReplayed (void) |
static void | ClearLastReplayed (const char *FileName) |
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) |
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 | 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 char * | fileName = NULL |
static char * | title = NULL |
Definition at line 256 of file include/vdr/menu.h.
cReplayControl::cReplayControl | ( | bool | PauseLive = false | ) |
Definition at line 4869 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, modeOnly, cStatus::MsgReplaying(), cRecording::Name(), REPLAYCONTROLSKIPSECONDS, cTimeMs::Set(), SetTrackDescriptions(), shown, timeoutShow, timeSearchActive, and visible.
cReplayControl::~cReplayControl | ( | ) | [virtual] |
Definition at line 4889 of file menu.c.
References currentReplayControl, fileName, Hide(), cStatus::MsgReplaying(), and Stop().
cReplayControl::cReplayControl | ( | bool | PauseLive = false | ) |
virtual cReplayControl::~cReplayControl | ( | ) | [virtual] |
void cReplayControl::ClearLastReplayed | ( | const char * | FileName | ) | [static] |
Definition at line 4948 of file menu.c.
References fileName.
Referenced by cMenuRecordings::Delete(), and Stop().
static void cReplayControl::ClearLastReplayed | ( | const char * | FileName | ) | [static] |
void cReplayControl::EditCut | ( | void | ) | [private] |
Definition at line 5205 of file menu.c.
References cCutter::Active(), cListBase::Count(), fileName, Hide(), marks, cSkins::Message(), mtError, mtInfo, ShowMode(), Skins, cCutter::Start(), and tr.
Referenced by ProcessKey().
void cReplayControl::EditCut | ( | void | ) | [private] |
void cReplayControl::EditTest | ( | void | ) | [private] |
void cReplayControl::EditTest | ( | void | ) | [private] |
Definition at line 5223 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 cOsdObject* cReplayControl::GetInfo | ( | void | ) | [virtual] |
Reimplemented from cControl.
cOsdObject * cReplayControl::GetInfo | ( | void | ) | [virtual] |
Reimplemented from cControl.
Definition at line 5241 of file menu.c.
References cRecordings::GetByName(), LastReplayed(), and Recordings.
void cReplayControl::Hide | ( | void | ) | [virtual] |
Implements cControl.
Definition at line 4973 of file menu.c.
References displayReplay, lastForward, lastPlay, lastSpeed, modeOnly, cOsdObject::SetNeedsFastResponse(), timeoutShow, timeSearchActive, and visible.
Referenced by EditCut(), ProcessKey(), ShowTimed(), TimeSearch(), TimeSearchProcess(), and ~cReplayControl().
virtual void cReplayControl::Hide | ( | void | ) | [virtual] |
Implements cControl.
static const char* cReplayControl::LastReplayed | ( | void | ) | [static] |
const char * cReplayControl::LastReplayed | ( | void | ) | [static] |
Definition at line 4943 of file menu.c.
References fileName.
Referenced by cMenuRecordings::cMenuRecordings(), cRecordControl::cRecordControl(), GetInfo(), main(), cMenuMain::ProcessKey(), cMenuRecordings::Set(), and cMenuMain::Update().
void cReplayControl::MarkJump | ( | bool | Forward | ) | [private] |
Definition at line 5158 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(), cMark::Position(), SecondsToFrames(), and Setup.
Referenced by ProcessKey().
void cReplayControl::MarkJump | ( | bool | Forward | ) | [private] |
void cReplayControl::MarkMove | ( | bool | Forward | ) | [private] |
Definition at line 5181 of file menu.c.
References displayFrames, cMarks::Get(), cDvbPlayerControl::GetIndex(), cDvbPlayerControl::Goto(), marks, cList< T >::Next(), cMark::Position(), cList< T >::Prev(), cConfig< T >::Save(), cMark::SetPosition(), and cDvbPlayerControl::SkipFrames().
Referenced by ProcessKey().
void cReplayControl::MarkMove | ( | bool | Forward | ) | [private] |
void cReplayControl::MarkToggle | ( | void | ) | [private] |
Definition at line 5138 of file menu.c.
References cMarks::Add(), cListBase::Del(), cDvbPlayerControl::Forward(), cMarks::Get(), cDvbPlayerControl::GetIndex(), cDvbPlayerControl::GetReplayMode(), cDvbPlayerControl::Goto(), lastCurrent, marks, cDvbPlayerControl::Play(), cConfig< T >::Save(), and ShowTimed().
Referenced by ProcessKey().
void cReplayControl::MarkToggle | ( | void | ) | [private] |
static const char* cReplayControl::NowReplaying | ( | void | ) | [static] |
const char * cReplayControl::NowReplaying | ( | void | ) | [static] |
Definition at line 4938 of file menu.c.
References currentReplayControl, and fileName.
Referenced by cMenuRecordings::Delete(), SetTrackDescriptions(), and cCutter::Stop().
virtual eOSState cReplayControl::ProcessKey | ( | eKeys | Key | ) | [virtual] |
Reimplemented from cOsdObject.
eOSState cReplayControl::ProcessKey | ( | eKeys | Key | ) | [virtual] |
Reimplemented from cOsdObject.
Definition at line 5249 of file menu.c.
References cDvbPlayerControl::Active(), cDvbPlayerControl::Backward(), cSetup::DelTimeshiftRec, displayFrames, EditCut(), EditTest(), fileName, cDvbPlayerControl::Forward(), cRecordControls::GetRecordControl(), Hide(), cRecordControl::InstantId(), 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, kPrev, kRed, kRight, kStop, kUp, kYellow, lastSkipKey, lastSkipSeconds, lastSkipTimeout, MarkJump(), MarkMove(), marks, 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.
void cReplayControl::SetRecording | ( | const char * | FileName, |
const char * | Title | ||
) | [static] |
Definition at line 4930 of file menu.c.
References fileName, and title.
Referenced by cSVDRP::CmdPLAY(), cRecordControl::cRecordControl(), cRecordControls::PauseLiveVideo(), and cMenuRecordings::Play().
static void cReplayControl::SetRecording | ( | const char * | FileName, |
const char * | Title | ||
) | [static] |
virtual void cReplayControl::Show | ( | void | ) | [virtual] |
Reimplemented from cOsdObject.
void cReplayControl::Show | ( | void | ) | [virtual] |
Reimplemented from cOsdObject.
Definition at line 4968 of file menu.c.
References ShowTimed().
Referenced by ProcessKey(), and TimeSearch().
void cReplayControl::ShowMode | ( | void | ) | [private] |
Definition at line 4988 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().
void cReplayControl::ShowMode | ( | void | ) | [private] |
bool cReplayControl::ShowProgress | ( | bool | Initial | ) | [private] |
bool cReplayControl::ShowProgress | ( | bool | Initial | ) | [private] |
Definition at line 5013 of file menu.c.
References cSkins::Current(), displayFrames, displayReplay, cSkin::DisplayReplay(), cSkinDisplay::Flush(), cControl::FramesPerSecond(), cDvbPlayerControl::GetIndex(), IndexToHMSF(), lastCurrent, lastTotal, marks, modeOnly, cSkinDisplayReplay::SetCurrent(), cSkinDisplayReplay::SetMarks(), cOsdObject::SetNeedsFastResponse(), cSkinDisplayReplay::SetProgress(), cSkinDisplayReplay::SetTitle(), cSkinDisplayReplay::SetTotal(), Setup, ShowMode(), cSetup::ShowRemainingTime, Skins, title, and visible.
Referenced by ProcessKey(), and ShowTimed().
void cReplayControl::ShowTimed | ( | int | Seconds = 0 | ) | [private] |
Definition at line 4956 of file menu.c.
References Hide(), modeOnly, shown, ShowProgress(), timeoutShow, and visible.
Referenced by MarkToggle(), and Show().
void cReplayControl::ShowTimed | ( | int | Seconds = 0 | ) | [private] |
void cReplayControl::Stop | ( | void | ) |
Reimplemented from cDvbPlayerControl.
void cReplayControl::Stop | ( | void | ) |
Reimplemented from cDvbPlayerControl.
Definition at line 4898 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, cRecordControl::Stop(), cRecordControl::Timer(), Timers, cTimer::ToDescr(), and tr.
Referenced by ProcessKey(), and ~cReplayControl().
void cReplayControl::TimeSearch | ( | void | ) | [private] |
Definition at line 5120 of file menu.c.
References Hide(), modeOnly, Show(), timeoutShow, timeSearchActive, TimeSearchDisplay(), timeSearchHide, timeSearchPos, timeSearchTime, and visible.
Referenced by ProcessKey().
void cReplayControl::TimeSearch | ( | void | ) | [private] |
void cReplayControl::TimeSearchDisplay | ( | void | ) | [private] |
Definition at line 5052 of file menu.c.
References displayReplay, cSkinDisplayReplay::SetJump(), timeSearchPos, timeSearchTime, and tr.
Referenced by TimeSearch(), and TimeSearchProcess().
void cReplayControl::TimeSearchDisplay | ( | void | ) | [private] |
void cReplayControl::TimeSearchProcess | ( | eKeys | Key | ) | [private] |
void cReplayControl::TimeSearchProcess | ( | eKeys | Key | ) | [private] |
Definition at line 5070 of file menu.c.
References displayReplay, cControl::FramesPerSecond(), cDvbPlayerControl::Goto(), Hide(), k0, k9, k_Flags, kDown, kFastFwd, kFastRew, kLeft, kOk, kPause, kPlay, kRight, kUp, lastCurrent, lastTotal, min(), SecondsToFrames(), cSkinDisplayReplay::SetJump(), ShowMode(), cDvbPlayerControl::SkipSeconds(), STAY_SECONDS_OFF_END, timeSearchActive, TimeSearchDisplay(), timeSearchHide, timeSearchPos, and timeSearchTime.
Referenced by ProcessKey().
bool cReplayControl::Visible | ( | void | ) | [inline] |
bool cReplayControl::Visible | ( | void | ) | [inline] |
Definition at line 292 of file include/vdr/menu.h.
References visible.
static cReplayControl * cReplayControl::currentReplayControl = NULL [static, private] |
Definition at line 274 of file include/vdr/menu.h.
Referenced by cReplayControl(), NowReplaying(), and ~cReplayControl().
bool cReplayControl::displayFrames [private] |
Definition at line 260 of file include/vdr/menu.h.
Referenced by cReplayControl(), MarkJump(), MarkMove(), ProcessKey(), and ShowProgress().
cSkinDisplayReplay * cReplayControl::displayReplay [private] |
Definition at line 258 of file include/vdr/menu.h.
Referenced by cReplayControl(), Hide(), ShowMode(), ShowProgress(), TimeSearchDisplay(), and TimeSearchProcess().
static char * cReplayControl::fileName = NULL [static, private] |
Definition at line 275 of file include/vdr/menu.h.
Referenced by ClearLastReplayed(), cReplayControl(), EditCut(), LastReplayed(), NowReplaying(), ProcessKey(), SetRecording(), Stop(), and ~cReplayControl().
int cReplayControl::lastCurrent [private] |
Definition at line 261 of file include/vdr/menu.h.
Referenced by cReplayControl(), MarkToggle(), ShowProgress(), and TimeSearchProcess().
bool cReplayControl::lastForward [private] |
Definition at line 262 of file include/vdr/menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
bool cReplayControl::lastPlay [private] |
Definition at line 262 of file include/vdr/menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
eKeys cReplayControl::lastSkipKey [private] |
Definition at line 265 of file include/vdr/menu.h.
Referenced by cReplayControl(), and ProcessKey().
int cReplayControl::lastSkipSeconds [private] |
Definition at line 264 of file include/vdr/menu.h.
Referenced by cReplayControl(), and ProcessKey().
cTimeMs cReplayControl::lastSkipTimeout [private] |
Definition at line 266 of file include/vdr/menu.h.
Referenced by cReplayControl(), and ProcessKey().
int cReplayControl::lastSpeed [private] |
Definition at line 263 of file include/vdr/menu.h.
Referenced by cReplayControl(), Hide(), and ShowMode().
int cReplayControl::lastTotal [private] |
Definition at line 261 of file include/vdr/menu.h.
Referenced by cReplayControl(), ShowProgress(), and TimeSearchProcess().
cMarks cReplayControl::marks [private] |
Definition at line 259 of file include/vdr/menu.h.
Referenced by cReplayControl(), EditCut(), EditTest(), MarkJump(), MarkMove(), MarkToggle(), ProcessKey(), and ShowProgress().
bool cReplayControl::modeOnly [private] |
Definition at line 260 of file include/vdr/menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowProgress(), ShowTimed(), and TimeSearch().
bool cReplayControl::shown [private] |
Definition at line 260 of file include/vdr/menu.h.
Referenced by cReplayControl(), ProcessKey(), and ShowTimed().
time_t cReplayControl::timeoutShow [private] |
Definition at line 267 of file include/vdr/menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowTimed(), and TimeSearch().
bool cReplayControl::timeSearchActive [private] |
Definition at line 268 of file include/vdr/menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), TimeSearch(), and TimeSearchProcess().
bool cReplayControl::timeSearchHide [private] |
Definition at line 268 of file include/vdr/menu.h.
Referenced by TimeSearch(), and TimeSearchProcess().
int cReplayControl::timeSearchPos [private] |
Definition at line 269 of file include/vdr/menu.h.
Referenced by TimeSearch(), TimeSearchDisplay(), and TimeSearchProcess().
int cReplayControl::timeSearchTime [private] |
Definition at line 269 of file include/vdr/menu.h.
Referenced by TimeSearch(), TimeSearchDisplay(), and TimeSearchProcess().
static char * cReplayControl::title = NULL [static, private] |
Definition at line 276 of file include/vdr/menu.h.
Referenced by SetRecording(), and ShowProgress().
bool cReplayControl::visible [private] |
Definition at line 260 of file include/vdr/menu.h.
Referenced by cReplayControl(), Hide(), ProcessKey(), ShowMode(), ShowProgress(), ShowTimed(), TimeSearch(), and Visible().