vdr 2.6.4
|
#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 () |
cTimer & | operator= (const cTimer &Timer) |
void | CalcMargins (int &MarginStart, int &MarginStop, const cEvent *Event) |
virtual int | Compare (const cListObject &ListObject) const |
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 |
bool | Matches (time_t t=0, bool Directly=false, int Margin=0) 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 |
![]() | |
cListObject (void) | |
virtual | ~cListObject () |
virtual int | Compare (const cListObject &ListObject) const |
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 | |
int | id |
time_t | startTime |
time_t | stopTime |
int | scheduleStateSet |
int | scheduleStateSpawn |
int | scheduleStateAdjust |
time_t | deferred |
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 26 of file timers.c.
References aux, CalcMargins(), channel, Channel(), cDevice::CurrentChannel(), day, cSetup::DefaultLifetime, cSetup::DefaultPriority, deferred, DEFINSTRECTIME, cEvent::EndTime(), Event(), file, flags, cSetup::InstantRecordTime, inVpsMargin, lifetime, LOCK_CHANNELS_READ, LOCK_SCHEDULES_READ, cSetup::MarkInstantRecord, cChannel::Name(), cSetup::NameInstantRecord, pattern, cSetup::PauseLifetime, cSetup::PausePriority, pending, priority, remote, scheduleStateAdjust, scheduleStateSet, scheduleStateSpawn, SetEvent(), SetFlags(), SetTime(), Setup, start, cEvent::StartTime(), startTime, stop, stopTime, tfActive, tfInstant, tfNone, tfVps, cSetup::UseVps, cEvent::Vps(), and weekdays.
cTimer::cTimer | ( | const cEvent * | Event, |
const char * | FileName = NULL , |
||
const cTimer * | PatternTimer = NULL |
||
) |
Definition at line 176 of file timers.c.
References aux, CalcMargins(), channel, cEvent::ChannelID(), day, cSetup::DefaultLifetime, cSetup::DefaultPriority, deferred, cEvent::Duration(), Event(), file, flags, HasFlags(), inVpsMargin, isempty(), lifetime, Lifetime(), LOCK_CHANNELS_READ, pattern, pending, priority, Priority(), remote, scheduleStateAdjust, scheduleStateSet, scheduleStateSpawn, SetEvent(), SetFlags(), SetTime(), Setup, start, cEvent::StartTime(), startTime, stop, stopTime, tfActive, tfVps, cEvent::Title(), cSetup::UseVps, Utf8Strn0Cpy(), cEvent::Vps(), and weekdays.
cTimer::cTimer | ( | const cTimer & | Timer | ) |
|
virtual |
bool cTimer::AdjustSpawnedTimer | ( | void | ) |
Definition at line 808 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 77 of file timers.h.
References aux.
Referenced by cRecording::cRecording(), and SetAux().
void cTimer::CalcMargins | ( | int & | MarginStart, |
int & | MarginStop, | ||
const cEvent * | Event | ||
) |
Definition at line 273 of file timers.c.
References Event(), cSetup::MarginStart, cSetup::MarginStop, max(), min(), cListObject::Next(), cListObject::Prev(), and Setup.
Referenced by AdjustSpawnedTimer(), cTimer(), and cTimer().
|
inline |
Definition at line 67 of file timers.h.
References channel.
Referenced by cMenuEditTimer::cMenuEditTimer(), cRecordControl::cRecordControl(), cRecording::cRecording(), cTimer(), cShutdownHandler::DoShutdown(), cSkinLCARSDisplayMenu::DrawTimer(), cRecordControl::GetEvent(), cTimers::GetTimer(), cMenuEditTimer::ProcessKey(), cMenuTimerItem::Set(), SetEventFromSchedule(), SpawnPatternTimers(), cRecordControls::Start(), ToDescr(), ToText(), and TriggerRespawn().
void cTimer::ClrFlags | ( | uint | Flags | ) |
Definition at line 1000 of file timers.c.
References flags.
Referenced by cSVDRPServer::CmdMODT(), cSVDRPServer::CmdNEWT(), cSVDRPServer::CmdUPDT(), HandleRemoteTimerModifications(), OnOff(), and SetRecording().
|
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 285 of file timers.c.
References IsPatternTimer(), Pattern(), priority, and StartTime().
Referenced by cMenuTimerItem::Compare().
|
inline |
Definition at line 68 of file timers.h.
References day.
Referenced by cTimers::GetTimer(), ParseDay(), PrintDay(), cMenuTimerItem::Set(), and SetDay().
bool cTimer::DayMatches | ( | time_t | t | ) | const |
|
inline |
|
inline |
Definition at line 84 of file timers.h.
References event.
Referenced by AdjustSpawnedTimer(), CalcMargins(), cRecordControl::cRecordControl(), cTimer(), cTimer(), cSkinLCARSDisplayMenu::DrawTimer(), cMenuTimers::Info(), Matches(), cMenuTimerItem::Set(), SetEvent(), SetEventFromSchedule(), and SpawnPatternTimer().
bool cTimer::Expired | ( | void | ) | const |
Definition at line 694 of file timers.c.
References EXPIRELATENCY, HasFlags(), IsSingleEvent(), Recording(), StopTimeEvent(), and tfVps.
Referenced by cTimers::DeleteExpired().
|
inline |
Definition at line 75 of file timers.h.
References file.
Referenced by cRecording::cRecording(), cShutdownHandler::DoShutdown(), Matches(), cMenuTimerItem::Set(), SetFile(), SpawnPatternTimer(), and cRecordControl::Stop().
|
inline |
Definition at line 76 of file timers.h.
Referenced by cMenuTimers::OnOff(), and cMenuTimerItem::Set().
|
inline |
Definition at line 66 of file timers.h.
References flags.
Referenced by cSkinLCARSDisplayMenu::DrawTimer(), HasFlags(), InvFlags(), and SetFlags().
|
static |
Definition at line 506 of file timers.c.
Referenced by ParseDay(), and cMenuTimerItem::Set().
|
static |
Definition at line 512 of file timers.c.
Referenced by DayMatches(), and cMenuEditDateItem::ToggleRepeating().
bool cTimer::HasFlags | ( | uint | Flags | ) | const |
Definition at line 1010 of file timers.c.
References flags, and Flags().
Referenced by cTimer(), Expired(), cRecordControl::GetEvent(), Matches(), Matches(), cMenuTimers::OnOff(), OnOff(), Recording(), cMenuTimerItem::Set(), SetEventFromSchedule(), cMenuEditTimer::SetPatternItem(), SpawnPatternTimers(), StartTimeEvent(), cRecordControl::Stop(), StopTimeEvent(), ToDescr(), TriggerRespawn(), and cMenuScheduleItem::Update().
|
inline |
Definition at line 62 of file timers.h.
References id.
Referenced by cSVDRPServer::CmdNEWT(), cSVDRPServer::CmdUPDT(), cRecordControl::cRecordControl(), HandleRemoteTimerModifications(), cMenuTimers::OnOff(), cMenuEditTimer::ProcessKey(), RecordingInUseMessage(), RemoteTimerError(), RemoteTimerError(), cMenuTimers::Set(), SetId(), and ToDescr().
|
static |
Definition at line 524 of file timers.c.
Referenced by Matches(), ParseDay(), and Skip().
void cTimer::InvFlags | ( | uint | Flags | ) |
|
inline |
|
inline |
Definition at line 95 of file timers.h.
References pattern.
Referenced by cSVDRPServer::CmdMODT(), Compare(), cTimers::GetMatch(), Matches(), Matches(), OnOff(), PatternAndFile(), cMenuEditTimer::ProcessKey(), cMenuTimerItem::Set(), SetEventFromSchedule(), and TriggerRespawn().
bool cTimer::IsSingleEvent | ( | void | ) | const |
Definition at line 501 of file timers.c.
References weekdays.
Referenced by cRecording::cRecording(), DayMatches(), Expired(), Matches(), OnOff(), and cMenuEditTimer::SetFirstDayItem().
|
inline |
Definition at line 73 of file timers.h.
References lifetime.
Referenced by cRecording::cRecording(), cTimer(), and SetLifetime().
|
inline |
Definition at line 79 of file timers.h.
References remote.
Referenced by HandleRemoteTimerModifications(), cMenuEditTimer::ProcessKey(), and TriggerRespawn().
eTimerMatch cTimer::Matches | ( | const cEvent * | Event, |
int * | Overlap = NULL |
||
) | const |
Definition at line 638 of file timers.c.
References channel, cEvent::ChannelID(), cDoneRecordings::Contains(), DoneRecordingsPattern, cEvent::Duration(), cEvent::EndTime(), Event(), File(), FOLDERDELIMCHAR, FULLMATCH, cChannel::GetChannelID(), HasFlags(), IsPatternTimer(), cEvent::IsRunning(), MakePatternFileName(), Matches(), MatchPattern(), max(), min(), Pattern(), cEvent::RunningStatus(), SI::RunningStatusNotRunning, cEvent::ShortText(), startswith(), cEvent::StartTime(), startTime, StartTime(), stopTime, strgetlast(), tfVps, TIMERPATTERN_AVOID, cEvent::Title(), tmFull, tmNone, tmPartial, and cEvent::Vps().
bool cTimer::Matches | ( | time_t | t = 0 , |
bool | Directly = false , |
||
int | Margin = 0 |
||
) | const |
Definition at line 560 of file timers.c.
References day, DayMatches(), deferred, EITPRESENTFOLLOWINGRATE, event, HasFlags(), IncDay(), IsPatternTimer(), IsSingleEvent(), cSetup::MarginStart, cSetup::MarginStop, max(), cSchedule::PresentSeenWithin(), cEvent::Schedule(), SECSINDAY, SetTime(), Setup, start, startTime, stop, stopTime, tfActive, tfSpawned, tfVps, TimeToInt(), and cEvent::Vps().
Referenced by AdjustSpawnedTimer(), cTimers::GetNextActiveTimer(), Matches(), OnOff(), cRecordControl::Process(), cMenuEditTimer::ProcessKey(), cMenuWhatsOn::Record(), cMenuSchedule::Record(), SetEventFromSchedule(), SpawnPatternTimers(), cRecordControls::Start(), StartTime(), cRecordControl::Stop(), and StopTime().
void cTimer::OnOff | ( | void | ) |
Definition at line 1022 of file timers.c.
References ClrFlags(), day, HasFlags(), InvFlags(), IsPatternTimer(), IsSingleEvent(), Matches(), SetEvent(), SetFlags(), Skip(), tfActive, and TriggerRespawn().
Referenced by cRecordControl::cRecordControl(), and cMenuTimers::OnOff().
Definition at line 240 of file timers.c.
References aux, channel, day, deferred, event, file, flags, id, cEvent::IncNumTimers(), inVpsMargin, lifetime, pattern, pending, priority, remote, scheduleStateAdjust, scheduleStateSet, scheduleStateSpawn, start, startTime, stop, stopTime, and weekdays.
bool cTimer::Parse | ( | const char * | s | ) |
Definition at line 434 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 331 of file timers.c.
References day, Day(), GetMDay(), IncDay(), SetTime(), skipspace(), and WeekDays().
Referenced by Parse(), and ParseWeekDays().
|
inline |
Definition at line 74 of file timers.h.
References pattern.
Referenced by Compare(), Matches(), cMenuTimerItem::Set(), SetPattern(), and SpawnPatternTimer().
cString cTimer::PatternAndFile | ( | void | ) | const |
Definition at line 304 of file timers.c.
References file, IsPatternTimer(), pattern, and cString::sprintf().
|
inline |
Definition at line 64 of file timers.h.
References pending.
Referenced by cSkinLCARSDisplayMenu::DrawTimer(), SetPending(), and cRecordControls::Start().
|
static |
Definition at line 390 of file timers.c.
References Day(), DAYBUFFERSIZE, tr, trNOOP, Utf8CharLen(), and WeekDays().
Referenced by PrintFirstDay(), cMenuTimerItem::Set(), cMenuEditDateItem::Set(), and ToText().
cString cTimer::PrintFirstDay | ( | void | ) | const |
Definition at line 424 of file timers.c.
References day, PrintDay(), and weekdays.
Referenced by cMenuTimers::OnOff().
|
inline |
Definition at line 72 of file timers.h.
References priority.
Referenced by cRecordControl::cRecordControl(), cRecording::cRecording(), cTimer(), cTimers::GetMatch(), SetPriority(), and cRecordControls::Start().
|
inline |
Definition at line 63 of file timers.h.
References HasFlags(), and tfRecording.
Referenced by cMenuTimers::Delete(), cSkinLCARSDisplayMenu::DrawTimer(), Expired(), cMenuEditTimer::ProcessKey(), cMenuTimerItem::Set(), SetRecording(), and cMenuScheduleItem::Update().
|
inline |
Definition at line 78 of file timers.h.
References remote.
Referenced by cTimers::Add(), cSVDRPServer::CmdLSTT(), cMenuTimers::Delete(), cTimers::DeleteExpired(), cSkinLCARSDisplayMenu::DrawTimer(), cTimers::GetMatch(), HandleRemoteTimerModifications(), cMenuTimers::OnOff(), cMenuEditTimer::ProcessKey(), cMenuWhatsOn::Record(), cMenuSchedule::Record(), RemoteTimerError(), RemoteTimerError(), Save(), cMenuTimerItem::Set(), 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 947 of file timers.c.
Referenced by AdjustSpawnedTimer().
void cTimer::SetDeferred | ( | int | Seconds | ) |
bool cTimer::SetEvent | ( | const cEvent * | Event | ) |
Definition at line 906 of file timers.c.
References event, Event(), cEvent::IncNumTimers(), isyslog, cSchedule::Modified(), cEvent::Schedule(), scheduleStateAdjust, scheduleStateSet, scheduleStateSpawn, cEvent::ToDescr(), and ToDescr().
Referenced by cTimer(), cTimer(), cTimers::DeleteExpired(), OnOff(), cMenuEditTimer::ProcessKey(), SetEventFromSchedule(), and Skip().
bool cTimer::SetEventFromSchedule | ( | const cSchedules * | Schedules | ) |
Definition at line 857 of file timers.c.
References Channel(), cEvent::Duration(), 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(), and cMenuEditTimer::ProcessKey().
void cTimer::SetFile | ( | const char * | File | ) |
Definition at line 552 of file timers.c.
References File(), file, isempty(), and Utf8Strn0Cpy().
Referenced by cRecording::cRecording().
void cTimer::SetFlags | ( | uint | Flags | ) |
Definition at line 995 of file timers.c.
References flags, and Flags().
Referenced by cSVDRPServer::CmdMODT(), cSVDRPServer::CmdUPDT(), cMenuEditTimer::cMenuEditTimer(), cTimer(), cTimer(), OnOff(), SetRecording(), and SpawnPatternTimer().
void cTimer::SetId | ( | int | Id | ) |
Definition at line 744 of file timers.c.
References Id().
Referenced by cTimers::Add(), HandleRemoteTimerModifications(), and cTimers::StoreRemoteTimers().
void cTimer::SetInVpsMargin | ( | bool | InVpsMargin | ) |
Definition at line 940 of file timers.c.
References inVpsMargin, InVpsMargin(), isyslog, and ToDescr().
void cTimer::SetLifetime | ( | int | Lifetime | ) |
Definition at line 972 of file timers.c.
References lifetime, and Lifetime().
void cTimer::SetPattern | ( | const char * | Pattern | ) |
Definition at line 547 of file timers.c.
References Pattern(), pattern, and Utf8Strn0Cpy().
void cTimer::SetPending | ( | bool | Pending | ) |
Definition at line 935 of file timers.c.
References pending, and Pending().
Referenced by cRecordControl::cRecordControl(), cRecordControl::Process(), and cRecordControls::Start().
void cTimer::SetPriority | ( | int | Priority | ) |
Definition at line 967 of file timers.c.
References priority, and Priority().
void cTimer::SetRecording | ( | bool | Recording | ) |
Definition at line 926 of file timers.c.
References ClrFlags(), isyslog, Recording(), SetFlags(), tfRecording, and ToDescr().
Referenced by cRecordControl::cRecordControl(), and cRecordControl::Stop().
void cTimer::SetRemote | ( | const char * | Remote | ) |
Definition at line 983 of file timers.c.
References remote, and Remote().
Referenced by cMenuTimers::New(), cMenuEditTimer::ProcessKey(), cMenuWhatsOn::Record(), cMenuSchedule::Record(), and cTimers::StoreRemoteTimers().
void cTimer::SetStart | ( | int | Start | ) |
Definition at line 957 of file timers.c.
References start, and Start().
Referenced by AdjustSpawnedTimer().
void cTimer::SetStop | ( | int | Stop | ) |
Definition at line 962 of file timers.c.
Referenced by AdjustSpawnedTimer().
|
static |
Definition at line 536 of file timers.c.
Referenced by AdjustSpawnedTimer(), cTimer(), cTimer(), DayMatches(), Matches(), ParseDay(), cMenuEditDateItem::ProcessKey(), Skip(), and cMenuEditDateItem::ToggleRepeating().
void cTimer::SetWeekDays | ( | int | WeekDays | ) |
Definition at line 952 of file timers.c.
References weekdays, and WeekDays().
void cTimer::Skip | ( | void | ) |
Definition at line 1015 of file timers.c.
References day, IncDay(), SetEvent(), SetTime(), startTime, and StartTime().
Referenced by cMenuTimers::Delete(), OnOff(), and TimerStillRecording().
Definition at line 749 of file timers.c.
References cTimers::Add(), Event(), File(), HandleRemoteTimerModifications(), isyslog, MakePatternFileName(), Pattern(), SetFlags(), cEvent::ShortText(), startswith(), tfAvoid, tfSpawned, TIMERPATTERN_AVOID, cEvent::Title(), cEvent::ToDescr(), and ToDescr().
Referenced by SpawnPatternTimers().
bool cTimer::SpawnPatternTimers | ( | const cSchedules * | Schedules, |
cTimers * | Timers | ||
) |
Definition at line 762 of file timers.c.
References Channel(), cSchedule::Events(), EXPIRELATENCY, cList< T >::First(), cSchedules::GetSchedule(), cTimers::GetTimerForEvent(), HasFlags(), cSetup::MarginStart, Matches(), cSchedule::Modified(), cList< T >::Next(), scheduleStateSpawn, Setup, SpawnPatternTimer(), StopTimeEvent(), tfSpawned, tfVps, and tmNone.
|
inline |
Definition at line 70 of file timers.h.
References start.
Referenced by cTimers::GetTimer(), cMenuTimerItem::Set(), and SetStart().
time_t cTimer::StartTime | ( | void | ) | const |
the start time as given by the user
Definition at line 705 of file timers.c.
References Matches(), and startTime.
Referenced by AdjustSpawnedTimer(), Compare(), cShutdownHandler::ConfirmRestart(), cShutdownHandler::ConfirmShutdown(), cRecording::cRecording(), cShutdownHandler::DoShutdown(), cRecordControl::GetEvent(), Matches(), SetEventFromSchedule(), Skip(), 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 719 of file timers.c.
References event, HasFlags(), cSetup::MarginStart, Setup, StartTime(), tfSpawned, tfVps, and cEvent::Vps().
Referenced by cSkinLCARSDisplayMenu::DrawTimer().
|
inline |
Definition at line 71 of file timers.h.
References stop.
Referenced by cTimers::GetTimer(), cMenuTimerItem::Set(), and SetStop().
time_t cTimer::StopTime | ( | void | ) | const |
the stop time as given by the user
Definition at line 712 of file timers.c.
References Matches(), and stopTime.
Referenced by AdjustSpawnedTimer(), cRecordControl::GetEvent(), cTimers::GetNextActiveTimer(), SetEventFromSchedule(), and StopTimeEvent().
time_t cTimer::StopTimeEvent | ( | void | ) | const |
or by the user (for normal timers)
Definition at line 730 of file timers.c.
References event, HasFlags(), cSetup::MarginStop, Setup, StopTime(), tfSpawned, tfVps, and cEvent::Vps().
Referenced by cSkinLCARSDisplayMenu::DrawTimer(), Expired(), and SpawnPatternTimers().
|
static |
cString cTimer::ToDescr | ( | void | ) | const |
Definition at line 321 of file timers.c.
References Channel(), HasFlags(), Id(), cChannel::Number(), PatternAndFile(), remote, cString::sprintf(), start, stop, and tfVps.
Referenced by AdjustSpawnedTimer(), cSVDRPServer::CmdNEWT(), cSVDRPServer::CmdUPDT(), cTimers::DeleteExpired(), HandleRemoteTimerModifications(), cMenuTimers::OnOff(), SetDeferred(), SetEvent(), SetInVpsMargin(), SetRecording(), SpawnPatternTimer(), cRecordControls::Start(), cRecordControl::Stop(), cRecordControls::Stop(), cReplayControl::Stop(), and TriggerRespawn().
cString cTimer::ToText | ( | bool | UseChannelID = false | ) | const |
Definition at line 311 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 843 of file timers.c.
References Channel(), dsyslog, HasFlags(), IsPatternTimer(), Local(), LOCK_CHANNELS_READ, LOCK_SCHEDULES_WRITE, tfSpawned, and ToDescr().
Referenced by cTimers::DeleteExpired(), OnOff(), and cMenuEditTimer::ProcessKey().
|
inline |
Definition at line 69 of file timers.h.
References weekdays.
Referenced by cTimers::GetTimer(), ParseDay(), PrintDay(), cMenuTimerItem::Set(), and SetWeekDays().
|
friend |
|
private |
|
private |
Definition at line 42 of file timers.h.
Referenced by Channel(), cTimer(), cTimer(), cTimer(), Matches(), operator=(), Parse(), and cMenuEditTimer::ProcessKey().
|
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 43 of file timers.h.
Referenced by cMenuEditTimer::cMenuEditTimer(), cTimer(), cTimer(), Day(), DayMatches(), FirstDay(), Matches(), OnOff(), operator=(), Parse(), ParseDay(), PrintFirstDay(), SetDay(), cMenuEditTimer::SetFirstDayItem(), Skip(), and ToText().
|
mutableprivate |
Matches(time_t, ...) will return false if the current time is before this value.
Definition at line 39 of file timers.h.
Referenced by cTimer(), cTimer(), Deferred(), Matches(), operator=(), and SetDeferred().
|
private |
Definition at line 53 of file timers.h.
Referenced by Event(), Matches(), operator=(), SetEvent(), StartTimeEvent(), StopTimeEvent(), and ~cTimer().
|
mutableprivate |
Definition at line 50 of file timers.h.
Referenced by cMenuEditTimer::cMenuEditTimer(), cTimer(), cTimer(), File(), operator=(), Parse(), PatternAndFile(), cMenuEditTimer::ProcessKey(), SetFile(), cMenuEditTimer::SetFolder(), cMenuEditTimer::SetPatternItem(), and ToText().
|
private |
Definition at line 41 of file timers.h.
Referenced by ClrFlags(), cMenuEditTimer::cMenuEditTimer(), cTimer(), cTimer(), cTimer(), Flags(), HasFlags(), InvFlags(), operator=(), Parse(), SetFlags(), and ToText().
|
private |
Definition at line 34 of file timers.h.
Referenced by Id(), and operator=().
|
private |
Definition at line 40 of file timers.h.
Referenced by cTimer(), cTimer(), InVpsMargin(), operator=(), and SetInVpsMargin().
|
private |
Definition at line 48 of file timers.h.
Referenced by cMenuEditTimer::cMenuEditTimer(), cTimer(), cTimer(), Lifetime(), operator=(), Parse(), SetLifetime(), and ToText().
|
mutableprivate |
Definition at line 49 of file timers.h.
Referenced by cTimer(), cTimer(), IsPatternTimer(), operator=(), Parse(), Pattern(), PatternAndFile(), cMenuEditTimer::SetHelpKeys(), SetPattern(), cMenuEditTimer::SetPatternItem(), and ToText().
|
private |
Definition at line 40 of file timers.h.
Referenced by cTimer(), cTimer(), operator=(), Pending(), and SetPending().
|
private |
Definition at line 47 of file timers.h.
Referenced by cMenuEditTimer::cMenuEditTimer(), Compare(), cTimer(), cTimer(), operator=(), Parse(), Priority(), SetPriority(), and ToText().
|
private |
Definition at line 52 of file timers.h.
Referenced by cMenuEditTimer::cMenuEditTimer(), cTimer(), cTimer(), cTimer(), Local(), operator=(), Remote(), SetRemote(), ToDescr(), and ~cTimer().
|
private |
Definition at line 38 of file timers.h.
Referenced by AdjustSpawnedTimer(), cTimer(), cTimer(), operator=(), and SetEvent().
|
private |
Definition at line 36 of file timers.h.
Referenced by cTimer(), cTimer(), operator=(), SetEvent(), and SetEventFromSchedule().
|
private |
Definition at line 37 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 45 of file timers.h.
Referenced by cMenuEditTimer::cMenuEditTimer(), cTimer(), cTimer(), Matches(), operator=(), Parse(), SetStart(), Start(), ToDescr(), and ToText().
|
mutableprivate |
Definition at line 35 of file timers.h.
Referenced by cTimer(), cTimer(), Matches(), Matches(), operator=(), Skip(), and StartTime().
|
private |
|
private |
the time_t value calculated from 'day', 'start' and 'stop'
Definition at line 35 of file timers.h.
Referenced by cTimer(), cTimer(), Matches(), Matches(), operator=(), and StopTime().
|
private |
bitmask, lowest bits: SSFTWTM (the 'M' is the LSB)
Definition at line 44 of file timers.h.
Referenced by cMenuEditTimer::cMenuEditTimer(), cTimer(), cTimer(), DayMatches(), FirstDay(), IsSingleEvent(), operator=(), Parse(), PrintFirstDay(), cMenuEditTimer::SetHelpKeys(), SetWeekDays(), ToText(), and WeekDays().