vdr 2.6.3
|
#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 |
![]() | |
cList (const char *NeedsLocking=NULL) | |
const cSchedule * | Get (int Index) const |
cSchedule * | Get (int Index) |
const cSchedule * | First (void) const |
cSchedule * | First (void) |
const cSchedule * | Last (void) const |
cSchedule * | Last (void) |
const cSchedule * | Prev (const cSchedule *Object) const |
cSchedule * | Prev (const cSchedule *Object) |
const cSchedule * | Next (const cSchedule *Object) const |
cSchedule * | Next (const cSchedule *Object) |
![]() | |
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 | |
![]() | |
cListBase (const char *NeedsLocking=NULL) | |
![]() | |
cListObject * | objects |
cListObject * | lastObject |
int | count |
cStateLock | stateLock |
const char * | needsLocking |
bool | useGarbageCollector |
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().
|
static |
Definition at line 1286 of file epg.c.
References cThread::Active(), EPGDATAWRITEDELTA, EpgDataWriter, lastDump, cEpgDataWriter::Perform(), and cThread::Start().
Referenced by cSVDRPServer::CmdPUTE(), main(), and cPUTEhandler::Process().
|
static |
Definition at line 1307 of file epg.c.
References cSafeFile::Close(), epgDataFileName, LOCK_CHANNELS_READ, LOCK_SCHEDULES_READ, LOG_ERROR, cListObject::Next(), and cSafeFile::Open().
Referenced by cEpgDataWriter::Perform().
const cSchedule * cSchedules::GetSchedule | ( | const cChannel * | Channel, |
bool | AddIfMissing = false |
||
) | const |
Definition at line 1384 of file epg.c.
References cSchedule, cChannel::GetChannelID(), GetSchedule(), tChannelID::InvalidID, and cChannel::schedule.
const cSchedule * cSchedules::GetSchedule | ( | tChannelID | ChannelID | ) | const |
Definition at line 1374 of file epg.c.
References tChannelID::ClrRid(), 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 1269 of file epg.c.
References cListBase::Lock(), 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 1274 of file epg.c.
References cListBase::Lock(), and schedules.
Referenced by cEIT::cEIT(), and cEpgDataWriter::Perform().
|
static |
Definition at line 1331 of file epg.c.
References 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 1300 of file epg.c.
References LOCK_SCHEDULES_WRITE, and cListObject::Next().
Referenced by cMenuSetupEPG::ProcessKey().
|
static |
Definition at line 1279 of file epg.c.
References epgDataFileName, EpgDataWriter, and cEpgDataWriter::SetDump().
Referenced by main().
|
friend |
Definition at line 202 of file epg.h.
Referenced by AddSchedule(), and GetSchedule().
|
staticprivate |
Definition at line 205 of file epg.h.
Referenced by Dump(), Read(), and SetEpgDataFileName().
|
staticprivate |
|
staticprivate |
Definition at line 204 of file epg.h.
Referenced by GetSchedulesRead(), and GetSchedulesWrite().