vdr 2.6.1
Public Member Functions | Static Public Member Functions | Private Attributes | Friends | List of all members
cTimer Class Reference

#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 ()
 
cTimeroperator= (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 cChannelChannel (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 cEventEvent (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)
 
cTimerSpawnPatternTimer (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
 
 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 ()
 
cTimeroperator= (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 cChannelChannel (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 cEventEvent (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)
 
cTimerSpawnPatternTimer (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 ()
 
virtual int Compare (const cListObject &ListObject) const
 
void Append (cListObject *Object)
 
void Insert (cListObject *Object)
 
void Unlink (void)
 
int Index (void) const
 
cListObjectPrev (void) const
 
cListObjectNext (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
 
cListObjectPrev (void) const
 
cListObjectNext (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

int id
 
time_t startTime
 
time_t stopTime
 
int scheduleStateSet
 
int scheduleStateSpawn
 
int scheduleStateAdjust
 
time_t deferred
 
bool pending
 
bool inVpsMargin
 
uint flags
 
const cChannelchannel
 
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 cEventevent
 

Friends

class cMenuEditTimer
 

Detailed Description

Definition at line 31 of file include/vdr/timers.h.

Constructor & Destructor Documentation

◆ cTimer() [1/6]

cTimer::cTimer ( bool  Instant = false,
bool  Pause = false,
const cChannel Channel = NULL 
)

◆ cTimer() [2/6]

cTimer::cTimer ( const cEvent Event,
const char *  FileName = NULL,
const cTimer PatternTimer = NULL 
)

◆ cTimer() [3/6]

cTimer::cTimer ( const cTimer Timer)

Definition at line 222 of file timers.c.

References aux, channel, flags, remote, and tfNone.

◆ ~cTimer() [1/2]

cTimer::~cTimer ( )
virtual

Definition at line 232 of file timers.c.

References aux, event, and remote.

◆ cTimer() [4/6]

cTimer::cTimer ( bool  Instant = false,
bool  Pause = false,
const cChannel Channel = NULL 
)

◆ cTimer() [5/6]

cTimer::cTimer ( const cEvent Event,
const char *  FileName = NULL,
const cTimer PatternTimer = NULL 
)

◆ cTimer() [6/6]

cTimer::cTimer ( const cTimer Timer)

◆ ~cTimer() [2/2]

virtual cTimer::~cTimer ( )
virtual

Member Function Documentation

◆ AdjustSpawnedTimer() [1/2]

bool cTimer::AdjustSpawnedTimer ( void  )

◆ AdjustSpawnedTimer() [2/2]

bool cTimer::AdjustSpawnedTimer ( void  )

◆ Aux() [1/2]

const char * cTimer::Aux ( void  ) const
inline

Definition at line 77 of file include/vdr/timers.h.

References aux.

Referenced by cRecording::cRecording(), and SetAux().

◆ Aux() [2/2]

const char * cTimer::Aux ( void  ) const
inline

Definition at line 77 of file timers.h.

References aux.

◆ CalcMargins() [1/2]

void cTimer::CalcMargins ( int &  MarginStart,
int &  MarginStop,
const cEvent Event 
)

◆ CalcMargins() [2/2]

void cTimer::CalcMargins ( int &  MarginStart,
int &  MarginStop,
const cEvent Event 
)

◆ Channel() [1/2]

const cChannel * cTimer::Channel ( void  ) const
inline

◆ Channel() [2/2]

const cChannel * cTimer::Channel ( void  ) const
inline

Definition at line 67 of file timers.h.

References channel.

◆ ClrFlags() [1/2]

void cTimer::ClrFlags ( uint  Flags)

◆ ClrFlags() [2/2]

void cTimer::ClrFlags ( uint  Flags)

◆ Compare() [1/2]

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 285 of file timers.c.

References IsPatternTimer(), Pattern(), priority, and StartTime().

Referenced by cMenuTimerItem::Compare().

◆ Compare() [2/2]

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.

◆ Day() [1/2]

time_t cTimer::Day ( void  ) const
inline

Definition at line 68 of file include/vdr/timers.h.

References day.

Referenced by cTimers::GetTimer(), ParseDay(), PrintDay(), cMenuTimerItem::Set(), and SetDay().

◆ Day() [2/2]

time_t cTimer::Day ( void  ) const
inline

Definition at line 68 of file timers.h.

References day.

◆ DayMatches() [1/2]

bool cTimer::DayMatches ( time_t  t) const

Definition at line 519 of file timers.c.

References day, GetWDay(), IsSingleEvent(), SetTime(), and weekdays.

Referenced by Matches().

◆ DayMatches() [2/2]

bool cTimer::DayMatches ( time_t  t) const

◆ Deferred() [1/2]

time_t cTimer::Deferred ( void  ) const
inline

Definition at line 80 of file include/vdr/timers.h.

References deferred.

◆ Deferred() [2/2]

time_t cTimer::Deferred ( void  ) const
inline

Definition at line 80 of file timers.h.

References deferred.

◆ Event() [1/2]

const cEvent * cTimer::Event ( void  ) const
inline

◆ Event() [2/2]

const cEvent * cTimer::Event ( void  ) const
inline

Definition at line 84 of file timers.h.

References event.

◆ Expired() [1/2]

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().

◆ Expired() [2/2]

bool cTimer::Expired ( void  ) const

◆ File() [1/2]

const char * cTimer::File ( void  ) const
inline

◆ File() [2/2]

const char * cTimer::File ( void  ) const
inline

Definition at line 75 of file timers.h.

References file.

◆ FirstDay() [1/2]

time_t cTimer::FirstDay ( void  ) const
inline

Definition at line 76 of file include/vdr/timers.h.

References day, and weekdays.

Referenced by cMenuTimers::OnOff(), and cMenuTimerItem::Set().

◆ FirstDay() [2/2]

time_t cTimer::FirstDay ( void  ) const
inline

Definition at line 76 of file timers.h.

References day, and weekdays.

◆ Flags() [1/2]

uint cTimer::Flags ( void  ) const
inline

Definition at line 66 of file include/vdr/timers.h.

References flags.

Referenced by cSkinLCARSDisplayMenu::DrawTimer(), HasFlags(), InvFlags(), and SetFlags().

◆ Flags() [2/2]

uint cTimer::Flags ( void  ) const
inline

Definition at line 66 of file timers.h.

References flags.

◆ GetMDay() [1/2]

int cTimer::GetMDay ( time_t  t)
static

Definition at line 506 of file timers.c.

Referenced by ParseDay(), and cMenuTimerItem::Set().

◆ GetMDay() [2/2]

static int cTimer::GetMDay ( time_t  t)
static

◆ GetWDay() [1/2]

int cTimer::GetWDay ( time_t  t)
static

Definition at line 512 of file timers.c.

Referenced by DayMatches(), and cMenuEditDateItem::ToggleRepeating().

◆ GetWDay() [2/2]

static int cTimer::GetWDay ( time_t  t)
static

◆ HasFlags() [1/2]

bool cTimer::HasFlags ( uint  Flags) const

◆ HasFlags() [2/2]

bool cTimer::HasFlags ( uint  Flags) const

◆ Id() [1/2]

int cTimer::Id ( void  ) const
inline

◆ Id() [2/2]

int cTimer::Id ( void  ) const
inline

Definition at line 62 of file timers.h.

References id.

◆ IncDay() [1/2]

time_t cTimer::IncDay ( time_t  t,
int  Days 
)
static

Definition at line 524 of file timers.c.

Referenced by Matches(), ParseDay(), and Skip().

◆ IncDay() [2/2]

static time_t cTimer::IncDay ( time_t  t,
int  Days 
)
static

◆ InvFlags() [1/2]

void cTimer::InvFlags ( uint  Flags)

Definition at line 1005 of file timers.c.

References flags, and Flags().

Referenced by OnOff().

◆ InvFlags() [2/2]

void cTimer::InvFlags ( uint  Flags)

◆ InVpsMargin() [1/2]

bool cTimer::InVpsMargin ( void  ) const
inline

Definition at line 65 of file include/vdr/timers.h.

References inVpsMargin.

Referenced by SetInVpsMargin().

◆ InVpsMargin() [2/2]

bool cTimer::InVpsMargin ( void  ) const
inline

Definition at line 65 of file timers.h.

References inVpsMargin.

◆ IsPatternTimer() [1/2]

bool cTimer::IsPatternTimer ( void  ) const
inline

◆ IsPatternTimer() [2/2]

bool cTimer::IsPatternTimer ( void  ) const
inline

Definition at line 95 of file timers.h.

References pattern.

◆ IsSingleEvent() [1/2]

bool cTimer::IsSingleEvent ( void  ) const

◆ IsSingleEvent() [2/2]

bool cTimer::IsSingleEvent ( void  ) const

◆ Lifetime() [1/2]

int cTimer::Lifetime ( void  ) const
inline

Definition at line 73 of file include/vdr/timers.h.

References lifetime.

Referenced by cRecording::cRecording(), cTimer(), and SetLifetime().

◆ Lifetime() [2/2]

int cTimer::Lifetime ( void  ) const
inline

Definition at line 73 of file timers.h.

References lifetime.

◆ Local() [1/2]

bool cTimer::Local ( void  ) const
inline

◆ Local() [2/2]

bool cTimer::Local ( void  ) const
inline

Definition at line 79 of file timers.h.

References remote.

◆ Matches() [1/4]

eTimerMatch cTimer::Matches ( const cEvent Event,
int *  Overlap = NULL 
) const

◆ Matches() [2/4]

eTimerMatch cTimer::Matches ( const cEvent Event,
int *  Overlap = NULL 
) const

◆ Matches() [3/4]

bool cTimer::Matches ( time_t  t = 0,
bool  Directly = false,
int  Margin = 0 
) const

◆ Matches() [4/4]

bool cTimer::Matches ( time_t  t = 0,
bool  Directly = false,
int  Margin = 0 
) const

◆ OnOff() [1/2]

void cTimer::OnOff ( void  )

◆ OnOff() [2/2]

void cTimer::OnOff ( void  )

◆ operator=() [1/2]

cTimer & cTimer::operator= ( const cTimer Timer)

◆ operator=() [2/2]

cTimer & cTimer::operator= ( const cTimer Timer)

◆ Parse() [1/2]

bool cTimer::Parse ( const char *  s)

◆ Parse() [2/2]

bool cTimer::Parse ( const char *  s)

◆ ParseDay() [1/2]

bool cTimer::ParseDay ( const char *  s,
time_t &  Day,
int &  WeekDays 
)
static

Definition at line 331 of file timers.c.

References day, Day(), GetMDay(), IncDay(), SetTime(), skipspace(), and WeekDays().

Referenced by Parse(), and ParseWeekDays().

◆ ParseDay() [2/2]

static bool cTimer::ParseDay ( const char *  s,
time_t &  Day,
int &  WeekDays 
)
static

◆ Pattern() [1/2]

const char * cTimer::Pattern ( void  ) const
inline

Definition at line 74 of file include/vdr/timers.h.

References pattern.

Referenced by Compare(), Matches(), cMenuTimerItem::Set(), SetPattern(), and SpawnPatternTimer().

◆ Pattern() [2/2]

const char * cTimer::Pattern ( void  ) const
inline

Definition at line 74 of file timers.h.

References pattern.

◆ PatternAndFile() [1/2]

cString cTimer::PatternAndFile ( void  ) const

Definition at line 304 of file timers.c.

References file, IsPatternTimer(), pattern, and cString::sprintf().

Referenced by ToDescr(), and ToText().

◆ PatternAndFile() [2/2]

cString cTimer::PatternAndFile ( void  ) const

◆ Pending() [1/2]

bool cTimer::Pending ( void  ) const
inline

Definition at line 64 of file include/vdr/timers.h.

References pending.

Referenced by cSkinLCARSDisplayMenu::DrawTimer(), SetPending(), and cRecordControls::Start().

◆ Pending() [2/2]

bool cTimer::Pending ( void  ) const
inline

Definition at line 64 of file timers.h.

References pending.

◆ PrintDay() [1/2]

cString cTimer::PrintDay ( time_t  Day,
int  WeekDays,
bool  SingleByteChars 
)
static

◆ PrintDay() [2/2]

static cString cTimer::PrintDay ( time_t  Day,
int  WeekDays,
bool  SingleByteChars 
)
static

◆ PrintFirstDay() [1/2]

cString cTimer::PrintFirstDay ( void  ) const

Definition at line 424 of file timers.c.

References day, PrintDay(), and weekdays.

Referenced by cMenuTimers::OnOff().

◆ PrintFirstDay() [2/2]

cString cTimer::PrintFirstDay ( void  ) const

◆ Priority() [1/2]

int cTimer::Priority ( void  ) const
inline

◆ Priority() [2/2]

int cTimer::Priority ( void  ) const
inline

Definition at line 72 of file timers.h.

References priority.

◆ Recording() [1/2]

bool cTimer::Recording ( void  ) const
inline

◆ Recording() [2/2]

bool cTimer::Recording ( void  ) const
inline

Definition at line 63 of file timers.h.

References HasFlags(), and tfRecording.

◆ Remote() [1/2]

const char * cTimer::Remote ( void  ) const
inline

◆ Remote() [2/2]

const char * cTimer::Remote ( void  ) const
inline

Definition at line 78 of file timers.h.

References remote.

◆ Save() [1/2]

bool cTimer::Save ( FILE *  f)

Definition at line 494 of file timers.c.

References Remote(), and ToText().

◆ Save() [2/2]

bool cTimer::Save ( FILE *  f)

◆ SetAux() [1/2]

void cTimer::SetAux ( const char *  Aux)

Definition at line 977 of file timers.c.

References aux, and Aux().

◆ SetAux() [2/2]

void cTimer::SetAux ( const char *  Aux)

◆ SetDay() [1/2]

void cTimer::SetDay ( time_t  Day)

Definition at line 947 of file timers.c.

References day, and Day().

Referenced by AdjustSpawnedTimer().

◆ SetDay() [2/2]

void cTimer::SetDay ( time_t  Day)

◆ SetDeferred() [1/2]

void cTimer::SetDeferred ( int  Seconds)

Definition at line 989 of file timers.c.

References deferred, isyslog, and ToDescr().

Referenced by cRecordControl::cRecordControl().

◆ SetDeferred() [2/2]

void cTimer::SetDeferred ( int  Seconds)

◆ SetEvent() [1/2]

bool cTimer::SetEvent ( const cEvent Event)

◆ SetEvent() [2/2]

bool cTimer::SetEvent ( const cEvent Event)

◆ SetEventFromSchedule() [1/2]

bool cTimer::SetEventFromSchedule ( const cSchedules Schedules)

◆ SetEventFromSchedule() [2/2]

bool cTimer::SetEventFromSchedule ( const cSchedules Schedules)

◆ SetFile() [1/2]

void cTimer::SetFile ( const char *  File)

Definition at line 552 of file timers.c.

References File(), file, isempty(), and Utf8Strn0Cpy().

Referenced by cRecording::cRecording().

◆ SetFile() [2/2]

void cTimer::SetFile ( const char *  File)

◆ SetFlags() [1/2]

void cTimer::SetFlags ( uint  Flags)

◆ SetFlags() [2/2]

void cTimer::SetFlags ( uint  Flags)

◆ SetId() [1/2]

void cTimer::SetId ( int  Id)

Definition at line 744 of file timers.c.

References Id().

Referenced by cTimers::Add(), HandleRemoteTimerModifications(), and cTimers::StoreRemoteTimers().

◆ SetId() [2/2]

void cTimer::SetId ( int  Id)

◆ SetInVpsMargin() [1/2]

void cTimer::SetInVpsMargin ( bool  InVpsMargin)

Definition at line 940 of file timers.c.

References inVpsMargin, InVpsMargin(), isyslog, and ToDescr().

◆ SetInVpsMargin() [2/2]

void cTimer::SetInVpsMargin ( bool  InVpsMargin)

◆ SetLifetime() [1/2]

void cTimer::SetLifetime ( int  Lifetime)

Definition at line 972 of file timers.c.

References lifetime, and Lifetime().

◆ SetLifetime() [2/2]

void cTimer::SetLifetime ( int  Lifetime)

◆ SetPattern() [1/2]

void cTimer::SetPattern ( const char *  Pattern)

Definition at line 547 of file timers.c.

References Pattern(), pattern, and Utf8Strn0Cpy().

◆ SetPattern() [2/2]

void cTimer::SetPattern ( const char *  Pattern)

◆ SetPending() [1/2]

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().

◆ SetPending() [2/2]

void cTimer::SetPending ( bool  Pending)

◆ SetPriority() [1/2]

void cTimer::SetPriority ( int  Priority)

Definition at line 967 of file timers.c.

References priority, and Priority().

◆ SetPriority() [2/2]

void cTimer::SetPriority ( int  Priority)

◆ SetRecording() [1/2]

void cTimer::SetRecording ( bool  Recording)

◆ SetRecording() [2/2]

void cTimer::SetRecording ( bool  Recording)

◆ SetRemote() [1/2]

void cTimer::SetRemote ( const char *  Remote)

◆ SetRemote() [2/2]

void cTimer::SetRemote ( const char *  Remote)

◆ SetStart() [1/2]

void cTimer::SetStart ( int  Start)

Definition at line 957 of file timers.c.

References start, and Start().

Referenced by AdjustSpawnedTimer().

◆ SetStart() [2/2]

void cTimer::SetStart ( int  Start)

◆ SetStop() [1/2]

void cTimer::SetStop ( int  Stop)

Definition at line 962 of file timers.c.

References stop, and Stop().

Referenced by AdjustSpawnedTimer().

◆ SetStop() [2/2]

void cTimer::SetStop ( int  Stop)

◆ SetTime() [1/2]

time_t cTimer::SetTime ( time_t  t,
int  SecondsFromMidnight 
)
static

◆ SetTime() [2/2]

static time_t cTimer::SetTime ( time_t  t,
int  SecondsFromMidnight 
)
static

◆ SetWeekDays() [1/2]

void cTimer::SetWeekDays ( int  WeekDays)

Definition at line 952 of file timers.c.

References weekdays, and WeekDays().

◆ SetWeekDays() [2/2]

void cTimer::SetWeekDays ( int  WeekDays)

◆ Skip() [1/2]

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().

◆ Skip() [2/2]

void cTimer::Skip ( void  )

◆ SpawnPatternTimer() [1/2]

cTimer * cTimer::SpawnPatternTimer ( const cEvent Event,
cTimers Timers 
)

◆ SpawnPatternTimer() [2/2]

cTimer * cTimer::SpawnPatternTimer ( const cEvent Event,
cTimers Timers 
)

◆ SpawnPatternTimers() [1/2]

bool cTimer::SpawnPatternTimers ( const cSchedules Schedules,
cTimers Timers 
)

◆ SpawnPatternTimers() [2/2]

bool cTimer::SpawnPatternTimers ( const cSchedules Schedules,
cTimers Timers 
)

◆ Start() [1/2]

int cTimer::Start ( void  ) const
inline

Definition at line 70 of file include/vdr/timers.h.

References start.

Referenced by cTimers::GetTimer(), cMenuTimerItem::Set(), and SetStart().

◆ Start() [2/2]

int cTimer::Start ( void  ) const
inline

Definition at line 70 of file timers.h.

References start.

◆ StartTime() [1/2]

time_t cTimer::StartTime ( void  ) const

◆ StartTime() [2/2]

time_t cTimer::StartTime ( void  ) const

the start time as given by the user

◆ StartTimeEvent() [1/2]

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().

◆ StartTimeEvent() [2/2]

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),

◆ Stop() [1/2]

int cTimer::Stop ( void  ) const
inline

Definition at line 71 of file include/vdr/timers.h.

References stop.

Referenced by cTimers::GetTimer(), cMenuTimerItem::Set(), and SetStop().

◆ Stop() [2/2]

int cTimer::Stop ( void  ) const
inline

Definition at line 71 of file timers.h.

References stop.

◆ StopTime() [1/2]

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().

◆ StopTime() [2/2]

time_t cTimer::StopTime ( void  ) const

the stop time as given by the user

◆ StopTimeEvent() [1/2]

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().

◆ StopTimeEvent() [2/2]

time_t cTimer::StopTimeEvent ( void  ) const

or by the user (for normal timers)

◆ TimeToInt() [1/2]

int cTimer::TimeToInt ( int  t)
static

Definition at line 326 of file timers.c.

Referenced by Matches().

◆ TimeToInt() [2/2]

static int cTimer::TimeToInt ( int  t)
static

◆ ToDescr() [1/2]

cString cTimer::ToDescr ( void  ) const

◆ ToDescr() [2/2]

cString cTimer::ToDescr ( void  ) const

◆ ToText() [1/2]

cString cTimer::ToText ( bool  UseChannelID = false) const

◆ ToText() [2/2]

cString cTimer::ToText ( bool  UseChannelID = false) const

◆ TriggerRespawn() [1/2]

void cTimer::TriggerRespawn ( void  )

◆ TriggerRespawn() [2/2]

void cTimer::TriggerRespawn ( void  )

◆ WeekDays() [1/2]

int cTimer::WeekDays ( void  ) const
inline

Definition at line 69 of file include/vdr/timers.h.

References weekdays.

Referenced by cTimers::GetTimer(), ParseDay(), PrintDay(), cMenuTimerItem::Set(), and SetWeekDays().

◆ WeekDays() [2/2]

int cTimer::WeekDays ( void  ) const
inline

Definition at line 69 of file timers.h.

References weekdays.

Friends And Related Function Documentation

◆ cMenuEditTimer

Definition at line 32 of file include/vdr/timers.h.

Member Data Documentation

◆ aux

char * cTimer::aux
private

Definition at line 51 of file include/vdr/timers.h.

Referenced by Aux(), cTimer(), operator=(), Parse(), SetAux(), ToText(), and ~cTimer().

◆ channel

const cChannel * cTimer::channel
private

◆ day

time_t cTimer::day
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 include/vdr/timers.h.

Referenced by cMenuEditTimer::cMenuEditTimer(), cTimer(), Day(), DayMatches(), FirstDay(), Matches(), OnOff(), operator=(), Parse(), ParseDay(), PrintFirstDay(), SetDay(), cMenuEditTimer::SetFirstDayItem(), Skip(), and ToText().

◆ deferred

time_t cTimer::deferred
mutableprivate

Matches(time_t, ...) will return false if the current time is before this value.

Definition at line 39 of file include/vdr/timers.h.

Referenced by cTimer(), Deferred(), Matches(), operator=(), and SetDeferred().

◆ event

const cEvent * cTimer::event
private

◆ file

char cTimer::file
mutableprivate

◆ flags

uint cTimer::flags
private

◆ id

int cTimer::id
private

Definition at line 34 of file include/vdr/timers.h.

Referenced by Id(), and operator=().

◆ inVpsMargin

bool cTimer::inVpsMargin
private

Definition at line 40 of file include/vdr/timers.h.

Referenced by cTimer(), InVpsMargin(), operator=(), and SetInVpsMargin().

◆ lifetime

int cTimer::lifetime
private

◆ pattern

char cTimer::pattern
mutableprivate

◆ pending

bool cTimer::pending
private

Definition at line 40 of file include/vdr/timers.h.

Referenced by cTimer(), operator=(), Pending(), and SetPending().

◆ priority

int cTimer::priority
private

◆ remote

char * cTimer::remote
private

◆ scheduleStateAdjust

int cTimer::scheduleStateAdjust
private

Definition at line 38 of file include/vdr/timers.h.

Referenced by AdjustSpawnedTimer(), cTimer(), operator=(), and SetEvent().

◆ scheduleStateSet

int cTimer::scheduleStateSet
private

Definition at line 36 of file include/vdr/timers.h.

Referenced by cTimer(), operator=(), SetEvent(), and SetEventFromSchedule().

◆ scheduleStateSpawn

int cTimer::scheduleStateSpawn
private

Definition at line 37 of file include/vdr/timers.h.

Referenced by cTimer(), operator=(), SetEvent(), and SpawnPatternTimers().

◆ start

int cTimer::start
private

the start and stop time of this timer as given by the user,

Definition at line 45 of file include/vdr/timers.h.

Referenced by cMenuEditTimer::cMenuEditTimer(), cTimer(), Matches(), operator=(), Parse(), SetStart(), Start(), ToDescr(), and ToText().

◆ startTime

time_t cTimer::startTime
mutableprivate

Definition at line 35 of file include/vdr/timers.h.

Referenced by cTimer(), Matches(), operator=(), Skip(), and StartTime().

◆ stop

int cTimer::stop
private

in the form hhmm, with hh (00..23) and mm (00..59) added as hh*100+mm

Definition at line 46 of file include/vdr/timers.h.

Referenced by cMenuEditTimer::cMenuEditTimer(), cTimer(), Matches(), operator=(), Parse(), SetStop(), Stop(), ToDescr(), and ToText().

◆ stopTime

time_t cTimer::stopTime
private

the time_t value calculated from 'day', 'start' and 'stop'

Definition at line 35 of file include/vdr/timers.h.

Referenced by cTimer(), Matches(), operator=(), and StopTime().

◆ weekdays

int cTimer::weekdays
private

The documentation for this class was generated from the following files: