vdr
1.7.31
|
#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 * | 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 * | 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) 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) |
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 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) |
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) | |
cListBase (void) | |
![]() | |
cListObject * | objects |
cListObject * | lastObject |
int | count |
cSchedule * cSchedules::AddSchedule | ( | tChannelID | ChannelID | ) |
Definition at line 1313 of file epg.c.
References cListBase::Add(), Channels, tChannelID::ClrRid(), cSchedule, cChannels::GetByChannelID(), GetSchedule(), and cChannel::schedule.
Referenced by cSchedule::Read().
cSchedule* cSchedules::AddSchedule | ( | tChannelID | ChannelID | ) |
|
static |
|
static |
Definition at line 1216 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 |
|
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 |
|
static |
Definition at line 1256 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 1327 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 | ( | tChannelID | ChannelID | ) | const |
const cSchedule * cSchedules::GetSchedule | ( | const cChannel * | Channel, |
bool | AddIfMissing = false |
||
) | const |
Definition at line 1337 of file epg.c.
References cSchedule, cChannel::GetChannelID(), GetSchedule(), tChannelID::InvalidID, and cChannel::schedule.
const cSchedule* cSchedules::GetSchedule | ( | const cChannel * | Channel, |
bool | AddIfMissing = false |
||
) | const |
|
inlinestatic |
|
inlinestatic |
Definition at line 204 of file include/vdr/epg.h.
References modified.
|
static |
Definition at line 1283 of file epg.c.
References Channels, dsyslog, epgDataFileName, cList< T >::First(), GetSchedule(), LOG_ERROR, cList< T >::Next(), and Schedules().
Referenced by cEpgDataReader::Action(), cSVDRP::CmdPUTE(), and cPUTEhandler::Process().
|
static |
|
static |
|
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().
|
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 1199 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 |
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 |
|
static |
|
static |
Definition at line 1210 of file epg.c.
References modified, and cSchedule::SetModified().
Referenced by cEIT::cEIT(), and cSchedule::Read().
|
static |
|
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().