cTimers Class Reference

#include <timers.h>

Inheritance diagram for cTimers:

Inheritance graph
[legend]
Collaboration diagram for cTimers:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cTimers (void)
cTimerGetTimer (cTimer *Timer)
cTimerGetMatch (time_t t)
cTimerGetMatch (const cEvent *Event, int *Match=NULL)
cTimerGetNextActiveTimer (void)
int BeingEdited (void)
void IncBeingEdited (void)
void DecBeingEdited (void)
void SetModified (void)
bool Modified (int &State)
void SetEvents (void)
void DeleteExpired (void)
void Add (cTimer *Timer, cTimer *After=NULL)
void Ins (cTimer *Timer, cTimer *Before=NULL)
void Del (cTimer *Timer, bool DeleteObject=true)

Private Attributes

int state
int beingEdited
time_t lastSetEvents
time_t lastDeleteExpired


Detailed Description

Definition at line 100 of file timers.h.


Constructor & Destructor Documentation

cTimers::cTimers ( void   ) 

Definition at line 629 of file timers.c.

References beingEdited, lastDeleteExpired, lastSetEvents, and state.


Member Function Documentation

cTimer * cTimers::GetTimer ( cTimer Timer  ) 

cTimer * cTimers::GetMatch ( time_t  t  ) 

cTimer * cTimers::GetMatch ( const cEvent Event,
int *  Match = NULL 
)

Definition at line 670 of file timers.c.

References cList< cTimer >::First(), cList< cTimer >::Next(), tmFull, and tmNone.

Here is the call graph for this function:

cTimer * cTimers::GetNextActiveTimer ( void   ) 

int cTimers::BeingEdited ( void   )  [inline]

Definition at line 112 of file timers.h.

References beingEdited.

Referenced by cSVDRP::CmdDELT(), cSVDRP::CmdMODT(), cSVDRP::CmdMOVC(), cSVDRP::CmdUPDT(), and main().

void cTimers::IncBeingEdited ( void   )  [inline]

Definition at line 113 of file timers.h.

References beingEdited.

Referenced by cMenuEditTimer::cMenuEditTimer(), and cMenuTimers::cMenuTimers().

void cTimers::DecBeingEdited ( void   )  [inline]

Definition at line 114 of file timers.h.

References beingEdited, and lastSetEvents.

Referenced by cMenuEditTimer::~cMenuEditTimer(), and cMenuTimers::~cMenuTimers().

void cTimers::SetModified ( void   ) 

bool cTimers::Modified ( int &  State  ) 

Returns true if any of the timers have been modified, which is detected by State being different than the internal state. Upon return the internal state will be stored in State.

Definition at line 723 of file timers.c.

References state.

Referenced by cMenuSchedule::cMenuSchedule(), cMenuWhatsOn::cMenuWhatsOn(), main(), cMenuSchedule::Update(), and cMenuWhatsOn::Update().

void cTimers::SetEvents ( void   ) 

Definition at line 730 of file timers.c.

References cList< cTimer >::First(), cRemote::HasKeys(), lastSetEvents, cSchedules::Modified(), cList< cTimer >::Next(), and cSchedules::Schedules().

Referenced by main().

Here is the call graph for this function:

void cTimers::DeleteExpired ( void   ) 

Definition at line 748 of file timers.c.

References Del(), cTimer::Expired(), cList< cTimer >::First(), isyslog, lastDeleteExpired, cList< cTimer >::Next(), SetModified(), and cTimer::ToDescr().

Referenced by main().

Here is the call graph for this function:

void cTimers::Add ( cTimer Timer,
cTimer After = NULL 
)

void cTimers::Ins ( cTimer Timer,
cTimer Before = NULL 
)

Definition at line 711 of file timers.c.

References cListBase::Ins(), cStatus::MsgTimerChange(), and tcAdd.

Here is the call graph for this function:

void cTimers::Del ( cTimer Timer,
bool  DeleteObject = true 
)


Member Data Documentation

int cTimers::state [private]

Definition at line 102 of file timers.h.

Referenced by cTimers(), Modified(), and SetModified().

int cTimers::beingEdited [private]

Definition at line 103 of file timers.h.

Referenced by BeingEdited(), cTimers(), DecBeingEdited(), and IncBeingEdited().

time_t cTimers::lastSetEvents [private]

Definition at line 104 of file timers.h.

Referenced by cTimers(), DecBeingEdited(), and SetEvents().

time_t cTimers::lastDeleteExpired [private]

Definition at line 105 of file timers.h.

Referenced by cTimers(), and DeleteExpired().


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

Generated on Tue Nov 4 20:02:52 2008 for VDR by  doxygen 1.5.6