vdr  1.7.31
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, 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)
 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)
- Public Member Functions inherited from cConfig< cTimer >
 cConfig (void)
 cConfig (void)
virtual ~cConfig ()
virtual ~cConfig ()
const char * FileName (void)
const char * FileName (void)
bool Load (const char *FileName=NULL, bool AllowComments=false, bool MustExist=false)
bool Load (const char *FileName=NULL, bool AllowComments=false, bool MustExist=false)
bool Save (void)
bool Save (void)
- Public Member Functions inherited from cList< cTimer >
cTimerGet (int Index) const
cTimerGet (int Index) const
cTimerFirst (void) const
cTimerFirst (void) const
cTimerLast (void) const
cTimerLast (void) const
cTimerPrev (const cTimer *object) const
cTimerPrev (const cTimer *object) const
cTimerNext (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)
virtual void Clear (void)
int Count (void) const
void Sort (void)
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)
virtual void Clear (void)
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)
 cListBase (void)
- Protected Attributes inherited from cListBase
cListObjectobjects
cListObjectlastObject
int count

Detailed Description

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

Constructor & Destructor Documentation

cTimers::cTimers ( void  )

Definition at line 717 of file timers.c.

References beingEdited, lastDeleteExpired, lastSetEvents, and state.

cTimers::cTimers ( void  )

Member Function Documentation

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

Definition at line 121 of file timers.h.

References beingEdited.

int cTimers::BeingEdited ( void  )
inline

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

References beingEdited.

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 beingEdited, and lastSetEvents.

void cTimers::DecBeingEdited ( void  )
inline

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

References beingEdited, and lastSetEvents.

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

void cTimers::Del ( cTimer Timer,
bool  DeleteObject = true 
)
void cTimers::Del ( cTimer Timer,
bool  DeleteObject = true 
)
void cTimers::DeleteExpired ( void  )
void cTimers::DeleteExpired ( void  )
cTimer* cTimers::GetMatch ( time_t  t)
cTimer * cTimers::GetMatch ( time_t  t)
cTimer* cTimers::GetMatch ( const cEvent Event,
int *  Match = NULL 
)
cTimer * cTimers::GetMatch ( const cEvent Event,
int *  Match = NULL 
)

Definition at line 758 of file timers.c.

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

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

Definition at line 122 of file timers.h.

References beingEdited.

void cTimers::IncBeingEdited ( void  )
inline

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

References beingEdited.

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

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

Definition at line 799 of file timers.c.

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

References state.

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

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.

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

Member Data Documentation

int cTimers::beingEdited
private

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

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

time_t cTimers::lastDeleteExpired
private

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

Referenced by cTimers(), and DeleteExpired().

time_t cTimers::lastSetEvents
private

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

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

int cTimers::state
private

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

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


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