42 mutable char file[NAME_MAX * 2 + 1];
57 time_t
Day(
void)
const {
return day; }
64 time_t
FirstDay(
void)
const {
return weekdays ? day : 0; }
65 const char *
Aux(
void)
const {
return aux; }
70 bool Parse(
const char *s);
76 static time_t
IncDay(time_t t,
int Days);
77 static time_t
SetTime(time_t t,
int SecondsFromMidnight);
79 bool Matches(time_t t = 0,
bool Directly =
false,
int Margin = 0)
const;
105 static bool ParseDay(
const char *s, time_t &Day,
int &WeekDays);
106 static cString PrintDay(time_t Day,
int WeekDays,
bool SingleByteChars);
118 cTimer *GetMatch(time_t t);
120 cTimer *GetNextActiveTimer(
void);
124 void SetModified(
void);
125 bool Modified(
int &State);
129 void SetEvents(
void);
130 void DeleteExpired(
void);
133 void Del(
cTimer *Timer,
bool DeleteObject =
true);
void SetWeekDays(int WeekDays)
void SetRecording(bool Recording)
void SetEvent(const cEvent *Event)
static int TimeToInt(int t)
bool DayMatches(time_t t) const
cString PrintFirstDay(void) const
const cEvent * Event(void) const
bool Matches(time_t t=0, bool Directly=false, int Margin=0) const
bool Parse(const char *s)
void SetInVpsMargin(bool InVpsMargin)
time_t Deferred(void) const
void SetPending(bool Pending)
time_t StartTime(void) const
int weekdays
bitmask, lowest bits: SSFTWTM (the 'M' is the LSB)
const cChannel * Channel(void) const
virtual int Compare(const cListObject &ListObject) const
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".
static time_t SetTime(time_t t, int SecondsFromMidnight)
void SetEventFromSchedule(const cSchedules *Schedules=NULL)
bool Recording(void) const
void DecBeingEdited(void)
static int GetMDay(time_t t)
bool HasFlags(uint Flags) const
void SetLifetime(int Lifetime)
void IncBeingEdited(void)
void SetAux(const char *Aux)
cTimer & operator=(const cTimer &Timer)
time_t day
midnight of the day this timer shall hit, or of the first day it shall hit in case of a repeating tim...
static time_t IncDay(time_t t, int Days)
bool InVpsMargin(void) const
static int GetWDay(time_t t)
void SetPriority(int Priority)
time_t deferred
Matches(time_t, ...) will return false if the current time is before this value.
cString ToDescr(void) const
time_t StopTime(void) const
void InvFlags(uint Flags)
void SetFlags(uint Flags)
void SetDeferred(int Seconds)
const char * File(void) const
bool IsSingleEvent(void) const
cTimer(bool Instant=false, bool Pause=false, cChannel *Channel=NULL)
static bool ParseDay(const char *s, time_t &Day, int &WeekDays)
void ClrFlags(uint Flags)
time_t FirstDay(void) const
cString ToText(bool UseChannelID=false) const
const char * Aux(void) const
void SetFile(const char *File)
static cString PrintDay(time_t Day, int WeekDays, bool SingleByteChars)