vdr 2.6.1
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
 
 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)
 
 cList (const char *NeedsLocking=NULL)
 
const cScheduleGet (int Index) const
 
cScheduleGet (int Index)
 
const cScheduleGet (int Index) const
 
cScheduleGet (int Index)
 
const cScheduleFirst (void) const
 
cScheduleFirst (void)
 
const cScheduleFirst (void) const
 
cScheduleFirst (void)
 
const cScheduleLast (void) const
 
cScheduleLast (void)
 
const cScheduleLast (void) const
 
cScheduleLast (void)
 
const cSchedulePrev (const cSchedule *Object) const
 
cSchedulePrev (const cSchedule *Object)
 
const cSchedulePrev (const cSchedule *Object) const
 
cSchedulePrev (const cSchedule *Object)
 
const cScheduleNext (const cSchedule *Object) const
 
cScheduleNext (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)
 
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 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)
 
 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() [1/2]

cSchedules::cSchedules ( void  )

Definition at line 1264 of file epg.c.

◆ cSchedules() [2/2]

cSchedules::cSchedules ( void  )

Member Function Documentation

◆ AddSchedule() [1/2]

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().

◆ AddSchedule() [2/2]

cSchedule * cSchedules::AddSchedule ( tChannelID  ChannelID)

◆ Cleanup() [1/2]

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

◆ Cleanup() [2/2]

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

◆ Dump() [1/2]

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

◆ Dump() [2/2]

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

◆ GetSchedule() [1/4]

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

◆ GetSchedule() [2/4]

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

◆ GetSchedule() [3/4]

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

◆ GetSchedule() [4/4]

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

◆ GetSchedulesRead() [1/2]

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().

◆ GetSchedulesRead() [2/2]

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

Gets the list of schedules for read access.

See cTimers::GetTimersRead() for details.

◆ GetSchedulesWrite() [1/2]

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().

◆ GetSchedulesWrite() [2/2]

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

Gets the list of schedules for write access.

See cTimers::GetTimersWrite() for details.

◆ Read() [1/2]

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

◆ Read() [2/2]

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

◆ ResetVersions() [1/2]

void cSchedules::ResetVersions ( void  )
static

Definition at line 1300 of file epg.c.

References LOCK_SCHEDULES_WRITE, and cListObject::Next().

Referenced by cMenuSetupEPG::ProcessKey().

◆ ResetVersions() [2/2]

static void cSchedules::ResetVersions ( void  )
static

◆ SetEpgDataFileName() [1/2]

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

Definition at line 1279 of file epg.c.

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

Referenced by main().

◆ SetEpgDataFileName() [2/2]

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

Friends And Related Function Documentation

◆ cSchedule

cSchedule
friend

Definition at line 202 of file epg.h.

Referenced by AddSchedule(), and GetSchedule().

Member Data Documentation

◆ epgDataFileName

static char * cSchedules::epgDataFileName = NULL
staticprivate

Definition at line 205 of file epg.h.

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

◆ lastDump

static time_t cSchedules::lastDump = time(NULL)
staticprivate

Definition at line 206 of file epg.h.

Referenced by Cleanup().

◆ schedules

static 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: