vdr
1.7.27
|
#include <timers.h>
Public Member Functions | |
cTimer (bool Instant=false, bool Pause=false, cChannel *Channel=NULL) | |
cTimer (const cEvent *Event) | |
cTimer (const cTimer &Timer) | |
virtual | ~cTimer () |
cTimer & | operator= (const cTimer &Timer) |
virtual int | Compare (const cListObject &ListObject) const |
bool | Recording (void) const |
bool | Pending (void) const |
bool | InVpsMargin (void) const |
uint | Flags (void) const |
const cChannel * | Channel (void) const |
time_t | Day (void) const |
int | WeekDays (void) const |
int | Start (void) const |
int | Stop (void) const |
int | Priority (void) const |
int | Lifetime (void) const |
const char * | File (void) const |
time_t | FirstDay (void) const |
const char * | Aux (void) const |
time_t | Deferred (void) const |
cString | ToText (bool UseChannelID=false) const |
cString | ToDescr (void) const |
const cEvent * | Event (void) const |
bool | Parse (const char *s) |
bool | Save (FILE *f) |
bool | IsSingleEvent (void) const |
bool | DayMatches (time_t t) const |
void | SetFile (const char *File) |
bool | Matches (time_t t=0, bool Directly=false, int Margin=0) const |
int | Matches (const cEvent *Event, int *Overlap=NULL) const |
bool | Expired (void) const |
time_t | StartTime (void) const |
time_t | StopTime (void) const |
void | SetEventFromSchedule (const cSchedules *Schedules=NULL) |
void | SetEvent (const cEvent *Event) |
void | SetRecording (bool Recording) |
void | SetPending (bool Pending) |
void | SetInVpsMargin (bool InVpsMargin) |
void | SetDay (time_t Day) |
void | SetWeekDays (int WeekDays) |
void | SetStart (int Start) |
void | SetStop (int Stop) |
void | SetPriority (int Priority) |
void | SetLifetime (int Lifetime) |
void | SetAux (const char *Aux) |
void | SetDeferred (int Seconds) |
void | SetFlags (uint Flags) |
void | ClrFlags (uint Flags) |
void | InvFlags (uint Flags) |
bool | HasFlags (uint Flags) const |
void | Skip (void) |
void | OnOff (void) |
cString | PrintFirstDay (void) const |
cTimer (bool Instant=false, bool Pause=false, cChannel *Channel=NULL) | |
cTimer (const cEvent *Event) | |
cTimer (const cTimer &Timer) | |
virtual | ~cTimer () |
cTimer & | operator= (const cTimer &Timer) |
virtual int | Compare (const cListObject &ListObject) const |
bool | Recording (void) const |
bool | Pending (void) const |
bool | InVpsMargin (void) const |
uint | Flags (void) const |
const cChannel * | Channel (void) const |
time_t | Day (void) const |
int | WeekDays (void) const |
int | Start (void) const |
int | Stop (void) const |
int | Priority (void) const |
int | Lifetime (void) const |
const char * | File (void) const |
time_t | FirstDay (void) const |
const char * | Aux (void) const |
time_t | Deferred (void) const |
cString | ToText (bool UseChannelID=false) const |
cString | ToDescr (void) const |
const cEvent * | Event (void) const |
bool | Parse (const char *s) |
bool | Save (FILE *f) |
bool | IsSingleEvent (void) const |
bool | DayMatches (time_t t) const |
void | SetFile (const char *File) |
bool | Matches (time_t t=0, bool Directly=false, int Margin=0) const |
int | Matches (const cEvent *Event, int *Overlap=NULL) const |
bool | Expired (void) const |
time_t | StartTime (void) const |
time_t | StopTime (void) const |
void | SetEventFromSchedule (const cSchedules *Schedules=NULL) |
void | SetEvent (const cEvent *Event) |
void | SetRecording (bool Recording) |
void | SetPending (bool Pending) |
void | SetInVpsMargin (bool InVpsMargin) |
void | SetDay (time_t Day) |
void | SetWeekDays (int WeekDays) |
void | SetStart (int Start) |
void | SetStop (int Stop) |
void | SetPriority (int Priority) |
void | SetLifetime (int Lifetime) |
void | SetAux (const char *Aux) |
void | SetDeferred (int Seconds) |
void | SetFlags (uint Flags) |
void | ClrFlags (uint Flags) |
void | InvFlags (uint Flags) |
bool | HasFlags (uint Flags) const |
void | Skip (void) |
void | OnOff (void) |
cString | PrintFirstDay (void) const |
Static Public Member Functions | |
static int | GetMDay (time_t t) |
static int | GetWDay (time_t t) |
static time_t | IncDay (time_t t, int Days) |
static time_t | SetTime (time_t t, int SecondsFromMidnight) |
static int | TimeToInt (int t) |
static bool | ParseDay (const char *s, time_t &Day, int &WeekDays) |
static cString | PrintDay (time_t Day, int WeekDays, bool SingleByteChars) |
static int | GetMDay (time_t t) |
static int | GetWDay (time_t t) |
static time_t | IncDay (time_t t, int Days) |
static time_t | SetTime (time_t t, int SecondsFromMidnight) |
static int | TimeToInt (int t) |
static bool | ParseDay (const char *s, time_t &Day, int &WeekDays) |
static cString | PrintDay (time_t Day, int WeekDays, bool SingleByteChars) |
Private Attributes | |
time_t | startTime |
time_t | stopTime |
time_t | lastSetEvent |
time_t | deferred |
bool | recording |
bool | pending |
bool | inVpsMargin |
uint | flags |
cChannel * | channel |
time_t | day |
int | weekdays |
int | start |
int | stop |
int | priority |
int | lifetime |
char | file [MaxFileName] |
char * | aux |
const cEvent * | event |
Friends | |
class | cMenuEditTimer |
Definition at line 27 of file include/vdr/timers.h.
cTimer::cTimer | ( | bool | Instant = false , |
bool | Pause = false , |
||
cChannel * | Channel = NULL |
||
) |
Definition at line 28 of file timers.c.
References aux, channel, Channels, cDevice::CurrentChannel(), day, cSetup::DefaultLifetime, cSetup::DefaultPriority, deferred, dsyslog, file, flags, cChannels::GetByNumber(), cSetup::InstantRecordTime, inVpsMargin, lastSetEvent, lifetime, cSetup::MarkInstantRecord, cChannel::Name(), cSetup::NameInstantRecord, cSetup::PauseLifetime, cSetup::PausePriority, pending, priority, recording, SetFlags(), SetTime(), Setup, start, startTime, stop, stopTime, tfActive, tfInstant, tfNone, Utf8StrLen(), Utf8SymChars(), VFAT_MAX_FILENAME, VfatFileSystem, and weekdays.
cTimer::cTimer | ( | const cEvent * | Event | ) |
Definition at line 62 of file timers.c.
References aux, channel, cEvent::ChannelID(), Channels, day, cSetup::DefaultLifetime, cSetup::DefaultPriority, deferred, dsyslog, cEvent::Duration(), file, flags, cChannels::GetByChannelID(), HasFlags(), inVpsMargin, isempty(), lastSetEvent, lifetime, cSetup::MarginStart, cSetup::MarginStop, pending, priority, recording, SetFlags(), SetTime(), Setup, start, startTime, cEvent::StartTime(), stop, stopTime, tfActive, tfVps, cEvent::Title(), cSetup::UseVps, Utf8StrLen(), Utf8Strn0Cpy(), Utf8SymChars(), VFAT_MAX_FILENAME, VfatFileSystem, cEvent::Vps(), and weekdays.
cTimer::cTimer | ( | const cTimer & | Timer | ) |
cTimer::~cTimer | ( | ) | [virtual] |
cTimer::cTimer | ( | bool | Instant = false , |
bool | Pause = false , |
||
cChannel * | Channel = NULL |
||
) |
cTimer::cTimer | ( | const cEvent * | Event | ) |
cTimer::cTimer | ( | const cTimer & | Timer | ) |
virtual cTimer::~cTimer | ( | ) | [virtual] |
const char* cTimer::Aux | ( | void | ) | const [inline] |
Definition at line 65 of file include/vdr/timers.h.
References aux.
Referenced by cRecording::cRecording().
const char* cTimer::Aux | ( | void | ) | const [inline] |
const cChannel* cTimer::Channel | ( | void | ) | const [inline] |
Definition at line 56 of file include/vdr/timers.h.
References channel.
Referenced by cMenuEditTimer::cMenuEditTimer(), cMenuTimers::Commands(), cRecordControl::cRecordControl(), cRecording::cRecording(), cShutdownHandler::DoShutdown(), cRecordControl::GetEvent(), cTimers::GetTimer(), main(), cMenuEditTimer::ProcessKey(), cMenuTimerItem::Set(), SetEventFromSchedule(), cRecordControls::Start(), ToDescr(), and ToText().
const cChannel* cTimer::Channel | ( | void | ) | const [inline] |
void cTimer::ClrFlags | ( | uint | Flags | ) |
Definition at line 646 of file timers.c.
References flags.
Referenced by cSVDRP::CmdMODT(), OnOff(), Parse(), and SetRecording().
void cTimer::ClrFlags | ( | uint | Flags | ) |
int cTimer::Compare | ( | const cListObject & | ListObject | ) | const [virtual] |
Must return 0 if this object is equal to ListObject, a positive value if it is "greater", and a negative value if it is "smaller".
Reimplemented from cListObject.
Definition at line 143 of file timers.c.
References priority, and StartTime().
Referenced by cMenuTimerItem::Compare().
virtual int cTimer::Compare | ( | const cListObject & | ListObject | ) | const [virtual] |
Must return 0 if this object is equal to ListObject, a positive value if it is "greater", and a negative value if it is "smaller".
Reimplemented from cListObject.
time_t cTimer::Day | ( | void | ) | const [inline] |
Definition at line 57 of file include/vdr/timers.h.
References day.
Referenced by cTimers::GetTimer(), cMenuTimerItem::Set(), and SetDay().
time_t cTimer::Day | ( | void | ) | const [inline] |
bool cTimer::DayMatches | ( | time_t | t | ) | const |
bool cTimer::DayMatches | ( | time_t | t | ) | const |
Definition at line 359 of file timers.c.
References day, GetWDay(), IsSingleEvent(), SetTime(), and weekdays.
Referenced by cMenuTimers::ActualiseDiskStatus(), and Matches().
time_t cTimer::Deferred | ( | void | ) | const [inline] |
Definition at line 66 of file include/vdr/timers.h.
References deferred.
time_t cTimer::Deferred | ( | void | ) | const [inline] |
const cEvent* cTimer::Event | ( | void | ) | const [inline] |
const cEvent* cTimer::Event | ( | void | ) | const [inline] |
Definition at line 69 of file include/vdr/timers.h.
References event.
Referenced by cMenuTimers::Commands(), cRecordControl::cRecordControl(), cMenuTimers::Info(), main(), SetEvent(), SetEventFromSchedule(), and cMenuTimers::SetHelpKeys().
bool cTimer::Expired | ( | void | ) | const |
Definition at line 486 of file timers.c.
References EXPIRELATENCY, HasFlags(), IsSingleEvent(), Recording(), StopTime(), and tfVps.
Referenced by cTimers::DeleteExpired().
bool cTimer::Expired | ( | void | ) | const |
const char* cTimer::File | ( | void | ) | const [inline] |
const char* cTimer::File | ( | void | ) | const [inline] |
Definition at line 63 of file include/vdr/timers.h.
References file.
Referenced by cMenuTimers::Commands(), cRecording::cRecording(), cShutdownHandler::DoShutdown(), and cMenuTimerItem::Set().
time_t cTimer::FirstDay | ( | void | ) | const [inline] |
time_t cTimer::FirstDay | ( | void | ) | const [inline] |
Definition at line 64 of file include/vdr/timers.h.
Referenced by cMenuTimers::OnOff(), and cMenuTimerItem::Set().
uint cTimer::Flags | ( | void | ) | const [inline] |
Definition at line 55 of file include/vdr/timers.h.
References flags.
Referenced by HasFlags(), InvFlags(), and SetFlags().
uint cTimer::Flags | ( | void | ) | const [inline] |
static int cTimer::GetMDay | ( | time_t | t | ) | [static] |
int cTimer::GetMDay | ( | time_t | t | ) | [static] |
Definition at line 346 of file timers.c.
Referenced by ParseDay(), and cMenuTimerItem::Set().
static int cTimer::GetWDay | ( | time_t | t | ) | [static] |
int cTimer::GetWDay | ( | time_t | t | ) | [static] |
Definition at line 352 of file timers.c.
Referenced by DayMatches(), and cMenuEditDateItem::ToggleRepeating().
bool cTimer::HasFlags | ( | uint | Flags | ) | const |
Definition at line 656 of file timers.c.
References flags, and Flags().
Referenced by cTimerEntry::active(), cSVDRP::CmdMODT(), cTimer(), Expired(), cRecordControl::GetEvent(), main(), Matches(), OnOff(), cMenuTimers::OnOff(), cMenuEditTimer::ProcessKey(), cMenuTimerItem::Set(), SetEventFromSchedule(), and ToDescr().
bool cTimer::HasFlags | ( | uint | Flags | ) | const |
static time_t cTimer::IncDay | ( | time_t | t, |
int | Days | ||
) | [static] |
time_t cTimer::IncDay | ( | time_t | t, |
int | Days | ||
) | [static] |
Definition at line 364 of file timers.c.
Referenced by cMenuTimers::ActualiseDiskStatus(), Matches(), ParseDay(), and Skip().
void cTimer::InvFlags | ( | uint | Flags | ) |
void cTimer::InvFlags | ( | uint | Flags | ) |
bool cTimer::InVpsMargin | ( | void | ) | const [inline] |
Definition at line 54 of file include/vdr/timers.h.
References inVpsMargin.
Referenced by SetInVpsMargin().
bool cTimer::InVpsMargin | ( | void | ) | const [inline] |
Definition at line 54 of file timers.h.
References inVpsMargin.
bool cTimer::IsSingleEvent | ( | void | ) | const |
bool cTimer::IsSingleEvent | ( | void | ) | const |
Definition at line 341 of file timers.c.
References weekdays.
Referenced by cRecording::cRecording(), DayMatches(), cMenuRecordings::Delete(), Expired(), Matches(), OnOff(), cTimerEntry::repTimer(), and cMenuEditTimer::SetFirstDayItem().
int cTimer::Lifetime | ( | void | ) | const [inline] |
int cTimer::Lifetime | ( | void | ) | const [inline] |
Definition at line 62 of file include/vdr/timers.h.
References lifetime.
Referenced by cRecording::cRecording(), and SetLifetime().
bool cTimer::Matches | ( | time_t | t = 0 , |
bool | Directly = false , |
||
int | Margin = 0 |
||
) | const |
bool cTimer::Matches | ( | time_t | t = 0 , |
bool | Directly = false , |
||
int | Margin = 0 |
||
) | const |
Definition at line 395 of file timers.c.
References day, DayMatches(), deferred, EITPRESENTFOLLOWINGRATE, event, HasFlags(), IncDay(), cEvent::IsRunning(), IsSingleEvent(), max(), cSchedule::PresentSeenWithin(), cEvent::Schedule(), SECSINDAY, SetTime(), start, startTime, stop, stopTime, tfActive, tfVps, TimeToInt(), and cEvent::Vps().
Referenced by cTimers::GetNextActiveTimer(), main(), Matches(), OnOff(), cRecordControl::Process(), cMenuEditTimer::ProcessKey(), cMenuWhatsOn::Record(), cMenuSchedule::Record(), SetEventFromSchedule(), cRecordControls::Start(), StartTime(), and StopTime().
int cTimer::Matches | ( | const cEvent * | Event, |
int * | Overlap = NULL |
||
) | const |
int cTimer::Matches | ( | const cEvent * | Event, |
int * | Overlap = NULL |
||
) | const |
Definition at line 453 of file timers.c.
References channel, cEvent::ChannelID(), cEvent::Duration(), cEvent::EndTime(), FULLMATCH, cChannel::GetChannelID(), HasFlags(), cEvent::IsRunning(), Matches(), max(), min(), startTime, StartTime(), cEvent::StartTime(), stopTime, tfActive, tfVps, tmFull, tmNone, tmPartial, and cEvent::Vps().
void cTimer::OnOff | ( | void | ) |
Definition at line 668 of file timers.c.
References ClrFlags(), day, HasFlags(), InvFlags(), IsSingleEvent(), Matches(), SetEvent(), SetFlags(), Skip(), and tfActive.
Referenced by cRecordControl::cRecordControl(), and cMenuTimers::OnOff().
void cTimer::OnOff | ( | void | ) |
bool cTimer::Parse | ( | const char * | s | ) |
bool cTimer::Parse | ( | const char * | s | ) |
Definition at line 275 of file timers.c.
References aux, channel, Channels, ClrFlags(), day, dsyslog, esyslog, file, flags, FOLDERDELIMCHAR, tChannelID::FromString(), cChannels::GetByChannelID(), cChannels::GetByNumber(), isnumber(), lifetime, MALLOC, ParseDay(), priority, skipspace(), start, stop, strn0cpy(), strreplace(), tfRecording, Utf8StrLen(), Utf8Strn0Cpy(), Utf8SymChars(), VFAT_MAX_FILENAME, VfatFileSystem, and weekdays.
Referenced by cSVDRP::CmdMODT(), cSVDRP::CmdNEWT(), and cSVDRP::CmdUPDT().
bool cTimer::ParseDay | ( | const char * | s, |
time_t & | Day, | ||
int & | WeekDays | ||
) | [static] |
Definition at line 172 of file timers.c.
References day, GetMDay(), IncDay(), SetTime(), and skipspace().
Referenced by Parse(), and ParseWeekDays().
static bool cTimer::ParseDay | ( | const char * | s, |
time_t & | Day, | ||
int & | WeekDays | ||
) | [static] |
bool cTimer::Pending | ( | void | ) | const [inline] |
Definition at line 53 of file include/vdr/timers.h.
References pending.
Referenced by SetPending(), and cRecordControls::Start().
bool cTimer::Pending | ( | void | ) | const [inline] |
static cString cTimer::PrintDay | ( | time_t | Day, |
int | WeekDays, | ||
bool | SingleByteChars | ||
) | [static] |
cString cTimer::PrintDay | ( | time_t | Day, |
int | WeekDays, | ||
bool | SingleByteChars | ||
) | [static] |
Definition at line 231 of file timers.c.
References DAYBUFFERSIZE, tr, trNOOP, and Utf8CharLen().
Referenced by PrintFirstDay(), cMenuEditDateItem::Set(), cMenuTimerItem::Set(), and ToText().
cString cTimer::PrintFirstDay | ( | void | ) | const |
cString cTimer::PrintFirstDay | ( | void | ) | const |
Definition at line 265 of file timers.c.
References day, PrintDay(), and weekdays.
Referenced by cMenuTimers::OnOff().
int cTimer::Priority | ( | void | ) | const [inline] |
int cTimer::Priority | ( | void | ) | const [inline] |
Definition at line 61 of file include/vdr/timers.h.
References priority.
Referenced by cRecordControl::cRecordControl(), cRecording::cRecording(), cTimers::GetMatch(), cTimerEntry::priority(), cRecordControl::Process(), SetPriority(), and cRecordControls::Start().
bool cTimer::Recording | ( | void | ) | const [inline] |
Definition at line 52 of file include/vdr/timers.h.
References recording.
Referenced by cSVDRP::CmdDELT(), cMenuTimers::Delete(), Expired(), main(), cMenuTimerItem::Set(), SetEventFromSchedule(), and SetRecording().
bool cTimer::Recording | ( | void | ) | const [inline] |
bool cTimer::Save | ( | FILE * | f | ) |
bool cTimer::Save | ( | FILE * | f | ) |
void cTimer::SetAux | ( | const char * | Aux | ) |
void cTimer::SetAux | ( | const char * | Aux | ) |
void cTimer::SetDay | ( | time_t | Day | ) |
void cTimer::SetDay | ( | time_t | Day | ) |
void cTimer::SetDeferred | ( | int | Seconds | ) |
void cTimer::SetDeferred | ( | int | Seconds | ) |
void cTimer::SetEvent | ( | const cEvent * | Event | ) |
Definition at line 566 of file timers.c.
References event, Event(), isyslog, ToDescr(), and cEvent::ToDescr().
Referenced by OnOff(), SetEventFromSchedule(), and Skip().
void cTimer::SetEvent | ( | const cEvent * | Event | ) |
void cTimer::SetEventFromSchedule | ( | const cSchedules * | Schedules = NULL | ) |
Definition at line 508 of file timers.c.
References Channel(), cEvent::Duration(), EPGLIMITAFTER, EPGLIMITBEFORE, event, Event(), cSchedule::Events(), cList< T >::First(), FULLMATCH, cSchedules::GetSchedule(), HasFlags(), lastSetEvent, Matches(), cSchedule::Modified(), cList< T >::Next(), Recording(), SI::RunningStatusNotRunning, cSchedules::Schedules(), SetEvent(), StartTime(), StopTime(), tfVps, and cEvent::Vps().
Referenced by cMenuTimers::OnOff(), and cMenuEditTimer::ProcessKey().
void cTimer::SetEventFromSchedule | ( | const cSchedules * | Schedules = NULL | ) |
void cTimer::SetFile | ( | const char * | File | ) |
void cTimer::SetFile | ( | const char * | File | ) |
Definition at line 387 of file timers.c.
References file, isempty(), and Utf8Strn0Cpy().
Referenced by cRecording::cRecording().
void cTimer::SetFlags | ( | uint | Flags | ) |
Definition at line 641 of file timers.c.
References flags, and Flags().
Referenced by cSVDRP::CmdMODT(), cMenuEditTimer::cMenuEditTimer(), cTimer(), OnOff(), and SetRecording().
void cTimer::SetFlags | ( | uint | Flags | ) |
void cTimer::SetInVpsMargin | ( | bool | InVpsMargin | ) |
Definition at line 592 of file timers.c.
References inVpsMargin, InVpsMargin(), isyslog, and ToDescr().
Referenced by main().
void cTimer::SetInVpsMargin | ( | bool | InVpsMargin | ) |
void cTimer::SetLifetime | ( | int | Lifetime | ) |
Definition at line 624 of file timers.c.
References lifetime, and Lifetime().
void cTimer::SetLifetime | ( | int | Lifetime | ) |
void cTimer::SetPending | ( | bool | Pending | ) |
Definition at line 587 of file timers.c.
References pending, and Pending().
Referenced by cRecordControl::cRecordControl(), main(), cRecordControl::Process(), and cRecordControls::Start().
void cTimer::SetPending | ( | bool | Pending | ) |
void cTimer::SetPriority | ( | int | Priority | ) |
void cTimer::SetPriority | ( | int | Priority | ) |
Definition at line 619 of file timers.c.
References priority, and Priority().
void cTimer::SetRecording | ( | bool | Recording | ) |
Definition at line 577 of file timers.c.
References ClrFlags(), isyslog, recording, Recording(), SetFlags(), tfRecording, and ToDescr().
Referenced by cRecordControl::cRecordControl(), and cRecordControl::Stop().
void cTimer::SetRecording | ( | bool | Recording | ) |
void cTimer::SetStart | ( | int | Start | ) |
void cTimer::SetStart | ( | int | Start | ) |
void cTimer::SetStop | ( | int | Stop | ) |
void cTimer::SetStop | ( | int | Stop | ) |
static time_t cTimer::SetTime | ( | time_t | t, |
int | SecondsFromMidnight | ||
) | [static] |
time_t cTimer::SetTime | ( | time_t | t, |
int | SecondsFromMidnight | ||
) | [static] |
Definition at line 376 of file timers.c.
Referenced by cTimer(), DayMatches(), Matches(), ParseDay(), cMenuEditDateItem::ProcessKey(), Skip(), and cMenuEditDateItem::ToggleRepeating().
void cTimer::SetWeekDays | ( | int | WeekDays | ) |
void cTimer::SetWeekDays | ( | int | WeekDays | ) |
Definition at line 604 of file timers.c.
References weekdays, and WeekDays().
void cTimer::Skip | ( | void | ) |
Definition at line 661 of file timers.c.
References day, IncDay(), SetEvent(), SetTime(), startTime, and StartTime().
Referenced by cMenuRecordings::Delete(), cMenuTimers::Delete(), and OnOff().
void cTimer::Skip | ( | void | ) |
int cTimer::Start | ( | void | ) | const [inline] |
int cTimer::Start | ( | void | ) | const [inline] |
Definition at line 59 of file include/vdr/timers.h.
References start.
Referenced by cTimerEntry::duration(), cTimers::GetTimer(), cMenuTimerItem::Set(), and SetStart().
time_t cTimer::StartTime | ( | void | ) | const |
Definition at line 491 of file timers.c.
References Matches(), and startTime.
Referenced by cSVDRP::CmdNEXT(), cMenuTimers::Commands(), Compare(), cShutdownHandler::ConfirmRestart(), cShutdownHandler::ConfirmShutdown(), cRecording::cRecording(), cShutdownHandler::DoShutdown(), cRecordControl::GetEvent(), Matches(), SetEventFromSchedule(), and Skip().
time_t cTimer::StartTime | ( | void | ) | const |
int cTimer::Stop | ( | void | ) | const [inline] |
Definition at line 60 of file include/vdr/timers.h.
References stop.
Referenced by cTimerEntry::duration(), cTimers::GetTimer(), cMenuTimerItem::Set(), and SetStop().
int cTimer::Stop | ( | void | ) | const [inline] |
time_t cTimer::StopTime | ( | void | ) | const |
Definition at line 498 of file timers.c.
References Matches(), and stopTime.
Referenced by cMenuTimers::Commands(), Expired(), cRecordControl::GetEvent(), cTimers::GetNextActiveTimer(), and SetEventFromSchedule().
time_t cTimer::StopTime | ( | void | ) | const |
static int cTimer::TimeToInt | ( | int | t | ) | [static] |
int cTimer::TimeToInt | ( | int | t | ) | [static] |
cString cTimer::ToDescr | ( | void | ) | const |
cString cTimer::ToDescr | ( | void | ) | const |
Definition at line 162 of file timers.c.
References Channel(), file, HasFlags(), cListObject::Index(), cString::sprintf(), start, stop, and tfVps.
Referenced by cSVDRP::CmdDELT(), cSVDRP::CmdMODT(), cSVDRP::CmdNEWT(), cSVDRP::CmdUPDT(), cMenuRecordings::Delete(), cMenuTimers::Delete(), cTimers::DeleteExpired(), cMenuTimers::OnOff(), cMenuEditTimer::ProcessKey(), cMenuWhatsOn::Record(), cMenuSchedule::Record(), SetDeferred(), SetEvent(), SetInVpsMargin(), SetRecording(), cRecordControls::Start(), cRecordControls::Stop(), and cReplayControl::Stop().
cString cTimer::ToText | ( | bool | UseChannelID = false | ) | const |
Definition at line 154 of file timers.c.
References aux, Channel(), day, file, flags, itoa(), lifetime, PrintDay(), priority, cString::sprintf(), start, stop, strreplace(), and weekdays.
Referenced by cSVDRP::CmdLSTT(), cSVDRP::CmdMODT(), cSVDRP::CmdNEWT(), cSVDRP::CmdUPDT(), Save(), and cStatusTest::TimerChange().
cString cTimer::ToText | ( | bool | UseChannelID = false | ) | const |
int cTimer::WeekDays | ( | void | ) | const [inline] |
Definition at line 58 of file include/vdr/timers.h.
References weekdays.
Referenced by cTimers::GetTimer(), cMenuTimerItem::Set(), and SetWeekDays().
int cTimer::WeekDays | ( | void | ) | const [inline] |
cMenuEditTimer [friend] |
Definition at line 28 of file include/vdr/timers.h.
char * cTimer::aux [private] |
Definition at line 43 of file include/vdr/timers.h.
Referenced by Aux(), cTimer(), operator=(), Parse(), SetAux(), ToText(), and ~cTimer().
cChannel * cTimer::channel [private] |
Definition at line 35 of file include/vdr/timers.h.
Referenced by Channel(), cTimer(), Matches(), operator=(), Parse(), and cMenuEditTimer::ProcessKey().
time_t cTimer::day [mutable, private] |
midnight of the day this timer shall hit, or of the first day it shall hit in case of a repeating timer
Definition at line 36 of file include/vdr/timers.h.
Referenced by cMenuEditTimer::cMenuEditTimer(), cTimer(), Day(), DayMatches(), FirstDay(), Matches(), OnOff(), operator=(), Parse(), ParseDay(), PrintFirstDay(), SetDay(), cMenuEditTimer::SetFirstDayItem(), Skip(), and ToText().
time_t cTimer::deferred [mutable, private] |
Matches(time_t, ...) will return false if the current time is before this value.
Definition at line 32 of file include/vdr/timers.h.
Referenced by cTimer(), Deferred(), Matches(), operator=(), and SetDeferred().
const cEvent * cTimer::event [private] |
Definition at line 44 of file include/vdr/timers.h.
Referenced by Event(), Matches(), SetEvent(), and SetEventFromSchedule().
char cTimer::file [mutable, private] |
Definition at line 42 of file include/vdr/timers.h.
Referenced by cMenuEditTimer::cMenuEditTimer(), cTimer(), File(), operator=(), Parse(), cMenuEditTimer::ProcessKey(), SetFile(), cMenuEditTimer::SetFolder(), ToDescr(), and ToText().
uint cTimer::flags [private] |
Definition at line 34 of file include/vdr/timers.h.
Referenced by ClrFlags(), cMenuEditTimer::cMenuEditTimer(), cTimer(), Flags(), HasFlags(), InvFlags(), operator=(), Parse(), SetFlags(), and ToText().
bool cTimer::inVpsMargin [private] |
Definition at line 33 of file include/vdr/timers.h.
Referenced by cTimer(), InVpsMargin(), operator=(), and SetInVpsMargin().
time_t cTimer::lastSetEvent [private] |
Definition at line 31 of file include/vdr/timers.h.
Referenced by cTimer(), operator=(), and SetEventFromSchedule().
int cTimer::lifetime [private] |
Definition at line 41 of file include/vdr/timers.h.
Referenced by cMenuEditTimer::cMenuEditTimer(), cTimer(), Lifetime(), operator=(), Parse(), SetLifetime(), and ToText().
bool cTimer::pending [private] |
Definition at line 33 of file include/vdr/timers.h.
Referenced by cTimer(), operator=(), Pending(), and SetPending().
int cTimer::priority [private] |
Definition at line 40 of file include/vdr/timers.h.
Referenced by cMenuEditTimer::cMenuEditTimer(), Compare(), cTimer(), operator=(), Parse(), Priority(), SetPriority(), and ToText().
bool cTimer::recording [private] |
Definition at line 33 of file include/vdr/timers.h.
Referenced by cTimer(), operator=(), Recording(), and SetRecording().
int cTimer::start [private] |
Definition at line 38 of file include/vdr/timers.h.
Referenced by cMenuEditTimer::cMenuEditTimer(), cTimer(), Matches(), operator=(), Parse(), SetStart(), Start(), ToDescr(), and ToText().
time_t cTimer::startTime [mutable, private] |
Definition at line 30 of file include/vdr/timers.h.
Referenced by cTimer(), Matches(), operator=(), Skip(), and StartTime().
int cTimer::stop [private] |
Definition at line 39 of file include/vdr/timers.h.
Referenced by cMenuEditTimer::cMenuEditTimer(), cTimer(), Matches(), operator=(), Parse(), SetStop(), Stop(), ToDescr(), and ToText().
time_t cTimer::stopTime [mutable, private] |
Definition at line 30 of file include/vdr/timers.h.
Referenced by cTimer(), Matches(), operator=(), and StopTime().
int cTimer::weekdays [private] |
bitmask, lowest bits: SSFTWTM (the 'M' is the LSB)
Definition at line 37 of file include/vdr/timers.h.
Referenced by cMenuEditTimer::cMenuEditTimer(), cTimer(), DayMatches(), FirstDay(), IsSingleEvent(), operator=(), Parse(), PrintFirstDay(), cMenuEditTimer::SetHelpKeys(), SetWeekDays(), ToText(), and WeekDays().