|
vdr
2.4.0
|
#include <epg.h>
Public Member Functions | |
| cSchedule (tChannelID ChannelID) | |
| tChannelID | ChannelID (void) const |
| bool | Modified (int &State) const |
| time_t | PresentSeen (void) const |
| bool | PresentSeenWithin (int Seconds) const |
| void | SetModified (void) |
| void | SetPresentSeen (void) |
| void | SetRunningStatus (cEvent *Event, int RunningStatus, const cChannel *Channel=NULL) |
| void | ClrRunningStatus (cChannel *Channel=NULL) |
| void | ResetVersions (void) |
| void | Sort (void) |
| void | DropOutdated (time_t SegmentStart, time_t SegmentEnd, uchar TableID, uchar Version) |
| void | Cleanup (time_t Time) |
| void | Cleanup (void) |
| void | IncNumTimers (void) const |
| void | DecNumTimers (void) const |
| bool | HasTimer (void) const |
| cEvent * | AddEvent (cEvent *Event) |
| void | DelEvent (cEvent *Event) |
| void | HashEvent (cEvent *Event) |
| void | UnhashEvent (cEvent *Event) |
| const cList< cEvent > * | Events (void) const |
| const cEvent * | GetPresentEvent (void) const |
| const cEvent * | GetFollowingEvent (void) const |
| const cEvent * | GetEvent (tEventID EventID, time_t StartTime=0) const |
| const cEvent * | GetEventAround (time_t Time) const |
| void | Dump (const cChannels *Channels, FILE *f, const char *Prefix="", eDumpMode DumpMode=dmAll, time_t AtTime=0) const |
Public Member Functions inherited from cListObject | |
| cListObject (void) | |
| virtual | ~cListObject () |
| virtual int | Compare (const cListObject &ListObject) const |
| void | Append (cListObject *Object) |
| void | Insert (cListObject *Object) |
| void | Unlink (void) |
| int | Index (void) const |
| cListObject * | Prev (void) const |
| cListObject * | Next (void) const |
Static Public Member Functions | |
| static bool | Read (FILE *f, cSchedules *Schedules) |
Private Attributes | |
| tChannelID | channelID |
| cList< cEvent > | events |
| cHash< cEvent > | eventsHashID |
| cHash< cEvent > | eventsHashStartTime |
| u_int16_t | numTimers |
| bool | hasRunning |
| int | modified |
| time_t | presentSeen |
Static Private Attributes | |
| static cMutex | numTimersMutex |
| cSchedule::cSchedule | ( | tChannelID | ChannelID | ) |
Definition at line 933 of file epg.c.
References cEvent::schedule.
Referenced by cEIT::cEIT(), and cEvent::Read().
|
inline |
| void cSchedule::Cleanup | ( | time_t | Time | ) |
Definition at line 1096 of file epg.c.
References cEvent::EndTime(), cSetup::EPGLinger, cEvent::HasTimer(), and Setup.
Referenced by cSVDRPServer::CmdCLRE().
| void cSchedule::ClrRunningStatus | ( | cChannel * | Channel = NULL | ) |
Definition at line 1035 of file epg.c.
References cListObject::Next(), SI::RunningStatusNotRunning, and SI::RunningStatusPausing.
Referenced by cEIT::cEIT().
| void cSchedule::DecNumTimers | ( | void | ) | const |
Definition at line 926 of file epg.c.
Referenced by cEvent::Aux().
| void cSchedule::DelEvent | ( | cEvent * | Event | ) |
Definition at line 941 of file epg.c.
References cEvent::schedule.
| void cSchedule::DropOutdated | ( | time_t | SegmentStart, |
| time_t | SegmentEnd, | ||
| uchar | TableID, | ||
| uchar | Version | ||
| ) |
Definition at line 1068 of file epg.c.
References cEvent::EndTime(), cListObject::Next(), cEvent::StartTime(), cEvent::TableID(), and cEvent::Version().
Referenced by cEpgHandlers::DropOutdated().
| void cSchedule::Dump | ( | const cChannels * | Channels, |
| FILE * | f, | ||
| const char * | Prefix = "", |
||
| eDumpMode | DumpMode = dmAll, |
||
| time_t | AtTime = 0 |
||
| ) | const |
Definition at line 1107 of file epg.c.
References dmAll, dmAtTime, dmFollowing, dmPresent, esyslog, and cChannels::GetByChannelID().
Referenced by cSVDRPServer::CmdLSTE(), and cEvent::HasTimer().
Definition at line 183 of file epg.h.
References dmAll.
Referenced by cTimer::SetEventFromSchedule().
Definition at line 993 of file epg.c.
Referenced by cEIT::cEIT(), and cEvent::Read().
| const cEvent * cSchedule::GetEventAround | ( | time_t | Time | ) | const |
Definition at line 1003 of file epg.c.
References cListObject::Next(), and cEvent::StartTime().
| const cEvent * cSchedule::GetFollowingEvent | ( | void | ) | const |
Definition at line 978 of file epg.c.
References cListObject::Next(), and cEvent::StartTime().
| const cEvent * cSchedule::GetPresentEvent | ( | void | ) | const |
Definition at line 963 of file epg.c.
References cListObject::Next(), SI::RunningStatusPausing, and RUNNINGSTATUSTIMEOUT.
| void cSchedule::HashEvent | ( | cEvent * | Event | ) |
Definition at line 949 of file epg.c.
References cEvent::EventID(), and cEvent::StartTime().
| void cSchedule::IncNumTimers | ( | void | ) | const |
Definition at line 919 of file epg.c.
Referenced by cEvent::Aux().
|
inline |
Definition at line 164 of file epg.h.
Referenced by cTimer::SetEvent(), and cTimer::SetEventFromSchedule().
|
inline |
Definition at line 166 of file epg.h.
Referenced by main(), and cTimer::Matches().
|
static |
Definition at line 1139 of file epg.c.
References cSchedules::AddSchedule(), esyslog, tChannelID::FromString(), cEvent::Read(), cReadLine::Read(), skipspace(), and tChannelID::Valid().
Referenced by cEvent::HasTimer(), and cSchedules::Read().
| void cSchedule::ResetVersions | ( | void | ) |
Definition at line 1048 of file epg.c.
References cListObject::Next().
|
inline |
Definition at line 167 of file epg.h.
Referenced by cEIT::cEIT().
|
inline |
Definition at line 168 of file epg.h.
Referenced by cEIT::cEIT().
| void cSchedule::SetRunningStatus | ( | cEvent * | Event, |
| int | RunningStatus, | ||
| const cChannel * | Channel = NULL |
||
| ) |
Definition at line 1017 of file epg.c.
References cListObject::Next(), SI::RunningStatusNotRunning, SI::RunningStatusPausing, and cEvent::StartTime().
Referenced by cEIT::cEIT(), and cEvent::HasTimer().
| void cSchedule::Sort | ( | void | ) |
Definition at line 1054 of file epg.c.
References cListObject::Next(), SI::RunningStatusNotRunning, and SI::RunningStatusPausing.
Referenced by cEpgHandlers::SortSchedule().
| void cSchedule::UnhashEvent | ( | cEvent * | Event | ) |
Definition at line 956 of file epg.c.
References cEvent::EventID(), and cEvent::StartTime().
|
private |
|
staticprivate |
Definition at line 152 of file epg.h.
Referenced by cEvent::FixEpgBugs().
1.8.11