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

#include <epg.h>

Public Member Functions

cScheduleAddSchedule (tChannelID ChannelID)
const cScheduleGetSchedule (tChannelID ChannelID) const
const cScheduleGetSchedule (const cChannel *Channel, bool AddIfMissing=false) const
cScheduleAddSchedule (tChannelID ChannelID)
const cScheduleGetSchedule (tChannelID ChannelID) const
const cScheduleGetSchedule (const cChannel *Channel, bool AddIfMissing=false) const
- Public Member Functions inherited from cList< cSchedule >
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) 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)

Static Public Member Functions

static void SetEpgDataFileName (const char *FileName)
static const cSchedulesSchedules (cSchedulesLock &SchedulesLock)
static time_t Modified (void)
static void SetModified (cSchedule *Schedule)
static void Cleanup (bool Force=false)
static void ResetVersions (void)
static bool ClearAll (void)
static bool Dump (FILE *f=NULL, const char *Prefix="", eDumpMode DumpMode=dmAll, time_t AtTime=0)
static bool Read (FILE *f=NULL)
static void SetEpgDataFileName (const char *FileName)
static const cSchedulesSchedules (cSchedulesLock &SchedulesLock)
static time_t Modified (void)
static void SetModified (cSchedule *Schedule)
static void Cleanup (bool Force=false)
static void ResetVersions (void)
static bool ClearAll (void)
static bool Dump (FILE *f=NULL, const char *Prefix="", eDumpMode DumpMode=dmAll, time_t AtTime=0)
static bool Read (FILE *f=NULL)

Private Attributes

cRwLock rwlock

Static Private Attributes

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

Friends

class cSchedule
class cSchedulesLock

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 189 of file epg.h.

Member Function Documentation

cSchedule * cSchedules::AddSchedule ( tChannelID  ChannelID)
cSchedule* cSchedules::AddSchedule ( tChannelID  ChannelID)
static void cSchedules::Cleanup ( bool  Force = false)
static
void cSchedules::Cleanup ( bool  Force = false)
static
static bool cSchedules::ClearAll ( void  )
static
bool cSchedules::ClearAll ( void  )
static

Definition at line 1242 of file epg.c.

References Cleanup(), cList< T >::First(), cList< T >::Next(), Schedules(), and Timers.

Referenced by cSVDRP::CmdCLRE().

static bool cSchedules::Dump ( FILE *  f = NULL,
const char *  Prefix = "",
eDumpMode  DumpMode = dmAll,
time_t  AtTime = 0 
)
static
bool cSchedules::Dump ( FILE *  f = NULL,
const char *  Prefix = "",
eDumpMode  DumpMode = dmAll,
time_t  AtTime = 0 
)
static
const cSchedule * cSchedules::GetSchedule ( tChannelID  ChannelID) const
const cSchedule* cSchedules::GetSchedule ( tChannelID  ChannelID) const
const cSchedule * cSchedules::GetSchedule ( const cChannel Channel,
bool  AddIfMissing = false 
) const
const cSchedule* cSchedules::GetSchedule ( const cChannel Channel,
bool  AddIfMissing = false 
) const
static time_t cSchedules::Modified ( void  )
inlinestatic

Definition at line 204 of file epg.h.

References modified.

Referenced by cTimers::SetEvents().

static time_t cSchedules::Modified ( void  )
inlinestatic

Definition at line 204 of file include/vdr/epg.h.

References modified.

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

Definition at line 1232 of file epg.c.

References cList< T >::First(), cList< T >::Next(), ResetVersions(), and Schedules().

Referenced by cMenuSetupEPG::ProcessKey(), and ResetVersions().

const cSchedules * cSchedules::Schedules ( cSchedulesLock SchedulesLock)
static
static const cSchedules* cSchedules::Schedules ( cSchedulesLock SchedulesLock)
static

Caller must provide a cSchedulesLock which has to survive the entire time the returned cSchedules is accessed.

Once the cSchedules is no longer used, the cSchedulesLock must be destroyed.

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

Definition at line 1204 of file epg.c.

References epgDataFileName.

Referenced by main().

void cSchedules::SetModified ( cSchedule Schedule)
static

Definition at line 1210 of file epg.c.

References modified, and cSchedule::SetModified().

Referenced by cEIT::cEIT(), and cSchedule::Read().

static void cSchedules::SetModified ( cSchedule Schedule)
static

Friends And Related Function Documentation

cSchedule
friend

Definition at line 190 of file epg.h.

Referenced by AddSchedule(), and GetSchedule().

Definition at line 191 of file epg.h.

Member Data Documentation

static char * cSchedules::epgDataFileName = NULL
staticprivate

Definition at line 195 of file epg.h.

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

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

Definition at line 196 of file epg.h.

Referenced by Cleanup().

static time_t cSchedules::modified = 0
staticprivate

Definition at line 197 of file epg.h.

Referenced by Modified(), and SetModified().

cRwLock cSchedules::rwlock
private

Definition at line 193 of file epg.h.

Referenced by cSchedulesLock::cSchedulesLock(), and cSchedulesLock::~cSchedulesLock().

static cSchedules cSchedules::schedules
staticprivate

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