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::cTimers ( void  )

Definition at line 696 of file timers.c.

References beingEdited, lastDeleteExpired, lastSetEvents, and state.

Member Function Documentation

◆ Add()

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

◆ BeingEdited()

int cTimers::BeingEdited ( void  )
inline

Definition at line 121 of file timers.h.

References beingEdited.

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

◆ DecBeingEdited()

void cTimers::DecBeingEdited ( void  )
inline

Definition at line 123 of file timers.h.

References beingEdited, and lastSetEvents.

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

◆ Del()

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

◆ DeleteExpired()

void cTimers::DeleteExpired ( void  )

◆ GetMatch() [1/2]

cTimer * cTimers::GetMatch ( time_t  t)

◆ GetMatch() [2/2]

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

Definition at line 739 of file timers.c.

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

◆ GetNextActiveTimer()

cTimer * cTimers::GetNextActiveTimer ( void  )

◆ GetTimer()

cTimer * cTimers::GetTimer ( cTimer Timer)

◆ IncBeingEdited()

void cTimers::IncBeingEdited ( void  )
inline

Definition at line 122 of file timers.h.

References beingEdited.

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

◆ Ins()

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

Definition at line 780 of file timers.c.

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

◆ Modified()

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.

References state.

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

◆ SetEvents()

void cTimers::SetEvents ( void  )

◆ SetModified()

void cTimers::SetModified ( void  )

Member Data Documentation

◆ beingEdited

int cTimers::beingEdited
private

Definition at line 112 of file timers.h.

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

◆ lastDeleteExpired

time_t cTimers::lastDeleteExpired
private

Definition at line 114 of file timers.h.

Referenced by cTimers(), and DeleteExpired().

◆ lastSetEvents

time_t cTimers::lastSetEvents
private

Definition at line 113 of file timers.h.

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

◆ state

int cTimers::state
private

Definition at line 111 of file timers.h.

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


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