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 Channels, tChannelID::ClrRid(), cChannels::GetByChannelID(), and cChannel::schedule.
Referenced by cSchedule::Read().
|
static |
Definition at line 1219 of file epg.c.
References cThread::Active(), EPGDATAWRITEDELTA, 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(), and Timers.
Referenced by cSVDRP::CmdCLRE().
|
static |
Definition at line 1257 of file epg.c.
References cSafeFile::Close(), cList< T >::First(), LOG_ERROR, cList< T >::Next(), and cSafeFile::Open().
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().
Referenced by cEIT::cEIT(), cSVDRP::CmdLSTE(), cMenuWhatsOn::cMenuWhatsOn(), cDisplayChannel::DisplayInfo(), cRecordControl::GetEvent(), 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 cChannel::GetChannelID(), tChannelID::InvalidID, and cChannel::schedule.
|
inlinestatic |
|
static |
Definition at line 1284 of file epg.c.
References Channels, dsyslog, cList< T >::First(), GetSchedule(), LOG_ERROR, cList< T >::Next(), and cSchedule::Read().
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(), and ResetVersions().
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().
Referenced by cSVDRP::CmdCLRE(), cSVDRP::CmdLSTE(), cMenuSchedule::cMenuSchedule(), cRecordControl::cRecordControl(), cTimer::cTimer(), cDisplayChannel::DisplayInfo(), cSkinLCARSDisplayMenu::DrawLive(), cRecordControl::GetEvent(), main(), cEpgDataWriter::Perform(), cEitFilter::Process(), cMenuChannelItem::Set(), cTimer::SetEventFromSchedule(), cTimers::SetEvents(), and SetTrackDescriptions().
|
static |
|
static |
Definition at line 1213 of file epg.c.
References cSchedule::SetModified().
Referenced by cEIT::cEIT(), and cSchedule::Read().
|
friend |
|
staticprivate |
Definition at line 195 of file epg.h.
Referenced by cSchedulesLock::~cSchedulesLock().
|
staticprivate |
Definition at line 196 of file epg.h.
Referenced by cSchedulesLock::~cSchedulesLock().
|
staticprivate |
Definition at line 197 of file epg.h.
Referenced by cSchedulesLock::~cSchedulesLock().
|
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(), and cSchedulesLock::~cSchedulesLock().