vdr 2.7.3
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 200 of file epg.h.

Constructor & Destructor Documentation

◆ cSchedules()

cSchedules::cSchedules ( void )

Definition at line 1283 of file epg.c.

References cList< cSchedule >::cList(), and cSchedule.

Referenced by GetSchedule(), GetSchedulesRead(), and GetSchedulesWrite().

Member Function Documentation

◆ AddSchedule()

cSchedule * cSchedules::AddSchedule ( tChannelID ChannelID)

Definition at line 1382 of file epg.c.

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

Referenced by cSchedule::Read().

◆ Cleanup()

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

Definition at line 1305 of file epg.c.

References EPGDATAWRITEDELTA, EpgDataWriter, and lastDump.

Referenced by cSVDRPServer::CmdPUTE(), main(), and cPUTEhandler::Process().

◆ 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]

◆ 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 1288 of file epg.c.

References cSchedules(), 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 1293 of file epg.c.

References cSchedules(), 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 1319 of file epg.c.

References cSchedule, and LOCK_SCHEDULES_WRITE.

Referenced by cMenuSetupEPG::ProcessKey().

◆ SetEpgDataFileName()

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

Definition at line 1298 of file epg.c.

References epgDataFileName, and EpgDataWriter.

Referenced by main().

Friends And Related Symbol Documentation

◆ cSchedule

friend class cSchedule
friend

Definition at line 201 of file epg.h.

References cSchedule.

Referenced by AddSchedule(), cSchedule, cSchedules(), Dump(), GetSchedule(), GetSchedule(), Read(), and ResetVersions().

Member Data Documentation

◆ epgDataFileName

char * cSchedules::epgDataFileName = NULL
staticprivate

Definition at line 204 of file epg.h.

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

◆ lastDump

time_t cSchedules::lastDump = time(NULL)
staticprivate

Definition at line 205 of file epg.h.

Referenced by Cleanup().

◆ schedules

cSchedules cSchedules::schedules
staticprivate

Definition at line 203 of file epg.h.

Referenced by GetSchedulesRead(), and GetSchedulesWrite().


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