vdr
2.0.2
|
#include <epg.h>
Public Member Functions | |
cSchedule * | AddSchedule (tChannelID ChannelID) |
const cSchedule * | GetSchedule (tChannelID ChannelID) const |
const cSchedule * | GetSchedule (const cChannel *Channel, bool AddIfMissing=false) const |
![]() | |
cSchedule * | Get (int Index) const |
cSchedule * | First (void) const |
cSchedule * | Last (void) const |
cSchedule * | Prev (const cSchedule *object) const |
cSchedule * | Next (const cSchedule *object) const |
![]() | |
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) |
cListObject * | Get (int Index) const |
int | Count (void) const |
void | Sort (void) |
Static Public Member Functions | |
static void | SetEpgDataFileName (const char *FileName) |
static const cSchedules * | Schedules (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 | |
![]() | |
cListBase (void) | |
![]() | |
cListObject * | objects |
cListObject * | lastObject |
int | count |
cSchedule * cSchedules::AddSchedule | ( | tChannelID | ChannelID | ) |
Definition at line 1311 of file epg.c.
References cListBase::Add(), Channels, tChannelID::ClrRid(), cSchedule, cChannels::GetByChannelID(), GetSchedule(), and cChannel::schedule.
Referenced by cSchedule::Read().
|
static |
Definition at line 1214 of file epg.c.
References cThread::Active(), epgDataFileName, EPGDATAWRITEDELTA, lastDump, cEpgDataWriter::Perform(), and cThread::Start().
Referenced by ClearAll(), cSVDRP::CmdPUTE(), main(), and cPUTEhandler::Process().
|
static |
Definition at line 1240 of file epg.c.
References Cleanup(), cList< T >::First(), cList< T >::Next(), Schedules(), and Timers.
Referenced by cSVDRP::CmdCLRE().
|
static |
Definition at line 1254 of file epg.c.
References cSafeFile::Close(), epgDataFileName, cList< T >::First(), LOG_ERROR, cList< T >::Next(), cSafeFile::Open(), and Schedules().
Referenced by cSVDRP::CmdLSTE(), and cEpgDataWriter::Perform().
const cSchedule * cSchedules::GetSchedule | ( | tChannelID | ChannelID | ) | const |
Definition at line 1325 of file epg.c.
References tChannelID::ClrRid(), cList< cSchedule >::First(), and cList< cSchedule >::Next().
Referenced by AddSchedule(), cEIT::cEIT(), cSVDRP::CmdLSTE(), cMenuWhatsOn::cMenuWhatsOn(), cDisplayChannel::DisplayInfo(), cRecordControl::GetEvent(), GetSchedule(), main(), cMenuSchedule::PrepareScheduleAllAll(), cMenuSchedule::PrepareScheduleAllThis(), cMenuSchedule::PrepareScheduleThisAll(), cMenuSchedule::PrepareScheduleThisThis(), Read(), cMenuChannelItem::Set(), cTimer::SetEventFromSchedule(), and SetTrackDescriptions().
const cSchedule * cSchedules::GetSchedule | ( | const cChannel * | Channel, |
bool | AddIfMissing = false |
||
) | const |
Definition at line 1335 of file epg.c.
References cSchedule, cChannel::GetChannelID(), GetSchedule(), tChannelID::InvalidID, and cChannel::schedule.
|
inlinestatic |
|
static |
Definition at line 1281 of file epg.c.
References Channels, dsyslog, epgDataFileName, cList< T >::First(), GetSchedule(), LOG_ERROR, cList< T >::Next(), cSchedule::Read(), and Schedules().
Referenced by cEpgDataReader::Action(), cSVDRP::CmdPUTE(), and cPUTEhandler::Process().
|
static |
Definition at line 1230 of file epg.c.
References cList< T >::First(), cList< T >::Next(), ResetVersions(), and Schedules().
Referenced by cMenuSetupEPG::ProcessKey(), and ResetVersions().
|
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.
Definition at line 1197 of file epg.c.
References cSchedulesLock::Locked(), and schedules.
Referenced by ClearAll(), cSVDRP::CmdCLRE(), cSVDRP::CmdLSTE(), cMenuSchedule::cMenuSchedule(), cRecordControl::cRecordControl(), cTimer::cTimer(), cDisplayChannel::DisplayInfo(), cSkinLCARSDisplayMenu::DrawLive(), Dump(), cRecordControl::GetEvent(), main(), cEpgDataWriter::Perform(), cEitFilter::Process(), Read(), ResetVersions(), cMenuChannelItem::Set(), cTimer::SetEventFromSchedule(), cTimers::SetEvents(), and SetTrackDescriptions().
|
static |
|
static |
Definition at line 1208 of file epg.c.
References modified, and cSchedule::SetModified().
Referenced by cEIT::cEIT(), and cSchedule::Read().
|
friend |
Definition at line 190 of file epg.h.
Referenced by AddSchedule(), and GetSchedule().
|
friend |
|
staticprivate |
|
staticprivate |
|
staticprivate |
Definition at line 197 of file epg.h.
Referenced by Modified(), and SetModified().
|
private |
Definition at line 193 of file epg.h.
Referenced by cSchedulesLock::cSchedulesLock(), and cSchedulesLock::~cSchedulesLock().
|
staticprivate |
Definition at line 194 of file epg.h.
Referenced by cSchedulesLock::cSchedulesLock(), Schedules(), and cSchedulesLock::~cSchedulesLock().