vdr
2.2.0
|
#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 1314 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 1219 of file epg.c.
References cThread::Active(), EPGDATAWRITEDELTA, lastDump, cEpgDataWriter::Perform(), and cThread::Start().
Referenced by ClearAll(), cSVDRP::CmdPUTE(), main(), and cPUTEhandler::Process().
|
static |
Definition at line 1243 of file epg.c.
References Cleanup(), cList< T >::First(), cList< T >::Next(), Schedules(), and Timers.
Referenced by cSVDRP::CmdCLRE().
|
static |
Definition at line 1257 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 1328 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 1338 of file epg.c.
References cSchedule, cChannel::GetChannelID(), GetSchedule(), tChannelID::InvalidID, and cChannel::schedule.
|
inlinestatic |
|
static |
Definition at line 1284 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 1233 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 1201 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 |
Definition at line 1206 of file epg.c.
References epgDataFileName, and cEpgDataWriter::SetDump().
Referenced by main().
|
static |
Definition at line 1213 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 |
Definition at line 195 of file epg.h.
Referenced by Dump(), Read(), and SetEpgDataFileName().
|
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().