vdr  2.2.0
Public Member Functions | Private Attributes | List of all members
cTimers Class Reference

#include <timers.h>

Public Member Functions

 cTimers (void)
 
cTimerGetTimer (cTimer *Timer)
 
cTimerGetMatch (time_t t)
 
cTimerGetMatch (const cEvent *Event, eTimerMatch *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)
 
- Public Member Functions inherited from cConfig< cTimer >
 cConfig (void)
 
virtual ~cConfig ()
 
const char * FileName (void)
 
bool Load (const char *FileName=NULL, bool AllowComments=false, bool MustExist=false)
 
bool Save (void)
 
- Public Member Functions inherited from cList< cTimer >
cTimerGet (int Index) const
 
cTimerFirst (void) const
 
cTimerLast (void) const
 
cTimerPrev (const cTimer *object) const
 
cTimerNext (const cTimer *object) const
 
- Public Member Functions inherited from cListBase
virtual ~cListBase ()
 
void Add (cListObject *Object, cListObject *After=NULL)
 
void Ins (cListObject *Object, cListObject *Before=NULL)
 
void Del (cListObject *Object, bool DeleteObject=true)
 
virtual void Move (int From, int To)
 
void Move (cListObject *From, cListObject *To)
 
cListObjectGet (int Index) const
 
int Count (void) const
 
void Sort (void)
 

Private Attributes

int state
 
int beingEdited
 
time_t lastSetEvents
 
time_t lastDeleteExpired
 

Additional Inherited Members

- Protected Member Functions inherited from cListBase
 cListBase (void)
 
- Protected Attributes inherited from cListBase
cListObjectobjects
 
cListObjectlastObject
 
int count
 

Detailed Description

Definition at line 109 of file timers.h.

Constructor & Destructor Documentation

cTimers::cTimers ( void  )

Definition at line 696 of file timers.c.

Member Function Documentation

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

Definition at line 121 of file timers.h.

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

void cTimers::DecBeingEdited ( void  )
inline

Definition at line 123 of file timers.h.

References Timers.

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

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

Definition at line 817 of file timers.c.

References cTimer::Expired(), isyslog, cListObject::next, cListObject::Next(), and cTimer::ToDescr().

Referenced by main().

cTimer * cTimers::GetMatch ( time_t  t)
cTimer * cTimers::GetMatch ( const cEvent Event,
eTimerMatch Match = NULL 
)

Definition at line 739 of file timers.c.

References cListObject::Next(), tmFull, and tmNone.

cTimer * cTimers::GetNextActiveTimer ( void  )
cTimer * cTimers::GetTimer ( cTimer Timer)
void cTimers::IncBeingEdited ( void  )
inline

Definition at line 122 of file timers.h.

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

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

Definition at line 780 of file timers.c.

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

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

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

void cTimers::SetEvents ( void  )
void cTimers::SetModified ( void  )

Member Data Documentation

int cTimers::beingEdited
private

Definition at line 112 of file timers.h.

time_t cTimers::lastDeleteExpired
private

Definition at line 114 of file timers.h.

time_t cTimers::lastSetEvents
private

Definition at line 113 of file timers.h.

int cTimers::state
private

Definition at line 111 of file timers.h.


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