vdr 2.6.4
Public Member Functions | Static Public Member Functions | Static Private Attributes | Friends | List of all members
cSchedules Class Reference

#include <epg.h>

Public Member Functions

 cSchedules (void)
 
cScheduleAddSchedule (tChannelID ChannelID)
 
const cScheduleGetSchedule (tChannelID ChannelID) const
 
const cScheduleGetSchedule (const cChannel *Channel, bool AddIfMissing=false) const
 
- Public Member Functions inherited from cList< cSchedule >
 cList (const char *NeedsLocking=NULL)
 
const cScheduleGet (int Index) const
 
cScheduleGet (int Index)
 
const cScheduleFirst (void) const
 
cScheduleFirst (void)
 
const cScheduleLast (void) const
 
cScheduleLast (void)
 
const cSchedulePrev (const cSchedule *Object) const
 
cSchedulePrev (const cSchedule *Object)
 
const cScheduleNext (const cSchedule *Object) const
 
cScheduleNext (const cSchedule *Object)
 
- Public Member Functions inherited from cListBase
virtual ~cListBase ()
 
bool Lock (cStateKey &StateKey, bool Write=false, int TimeoutMs=0) const
 
void SetSyncStateKey (cStateKey &StateKey)
 
void SetUseGarbageCollector (void)
 
void SetExplicitModify (void)
 
void SetModified (void)
 
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)
 
bool Contains (const cListObject *Object) const
 
const cListObjectGet (int Index) const
 
cListObjectGet (int Index)
 
int Count (void) const
 
void Sort (void)
 

Static Public Member Functions

static const cSchedulesGetSchedulesRead (cStateKey &StateKey, int TimeoutMs=0)
 
static cSchedulesGetSchedulesWrite (cStateKey &StateKey, int TimeoutMs=0)
 
static void SetEpgDataFileName (const char *FileName)
 
static void Cleanup (bool Force=false)
 
static void ResetVersions (void)
 
static bool Dump (FILE *f=NULL, const char *Prefix="", eDumpMode DumpMode=dmAll, time_t AtTime=0)
 
static bool Read (FILE *f=NULL)
 

Static Private Attributes

static cSchedules schedules
 
static char * epgDataFileName = NULL
 
static time_t lastDump = time(NULL)
 

Friends

class cSchedule
 

Additional Inherited Members

- Protected Member Functions inherited from cListBase
 cListBase (const char *NeedsLocking=NULL)
 
- Protected Attributes inherited from cListBase
cListObjectobjects
 
cListObjectlastObject
 
int count
 
cStateLock stateLock
 
const char * needsLocking
 
bool useGarbageCollector
 

Detailed Description

Definition at line 201 of file epg.h.

Constructor & Destructor Documentation

◆ cSchedules()

cSchedules::cSchedules ( void  )

Definition at line 1264 of file epg.c.

Member Function Documentation

◆ AddSchedule()

cSchedule * cSchedules::AddSchedule ( tChannelID  ChannelID)

Definition at line 1363 of file epg.c.

References cListBase::Add(), tChannelID::ClrRid(), cSchedule, and GetSchedule().

Referenced by cSchedule::Read().

◆ Cleanup()

void cSchedules::Cleanup ( bool  Force = false)
static

◆ Dump()

bool cSchedules::Dump ( FILE *  f = NULL,
const char *  Prefix = "",
eDumpMode  DumpMode = dmAll,
time_t  AtTime = 0 
)
static

◆ GetSchedule() [1/2]

const cSchedule * cSchedules::GetSchedule ( const cChannel Channel,
bool  AddIfMissing = false 
) const

◆ GetSchedule() [2/2]

const cSchedule * cSchedules::GetSchedule ( tChannelID  ChannelID) const

◆ GetSchedulesRead()

const cSchedules * cSchedules::GetSchedulesRead ( cStateKey StateKey,
int  TimeoutMs = 0 
)
static

Gets the list of schedules for read access.

See cTimers::GetTimersRead() for details.

Definition at line 1269 of file epg.c.

References cListBase::Lock(), and schedules.

Referenced by cRecordControl::cRecordControl(), main(), and cMenuSchedule::Set().

◆ GetSchedulesWrite()

cSchedules * cSchedules::GetSchedulesWrite ( cStateKey StateKey,
int  TimeoutMs = 0 
)
static

Gets the list of schedules for write access.

See cTimers::GetTimersWrite() for details.

Definition at line 1274 of file epg.c.

References cListBase::Lock(), and schedules.

Referenced by cEIT::cEIT(), and cEpgDataWriter::Perform().

◆ Read()

bool cSchedules::Read ( FILE *  f = NULL)
static

◆ ResetVersions()

void cSchedules::ResetVersions ( void  )
static

Definition at line 1300 of file epg.c.

References LOCK_SCHEDULES_WRITE.

Referenced by cMenuSetupEPG::ProcessKey().

◆ SetEpgDataFileName()

void cSchedules::SetEpgDataFileName ( const char *  FileName)
static

Definition at line 1279 of file epg.c.

References epgDataFileName, EpgDataWriter, and cEpgDataWriter::SetDump().

Referenced by main().

Friends And Related Symbol Documentation

◆ cSchedule

friend class cSchedule
friend

Definition at line 202 of file epg.h.

Referenced by AddSchedule(), and GetSchedule().

Member Data Documentation

◆ epgDataFileName

char * cSchedules::epgDataFileName = NULL
staticprivate

Definition at line 205 of file epg.h.

Referenced by Dump(), Read(), and SetEpgDataFileName().

◆ lastDump

time_t cSchedules::lastDump = time(NULL)
staticprivate

Definition at line 206 of file epg.h.

Referenced by Cleanup().

◆ schedules

cSchedules cSchedules::schedules
staticprivate

Definition at line 204 of file epg.h.

Referenced by GetSchedulesRead(), and GetSchedulesWrite().


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