vdr 2.7.6
|
#include <epg.h>
Public Member Functions | |
cSchedules (void) | |
cSchedule * | AddSchedule (tChannelID ChannelID) |
const cSchedule * | GetSchedule (tChannelID ChannelID) const |
const cSchedule * | GetSchedule (const cChannel *Channel, bool AddIfMissing=false) const |
Public Member Functions inherited from cList< cSchedule > | |
cList (const char *NeedsLocking=NULL) | |
const cSchedule * | Get (int Index) const |
const cSchedule * | First (void) const |
const cSchedule * | Last (void) const |
const cSchedule * | Prev (const cSchedule *Object) const |
const cSchedule * | Next (const cSchedule *Object) const |
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 cListObject * | Get (int Index) const |
cListObject * | Get (int Index) |
int | Count (void) const |
void | Sort (void) |
Static Public Member Functions | |
static const cSchedules * | GetSchedulesRead (cStateKey &StateKey, int TimeoutMs=0) |
static cSchedules * | GetSchedulesWrite (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 | |
cListObject * | objects |
cListObject * | lastObject |
int | count |
cStateLock | stateLock |
const char * | needsLocking |
bool | useGarbageCollector |
cSchedules::cSchedules | ( | void | ) |
Definition at line 1271 of file epg.c.
References cList< cSchedule >::cList(), and cSchedule.
Referenced by GetSchedule(), GetSchedulesRead(), and GetSchedulesWrite().
cSchedule * cSchedules::AddSchedule | ( | tChannelID | ChannelID | ) |
Definition at line 1370 of file epg.c.
References cListBase::Add(), tChannelID::ClrRid(), cSchedule, and GetSchedule().
Referenced by cSchedule::Read().
|
static |
Definition at line 1293 of file epg.c.
References EPGDATAWRITEDELTA, EpgDataWriter, and lastDump.
Referenced by cSVDRPServer::CmdPUTE(), main(), and cPUTEhandler::Process().
|
static |
Definition at line 1314 of file epg.c.
References cSafeFile::Close(), cSchedule, epgDataFileName, LOCK_CHANNELS_READ, LOCK_SCHEDULES_READ, LOG_ERROR, and cSafeFile::Open().
Referenced by cEpgDataWriter::Perform().
const cSchedule * cSchedules::GetSchedule | ( | const cChannel * | Channel, |
bool | AddIfMissing = false ) const |
Definition at line 1391 of file epg.c.
References cSchedule, cSchedules(), cChannel::GetChannelID(), GetSchedule(), tChannelID::InvalidID, and cChannel::schedule.
const cSchedule * cSchedules::GetSchedule | ( | tChannelID | ChannelID | ) | const |
Definition at line 1381 of file epg.c.
References tChannelID::ClrRid(), cSchedule, cList< cSchedule >::First(), and cList< cSchedule >::Next().
Referenced by AddSchedule(), cEIT::cEIT(), cMenuWhatsOn::cMenuWhatsOn(), GetSchedule(), cMenuSchedule::PrepareScheduleAllAll(), cMenuSchedule::PrepareScheduleAllThis(), cMenuSchedule::PrepareScheduleThisAll(), cMenuSchedule::PrepareScheduleThisThis(), cTimer::SetEventFromSchedule(), and cTimer::SpawnPatternTimers().
|
static |
Gets the list of schedules for read access.
See cTimers::GetTimersRead() for details.
Definition at line 1276 of file epg.c.
References cSchedules(), and schedules.
Referenced by cRecordControl::cRecordControl(), main(), and cMenuSchedule::Set().
|
static |
Gets the list of schedules for write access.
See cTimers::GetTimersWrite() for details.
Definition at line 1281 of file epg.c.
References cSchedules(), and schedules.
Referenced by cEIT::cEIT(), and cEpgDataWriter::Perform().
|
static |
Definition at line 1338 of file epg.c.
References cSchedule, dsyslog, epgDataFileName, LOCK_CHANNELS_WRITE, LOCK_SCHEDULES_WRITE, LOG_ERROR, cListObject::Next(), and cSchedule::Read().
Referenced by cEpgDataReader::Action(), cSVDRPServer::CmdPUTE(), and cPUTEhandler::Process().
|
static |
Definition at line 1307 of file epg.c.
References cSchedule, and LOCK_SCHEDULES_WRITE.
Referenced by cMenuSetupEPG::ProcessKey().
|
static |
Definition at line 1286 of file epg.c.
References epgDataFileName, and EpgDataWriter.
Referenced by main().
|
friend |
Definition at line 197 of file epg.h.
References cSchedule.
Referenced by AddSchedule(), cSchedule, cSchedules(), Dump(), GetSchedule(), GetSchedule(), Read(), and ResetVersions().
|
staticprivate |
Definition at line 200 of file epg.h.
Referenced by Dump(), Read(), and SetEpgDataFileName().
|
staticprivate |
|
staticprivate |
Definition at line 199 of file epg.h.
Referenced by GetSchedulesRead(), and GetSchedulesWrite().