vdr 2.7.7
|
#include <timers.h>
Public Member Functions | |
cTimer (bool Instant=false, bool Pause=false, const cChannel *Channel=NULL) | |
cTimer (const cEvent *Event, const char *FileName=NULL, const cTimer *PatternTimer=NULL) | |
cTimer (const cTimer &Timer) | |
virtual | ~cTimer () override |
cTimer & | operator= (const cTimer &Timer) |
void | CalcMargins (int &MarginStart, int &MarginStop, const cEvent *Event) |
virtual int | Compare (const cListObject &ListObject) const override |
int | Id (void) 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 * | Pattern (void) const |
const char * | File (void) const |
time_t | FirstDay (void) const |
const char * | Aux (void) const |
const char * | Remote (void) const |
bool | Local (void) const |
time_t | Deferred (void) const |
cString | PatternAndFile (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 | SetPattern (const char *Pattern) |
void | SetFile (const char *File) |
bool | IsPatternTimer (void) const |
void | CalcStartStopTime (time_t &startTime, time_t &stopTime, time_t t=0) const |
time_t | VpsTime (time_t t=0) const |
bool | Matches (void) const |
bool | Matches (time_t t) const |
bool | Matches (time_t t, bool Directly) const |
bool | Matches (time_t t, bool Directly, int Margin) const |
bool | Matches (time_t t, int Margin) const |
eTimerMatch | Matches (const cEvent *Event, int *Overlap=NULL) const |
bool | Expired (void) const |
time_t | StartTime (void) const |
time_t | StopTime (void) const |
time_t | StartTimeEvent (void) const |
time_t | StopTimeEvent (void) const |
void | SetId (int Id) |
cTimer * | SpawnPatternTimer (const cEvent *Event, cTimers *Timers) |
bool | SpawnPatternTimers (const cSchedules *Schedules, cTimers *Timers) |
bool | AdjustSpawnedTimer (void) |
void | TriggerRespawn (void) |
bool | SetEventFromSchedule (const cSchedules *Schedules) |
bool | 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 | SetRemote (const char *Remote) |
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 |
Public Member Functions inherited from cListObject | |
cListObject (void) | |
virtual | ~cListObject () |
void | Append (cListObject *Object) |
void | Insert (cListObject *Object) |
void | Unlink (void) |
int | Index (void) const |
cListObject * | Prev (void) const |
cListObject * | Next (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) |
Private Attributes | |
cMutex | mutex |
int | id |
time_t | startTime |
time_t | stopTime |
int | scheduleStateSet |
int | scheduleStateSpawn |
int | scheduleStateAdjust |
time_t | deferred |
time_t | vpsNotRunning |
bool | vpsActive |
bool | pending |
bool | inVpsMargin |
uint | flags |
const cChannel * | channel |
time_t | day |
int | weekdays |
int | start |
int | stop |
int | priority |
int | lifetime |
char | pattern [NAME_MAX *2+1] |
char | file [NAME_MAX *2+1] |
char * | aux |
char * | remote |
const cEvent * | event |
Friends | |
class | cMenuEditTimer |
cTimer::cTimer | ( | bool | Instant = false, |
bool | Pause = false, | ||
const cChannel * | Channel = NULL ) |
Definition at line 28 of file timers.c.
References aux, CalcMargins(), Channel(), channel, cDevice::CurrentChannel(), day, deferred, DEFINSTRECTIME, Event(), file, flags, inVpsMargin, lifetime, LOCK_CHANNELS_READ, LOCK_SCHEDULES_READ, pattern, pending, priority, remote, scheduleStateAdjust, scheduleStateSet, scheduleStateSpawn, SetEvent(), SetFlags(), SetTime(), Setup, start, startTime, stop, stopTime, tfActive, tfInstant, tfNone, tfVps, vpsActive, vpsNotRunning, and weekdays.
Referenced by Compare(), cTimer(), cTimer(), operator=(), SpawnPatternTimer(), and SpawnPatternTimers().
cTimer::cTimer | ( | const cEvent * | Event, |
const char * | FileName = NULL, | ||
const cTimer * | PatternTimer = NULL ) |
Definition at line 180 of file timers.c.
References aux, CalcMargins(), channel, cTimer(), day, deferred, Event(), file, flags, HasFlags(), inVpsMargin, isempty(), Lifetime(), lifetime, LOCK_CHANNELS_READ, pattern, pending, Priority(), priority, remote, scheduleStateAdjust, scheduleStateSet, scheduleStateSpawn, SetEvent(), SetFlags(), SetTime(), Setup, start, startTime, stop, stopTime, tfActive, tfSpawned, tfVps, Utf8Strn0Cpy(), vpsActive, vpsNotRunning, and weekdays.
cTimer::cTimer | ( | const cTimer & | Timer | ) |
|
overridevirtual |
bool cTimer::AdjustSpawnedTimer | ( | void | ) |
Definition at line 932 of file timers.c.
References CalcMargins(), cEvent::EndTime(), Event(), isyslog, Matches(), scheduleStateAdjust, SetDay(), SetStart(), SetStop(), SetTime(), cEvent::StartTime(), StartTime(), StopTime(), TimeString(), and ToDescr().
|
inline |
Definition at line 80 of file timers.h.
References aux.
Referenced by cRecording::cRecording(), and SetAux().
void cTimer::CalcMargins | ( | int & | MarginStart, |
int & | MarginStop, | ||
const cEvent * | Event ) |
void cTimer::CalcStartStopTime | ( | time_t & | startTime, |
time_t & | stopTime, | ||
time_t | t = 0 ) const |
Calculates the raw start and stop time of this timer, as given by the user in the timer definition.
If t is given, and this is a repeating timer, the start and stop times on that day are returned (default is "today"). t can be any time_t value on the given day.
Definition at line 573 of file timers.c.
References day, DayMatches(), IncDay(), IsSingleEvent(), max(), SECSINDAY, SetTime(), start, startTime, stop, stopTime, and TimeToInt().
Referenced by Matches(), Matches(), Matches(), Matches(), SetEventFromSchedule(), and VpsTime().
|
inline |
Definition at line 70 of file timers.h.
References channel.
Referenced by cRecording::cRecording(), cTimer(), cShutdownHandler::DoShutdown(), cSkinLCARSDisplayMenu::DrawTimer(), Expired(), cTimers::GetTimer(), SetEventFromSchedule(), SpawnPatternTimers(), cRecordControls::Start(), ToDescr(), ToText(), and TriggerRespawn().
void cTimer::ClrFlags | ( | uint | Flags | ) |
Definition at line 1125 of file timers.c.
References Flags(), and flags.
Referenced by cSVDRPServer::CmdMODT(), cSVDRPServer::CmdNEWT(), cSVDRPServer::CmdUPDT(), HandleRemoteTimerModifications(), OnOff(), and SetRecording().
|
overridevirtual |
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 297 of file timers.c.
References cListObject::cListObject(), cTimer(), IsPatternTimer(), Pattern(), priority, and StartTime().
|
inline |
Definition at line 71 of file timers.h.
References day.
Referenced by cTimers::GetTimer(), ParseDay(), PrintDay(), and SetDay().
bool cTimer::DayMatches | ( | time_t | t | ) | const |
Definition at line 531 of file timers.c.
References day, GetWDay(), IsSingleEvent(), SetTime(), and weekdays.
Referenced by CalcStartStopTime().
|
inline |
|
inline |
Definition at line 87 of file timers.h.
References event.
Referenced by AdjustSpawnedTimer(), CalcMargins(), cTimer(), cTimer(), cSkinLCARSDisplayMenu::DrawTimer(), cMenuTimers::Info(), Matches(), SetEvent(), SetEventFromSchedule(), and SpawnPatternTimer().
bool cTimer::Expired | ( | void | ) | const |
Definition at line 787 of file timers.c.
References Channel(), dsyslog, event, cSchedule::Events(), EXPIRELATENCY, cList< T >::First(), HasFlags(), IsSingleEvent(), LOCK_SCHEDULES_READ, cList< T >::Next(), cListObject::Next(), Recording(), SI::RunningStatusNotRunning, StopTimeEvent(), tfVps, cEvent::ToDescr(), ToDescr(), and VpsTime().
Referenced by cTimers::DeleteExpired().
|
inline |
Definition at line 78 of file timers.h.
References file.
Referenced by cRecording::cRecording(), cShutdownHandler::DoShutdown(), Matches(), SetFile(), and SpawnPatternTimer().
|
inline |
Definition at line 79 of file timers.h.
Referenced by cMenuTimers::OnOff().
|
inline |
Definition at line 69 of file timers.h.
References flags.
Referenced by ClrFlags(), cSkinLCARSDisplayMenu::DrawTimer(), HasFlags(), InvFlags(), and SetFlags().
|
static |
Definition at line 518 of file timers.c.
Referenced by ParseDay().
|
static |
Definition at line 524 of file timers.c.
Referenced by DayMatches(), and cMenuEditDateItem::ToggleRepeating().
bool cTimer::HasFlags | ( | uint | Flags | ) | const |
Definition at line 1135 of file timers.c.
References Flags(), and flags.
Referenced by CalcMargins(), cTimer(), Expired(), GetWakeupTime(), Matches(), Matches(), cMenuTimers::OnOff(), OnOff(), Recording(), SetEventFromSchedule(), cSkinDisplayMenu::SetItemEvent(), SpawnPatternTimers(), StartTimeEvent(), StopTimeEvent(), ToDescr(), and TriggerRespawn().
|
inline |
Definition at line 65 of file timers.h.
References id.
Referenced by cSVDRPServer::CmdLSTT(), cSVDRPServer::CmdNEWT(), cSVDRPServer::CmdUPDT(), HandleRemoteTimerModifications(), cMenuTimers::OnOff(), RecordingInUseMessage(), RemoteTimerError(), RemoteTimerError(), cMenuTimers::Set(), SetId(), and ToDescr().
|
static |
Definition at line 536 of file timers.c.
Referenced by CalcStartStopTime(), ParseDay(), and Skip().
void cTimer::InvFlags | ( | uint | Flags | ) |
|
inline |
|
inline |
Definition at line 98 of file timers.h.
References pattern.
Referenced by cSVDRPServer::CmdMODT(), Compare(), cTimers::GetMatch(), Matches(), Matches(), OnOff(), PatternAndFile(), SetEventFromSchedule(), and TriggerRespawn().
bool cTimer::IsSingleEvent | ( | void | ) | const |
Definition at line 513 of file timers.c.
References weekdays.
Referenced by CalcStartStopTime(), cRecording::cRecording(), DayMatches(), Expired(), Matches(), and OnOff().
|
inline |
Definition at line 76 of file timers.h.
References lifetime.
Referenced by cRecording::cRecording(), cTimer(), and SetLifetime().
|
inline |
Definition at line 82 of file timers.h.
References remote.
Referenced by HandleRemoteTimerModifications(), and TriggerRespawn().
eTimerMatch cTimer::Matches | ( | const cEvent * | Event, |
int * | Overlap = NULL ) const |
Definition at line 731 of file timers.c.
References CalcStartStopTime(), channel, DoneRecordingsPattern, Event(), File(), FOLDERDELIMCHAR, FULLMATCH, HasFlags(), IsPatternTimer(), MakePatternFileName(), MatchPattern(), max(), min(), Pattern(), SI::RunningStatusNotRunning, startswith(), StartTime(), startTime, stopTime, strgetlast(), tfVps, TIMERPATTERN_AVOID, tmFull, tmNone, and tmPartial.
|
inline |
bool cTimer::Matches | ( | time_t | t, |
bool | Directly ) const |
Definition at line 619 of file timers.c.
References cBackTrace::BackTrace(), CalcStartStopTime(), esyslog, Matches(), mutex, startTime, and stopTime.
bool cTimer::Matches | ( | time_t | t, |
bool | Directly, | ||
int | Margin ) const |
Definition at line 635 of file timers.c.
References cBackTrace::BackTrace(), CalcStartStopTime(), esyslog, Matches(), mutex, startTime, and stopTime.
bool cTimer::Matches | ( | time_t | t, |
int | Margin ) const |
Definition at line 652 of file timers.c.
References cBackTrace::BackTrace(), CalcStartStopTime(), day, deferred, dsyslog, EITPRESENTFOLLOWINGGRACE, EITPRESENTFOLLOWINGRATE, esyslog, event, HasFlags(), IsPatternTimer(), IsSingleEvent(), mutex, cSchedule::PresentSeenWithin(), Recording(), Remote(), SECSINDAY, Setup, startTime, stopTime, tfActive, tfSpawned, tfVps, ToDescr(), vpsActive, VPSGRACE, and vpsNotRunning.
|
inline |
Definition at line 109 of file timers.h.
References Matches().
Referenced by AdjustSpawnedTimer(), Matches(), Matches(), Matches(), OnOff(), cMenuSchedule::Record(), cMenuWhatsOn::Record(), SetEventFromSchedule(), SpawnPatternTimers(), cRecordControls::Start(), StartTime(), and StopTime().
void cTimer::OnOff | ( | void | ) |
Definition at line 1148 of file timers.c.
References ClrFlags(), day, HasFlags(), InvFlags(), IsPatternTimer(), IsSingleEvent(), Matches(), SetEvent(), SetFlags(), Skip(), tfActive, and TriggerRespawn().
Referenced by cMenuTimers::OnOff().
Definition at line 248 of file timers.c.
References aux, channel, cTimer(), day, deferred, event, file, flags, id, cEvent::IncNumTimers(), inVpsMargin, lifetime, pattern, pending, priority, remote, scheduleStateAdjust, scheduleStateSet, scheduleStateSpawn, start, startTime, stop, stopTime, vpsActive, vpsNotRunning, and weekdays.
bool cTimer::Parse | ( | const char * | s | ) |
Definition at line 446 of file timers.c.
References aux, channel, day, esyslog, file, flags, tChannelID::FromString(), isnumber(), lifetime, LOCK_CHANNELS_READ, MALLOC, ParseDay(), pattern, priority, skipspace(), start, stop, strn0cpy(), strreplace(), Utf8Strn0Cpy(), and weekdays.
Referenced by cSVDRPServer::CmdMODT(), cSVDRPServer::CmdNEWT(), cSVDRPServer::CmdUPDT(), and cTimers::StoreRemoteTimers().
|
static |
Definition at line 343 of file timers.c.
References Day(), day, GetMDay(), IncDay(), SetTime(), skipspace(), and WeekDays().
Referenced by Parse(), and ParseWeekDays().
|
inline |
Definition at line 77 of file timers.h.
References pattern.
Referenced by Compare(), Matches(), SetPattern(), and SpawnPatternTimer().
cString cTimer::PatternAndFile | ( | void | ) | const |
Definition at line 316 of file timers.c.
References file, IsPatternTimer(), pattern, and cString::sprintf().
|
inline |
Definition at line 67 of file timers.h.
References pending.
Referenced by cSkinLCARSDisplayMenu::DrawTimer(), SetPending(), and cRecordControls::Start().
|
static |
Definition at line 402 of file timers.c.
References Day(), DAYBUFFERSIZE, tr, trNOOP, Utf8CharLen(), and WeekDays().
Referenced by PrintFirstDay(), cMenuEditDateItem::Set(), and ToText().
cString cTimer::PrintFirstDay | ( | void | ) | const |
Definition at line 436 of file timers.c.
References day, PrintDay(), and weekdays.
Referenced by cMenuTimers::OnOff().
|
inline |
Definition at line 75 of file timers.h.
References priority.
Referenced by cRecording::cRecording(), cTimer(), cTimers::GetMatch(), SetPriority(), and cRecordControls::Start().
|
inline |
Definition at line 66 of file timers.h.
References HasFlags(), and tfRecording.
Referenced by cMenuTimers::Delete(), cSkinLCARSDisplayMenu::DrawTimer(), Expired(), Matches(), and SetRecording().
|
inline |
Definition at line 81 of file timers.h.
References remote.
Referenced by cTimers::Add(), cSVDRPServer::CmdLSTT(), cMenuTimers::Delete(), cTimers::DeleteExpired(), cSkinLCARSDisplayMenu::DrawTimer(), cTimers::GetMatch(), HandleRemoteTimerModifications(), Matches(), cMenuTimers::OnOff(), cMenuSchedule::Record(), cMenuWhatsOn::Record(), RemoteTimerError(), RemoteTimerError(), Save(), cMenuTimers::Set(), SetRemote(), and cTimers::StoreRemoteTimers().
bool cTimer::Save | ( | FILE * | f | ) |
void cTimer::SetAux | ( | const char * | Aux | ) |
void cTimer::SetDay | ( | time_t | Day | ) |
Definition at line 1072 of file timers.c.
Referenced by AdjustSpawnedTimer().
void cTimer::SetDeferred | ( | int | Seconds | ) |
bool cTimer::SetEvent | ( | const cEvent * | Event | ) |
Definition at line 1031 of file timers.c.
References Event(), event, isyslog, scheduleStateAdjust, scheduleStateSet, scheduleStateSpawn, and ToDescr().
Referenced by cTimer(), cTimer(), cTimers::DeleteExpired(), OnOff(), SetEventFromSchedule(), and Skip().
bool cTimer::SetEventFromSchedule | ( | const cSchedules * | Schedules | ) |
Definition at line 981 of file timers.c.
References CalcStartStopTime(), Channel(), EPGLIMITAFTER, EPGLIMITBEFORE, Event(), cSchedule::Events(), cList< T >::First(), FULLMATCH, cSchedules::GetSchedule(), HasFlags(), IsPatternTimer(), Matches(), cSchedule::Modified(), cList< T >::Next(), scheduleStateSet, SetEvent(), startTime, stopTime, tfVps, tmFull, and cEvent::Vps().
Referenced by cMenuTimers::OnOff().
void cTimer::SetFile | ( | const char * | File | ) |
Definition at line 564 of file timers.c.
References File(), file, isempty(), and Utf8Strn0Cpy().
Referenced by cRecording::cRecording().
void cTimer::SetFlags | ( | uint | Flags | ) |
Definition at line 1120 of file timers.c.
References Flags(), and flags.
Referenced by cSVDRPServer::CmdMODT(), cSVDRPServer::CmdUPDT(), cTimer(), cTimer(), OnOff(), SetRecording(), and SpawnPatternTimer().
void cTimer::SetId | ( | int | Id | ) |
Definition at line 869 of file timers.c.
References Id().
Referenced by cTimers::Add(), HandleRemoteTimerModifications(), and cTimers::StoreRemoteTimers().
void cTimer::SetInVpsMargin | ( | bool | InVpsMargin | ) |
Definition at line 1065 of file timers.c.
References InVpsMargin(), inVpsMargin, isyslog, and ToDescr().
void cTimer::SetLifetime | ( | int | Lifetime | ) |
Definition at line 1097 of file timers.c.
References Lifetime(), and lifetime.
void cTimer::SetPattern | ( | const char * | Pattern | ) |
Definition at line 559 of file timers.c.
References Pattern(), pattern, and Utf8Strn0Cpy().
void cTimer::SetPending | ( | bool | Pending | ) |
Definition at line 1060 of file timers.c.
References Pending(), and pending.
Referenced by cRecordControls::Start().
void cTimer::SetPriority | ( | int | Priority | ) |
Definition at line 1092 of file timers.c.
References Priority(), and priority.
void cTimer::SetRecording | ( | bool | Recording | ) |
Definition at line 1051 of file timers.c.
References ClrFlags(), isyslog, Recording(), SetFlags(), tfRecording, and ToDescr().
void cTimer::SetRemote | ( | const char * | Remote | ) |
Definition at line 1108 of file timers.c.
References Remote(), and remote.
Referenced by cMenuTimers::New(), cMenuSchedule::Record(), cMenuWhatsOn::Record(), and cTimers::StoreRemoteTimers().
void cTimer::SetStart | ( | int | Start | ) |
Definition at line 1082 of file timers.c.
References Start(), and start.
Referenced by AdjustSpawnedTimer().
void cTimer::SetStop | ( | int | Stop | ) |
Definition at line 1087 of file timers.c.
Referenced by AdjustSpawnedTimer().
|
static |
Definition at line 548 of file timers.c.
Referenced by AdjustSpawnedTimer(), CalcStartStopTime(), cTimer(), cTimer(), DayMatches(), ParseDay(), cMenuEditDateItem::ProcessKey(), Skip(), and cMenuEditDateItem::ToggleRepeating().
void cTimer::SetWeekDays | ( | int | WeekDays | ) |
Definition at line 1077 of file timers.c.
References WeekDays(), and weekdays.
void cTimer::Skip | ( | void | ) |
Definition at line 1140 of file timers.c.
References day, IncDay(), mutex, SetEvent(), SetTime(), startTime, and VpsTime().
Referenced by cMenuTimers::Delete(), OnOff(), and TimerStillRecording().
Definition at line 874 of file timers.c.
References cTimers::Add(), cTimer(), Event(), File(), HandleRemoteTimerModifications(), isyslog, MakePatternFileName(), Pattern(), SetFlags(), startswith(), tfAvoid, TIMERPATTERN_AVOID, and ToDescr().
Referenced by SpawnPatternTimers().
bool cTimer::SpawnPatternTimers | ( | const cSchedules * | Schedules, |
cTimers * | Timers ) |
Definition at line 886 of file timers.c.
References Channel(), cTimer(), cSchedule::Events(), EXPIRELATENCY, cList< T >::First(), cSchedules::GetSchedule(), cTimers::GetTimerForEvent(), HasFlags(), Matches(), cSchedule::Modified(), cList< T >::Next(), scheduleStateSpawn, Setup, SpawnPatternTimer(), StopTimeEvent(), tfSpawned, tfVps, and tmNone.
|
inline |
Definition at line 73 of file timers.h.
References start.
Referenced by cTimers::GetTimer(), and SetStart().
time_t cTimer::StartTime | ( | void | ) | const |
The start time of this timer, which is the time as given by the user (for normal timers) or the start time of the event that is assigned to this timer (for VPS timers).
Definition at line 828 of file timers.c.
References Matches(), mutex, and startTime.
Referenced by AdjustSpawnedTimer(), Compare(), cRecording::cRecording(), GetWakeupTime(), Matches(), and StartTimeEvent().
time_t cTimer::StartTimeEvent | ( | void | ) | const |
the start/stop times as given by the event (for VPS timers), by event plus margins (for spawned non-VPS timers),
Definition at line 844 of file timers.c.
References event, HasFlags(), Setup, StartTime(), tfSpawned, and tfVps.
Referenced by cSkinLCARSDisplayMenu::DrawTimer().
|
inline |
Definition at line 74 of file timers.h.
References stop.
Referenced by cTimers::GetTimer(), and SetStop().
time_t cTimer::StopTime | ( | void | ) | const |
The stop time of this timer, which is the time as given by the user (for normal timers) or the end time of the event that is assigned to this timer (for VPS timers).
Definition at line 836 of file timers.c.
References Matches(), mutex, and stopTime.
Referenced by AdjustSpawnedTimer(), cTimers::GetNextActiveTimer(), and StopTimeEvent().
time_t cTimer::StopTimeEvent | ( | void | ) | const |
or by the user (for normal timers)
Definition at line 855 of file timers.c.
References event, HasFlags(), Setup, StopTime(), tfSpawned, and tfVps.
Referenced by cSkinLCARSDisplayMenu::DrawTimer(), Expired(), and SpawnPatternTimers().
|
static |
Definition at line 338 of file timers.c.
Referenced by CalcStartStopTime().
cString cTimer::ToDescr | ( | void | ) | const |
Definition at line 333 of file timers.c.
References Channel(), HasFlags(), Id(), PatternAndFile(), remote, cString::sprintf(), start, stop, and tfVps.
Referenced by AdjustSpawnedTimer(), cSVDRPServer::CmdNEWT(), cSVDRPServer::CmdUPDT(), cTimers::DeleteExpired(), Expired(), HandleRemoteTimerModifications(), Matches(), cMenuTimers::OnOff(), SetDeferred(), SetEvent(), SetInVpsMargin(), SetRecording(), SpawnPatternTimer(), cRecordControls::Start(), cRecordControls::Stop(), and TriggerRespawn().
cString cTimer::ToText | ( | bool | UseChannelID = false | ) | const |
Definition at line 323 of file timers.c.
References aux, Channel(), day, file, flags, itoa(), lifetime, pattern, PatternAndFile(), PrintDay(), priority, cString::sprintf(), start, stop, strreplace(), and weekdays.
Referenced by cSVDRPServer::CmdNEWT(), cSVDRPServer::CmdUPDT(), HandleRemoteTimerModifications(), cMenuTimers::OnOff(), Save(), and cStatusTest::TimerChange().
void cTimer::TriggerRespawn | ( | void | ) |
Definition at line 967 of file timers.c.
References Channel(), dsyslog, HasFlags(), IsPatternTimer(), Local(), LOCK_CHANNELS_READ, LOCK_SCHEDULES_WRITE, tfSpawned, and ToDescr().
Referenced by cTimers::DeleteExpired(), and OnOff().
time_t cTimer::VpsTime | ( | time_t | t = 0 | ) | const |
Returns the VPS time of this timer.
This is a shortcut for calling CalcStartStopTime() and using the result given in the startTime parameter. The parameter t is handed to CalcStartStopTime().
Definition at line 611 of file timers.c.
References CalcStartStopTime(), startTime, and stopTime.
|
inline |
Definition at line 72 of file timers.h.
References weekdays.
Referenced by cTimers::GetTimer(), ParseDay(), PrintDay(), and SetWeekDays().
|
friend |
|
private |
|
private |
|
mutableprivate |
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 46 of file timers.h.
Referenced by CalcStartStopTime(), cTimer(), cTimer(), Day(), DayMatches(), FirstDay(), Matches(), OnOff(), operator=(), Parse(), ParseDay(), PrintFirstDay(), SetDay(), Skip(), and ToText().
|
mutableprivate |
Matches(time_t, ...) will return false if the current time is before this value.
Definition at line 40 of file timers.h.
Referenced by cTimer(), cTimer(), Deferred(), Matches(), operator=(), and SetDeferred().
|
private |
Definition at line 56 of file timers.h.
Referenced by Event(), Expired(), Matches(), operator=(), SetEvent(), StartTimeEvent(), StopTimeEvent(), and ~cTimer().
|
mutableprivate |
Definition at line 53 of file timers.h.
Referenced by cTimer(), cTimer(), File(), operator=(), Parse(), PatternAndFile(), SetFile(), and ToText().
|
private |
Definition at line 44 of file timers.h.
Referenced by ClrFlags(), cTimer(), cTimer(), cTimer(), Flags(), HasFlags(), InvFlags(), operator=(), Parse(), SetFlags(), and ToText().
|
private |
Definition at line 35 of file timers.h.
Referenced by Id(), and operator=().
|
private |
Definition at line 43 of file timers.h.
Referenced by cTimer(), cTimer(), InVpsMargin(), operator=(), and SetInVpsMargin().
|
private |
Definition at line 51 of file timers.h.
Referenced by cTimer(), cTimer(), Lifetime(), operator=(), Parse(), SetLifetime(), and ToText().
|
mutableprivate |
Definition at line 34 of file timers.h.
Referenced by Matches(), Matches(), Matches(), Skip(), StartTime(), and StopTime().
|
mutableprivate |
Definition at line 52 of file timers.h.
Referenced by cTimer(), cTimer(), IsPatternTimer(), operator=(), Parse(), Pattern(), PatternAndFile(), SetPattern(), and ToText().
|
private |
Definition at line 43 of file timers.h.
Referenced by cTimer(), cTimer(), operator=(), Pending(), and SetPending().
|
private |
Definition at line 50 of file timers.h.
Referenced by Compare(), cTimer(), cTimer(), operator=(), Parse(), Priority(), SetPriority(), and ToText().
|
private |
|
private |
Definition at line 39 of file timers.h.
Referenced by AdjustSpawnedTimer(), cTimer(), cTimer(), operator=(), and SetEvent().
|
private |
Definition at line 37 of file timers.h.
Referenced by cTimer(), cTimer(), operator=(), SetEvent(), and SetEventFromSchedule().
|
private |
Definition at line 38 of file timers.h.
Referenced by cTimer(), cTimer(), operator=(), SetEvent(), and SpawnPatternTimers().
|
private |
the start and stop time of this timer as given by the user,
Definition at line 48 of file timers.h.
Referenced by CalcStartStopTime(), cTimer(), cTimer(), operator=(), Parse(), SetStart(), Start(), ToDescr(), and ToText().
|
mutableprivate |
Definition at line 36 of file timers.h.
Referenced by CalcStartStopTime(), cTimer(), cTimer(), Matches(), Matches(), Matches(), Matches(), operator=(), SetEventFromSchedule(), Skip(), StartTime(), and VpsTime().
|
private |
|
private |
the time_t value calculated from 'day', 'start' and 'stop'
Definition at line 36 of file timers.h.
Referenced by CalcStartStopTime(), cTimer(), cTimer(), Matches(), Matches(), Matches(), Matches(), operator=(), SetEventFromSchedule(), StopTime(), and VpsTime().
|
mutableprivate |
|
mutableprivate |
|
private |
bitmask, lowest bits: SSFTWTM (the 'M' is the LSB)
Definition at line 47 of file timers.h.
Referenced by cTimer(), cTimer(), DayMatches(), FirstDay(), IsSingleEvent(), operator=(), Parse(), PrintFirstDay(), SetWeekDays(), ToText(), and WeekDays().