vdr 2.7.3
|
#include <epg.h>
Public Member Functions | |
cSchedule (tChannelID ChannelID) | |
tChannelID | ChannelID (void) const |
bool | Modified (int &State) const |
bool | OnActualTp (uchar TableId) |
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 * | GetEventById (tEventID EventID) const |
const cEvent * | GetEventByTime (time_t StartTime) 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 |
![]() | |
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 | onActualTp |
int | modified |
time_t | presentSeen |
Static Private Attributes | |
static cMutex | numTimersMutex |
cSchedule::cSchedule | ( | tChannelID | ChannelID | ) |
Definition at line 929 of file epg.c.
References ChannelID(), channelID, events, modified, numTimers, onActualTp, and presentSeen.
Referenced by Read().
Definition at line 960 of file epg.c.
References events, HashEvent(), and cEvent::schedule.
Referenced by cEIT::cEIT().
|
inline |
void cSchedule::Cleanup | ( | time_t | Time | ) |
Definition at line 1153 of file epg.c.
References DelEvent(), cEvent::EndTime(), EPG_LINGER_TIME, events, and cEvent::HasTimer().
Referenced by cSVDRPServer::CmdCLRE().
void cSchedule::Cleanup | ( | void | ) |
void cSchedule::ClrRunningStatus | ( | cChannel * | Channel = NULL | ) |
Definition at line 1086 of file epg.c.
References events, SI::RunningStatusNotRunning, SI::RunningStatusPausing, and SetModified().
Referenced by cEIT::cEIT().
void cSchedule::DecNumTimers | ( | void | ) | const |
Definition at line 946 of file epg.c.
References numTimers, and numTimersMutex.
void cSchedule::DelEvent | ( | cEvent * | Event | ) |
Definition at line 968 of file epg.c.
References events, cEvent::numTimers, numTimers, cEvent::numTimersMutex, numTimersMutex, cEvent::schedule, and UnhashEvent().
Referenced by Cleanup(), and DropOutdated().
void cSchedule::DropOutdated | ( | time_t | SegmentStart, |
time_t | SegmentEnd, | ||
uchar | TableID, | ||
uchar | Version ) |
Definition at line 1109 of file epg.c.
References DelEvent(), events, SI::RunningStatusNotRunning, SI::RunningStatusPausing, 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 1164 of file epg.c.
References channelID, dmAll, dmAtTime, dmFollowing, dmPresent, cEvent::Dump(), esyslog, events, cChannels::GetByChannelID(), GetEventAround(), GetFollowingEvent(), and GetPresentEvent().
Referenced by cSVDRPServer::CmdLSTE().
Definition at line 186 of file epg.h.
References events.
Referenced by cTimer::Expired(), cTimer::SetEventFromSchedule(), and cTimer::SpawnPatternTimers().
const cEvent * cSchedule::GetEventAround | ( | time_t | Time | ) | const |
const cEvent * cSchedule::GetEventByTime | ( | time_t | StartTime | ) | const |
const cEvent * cSchedule::GetFollowingEvent | ( | void | ) | const |
Definition at line 1018 of file epg.c.
References events, GetPresentEvent(), and cEvent::StartTime().
Referenced by Dump().
const cEvent * cSchedule::GetPresentEvent | ( | void | ) | const |
Definition at line 1003 of file epg.c.
References events, SI::RunningStatusPausing, and RUNNINGSTATUSTIMEOUT.
Referenced by Dump(), and GetFollowingEvent().
void cSchedule::HashEvent | ( | cEvent * | Event | ) |
Definition at line 984 of file epg.c.
References cEvent::EventID(), eventsHashID, eventsHashStartTime, and cEvent::StartTime().
Referenced by AddEvent().
|
inline |
void cSchedule::IncNumTimers | ( | void | ) | const |
Definition at line 939 of file epg.c.
References numTimers, and numTimersMutex.
|
inline |
Definition at line 166 of file epg.h.
References modified.
Referenced by cTimer::SetEventFromSchedule(), and cTimer::SpawnPatternTimers().
bool cSchedule::OnActualTp | ( | uchar | TableId | ) |
|
inline |
Definition at line 168 of file epg.h.
References presentSeen.
|
inline |
|
static |
Definition at line 1196 of file epg.c.
References cSchedules::AddSchedule(), channelID, cSchedule(), esyslog, tChannelID::FromString(), cEvent::Read(), cReadLine::Read(), and skipspace().
Referenced by cSchedules::Read().
|
inline |
Definition at line 170 of file epg.h.
References modified.
Referenced by ClrRunningStatus(), and Sort().
|
inline |
Definition at line 171 of file epg.h.
References presentSeen.
Referenced by cEIT::cEIT(), and SetRunningStatus().
void cSchedule::SetRunningStatus | ( | cEvent * | Event, |
int | RunningStatus, | ||
const cChannel * | Channel = NULL ) |
Definition at line 1071 of file epg.c.
References events, SI::RunningStatusNotRunning, SI::RunningStatusPausing, SetPresentSeen(), and cEvent::StartTime().
Referenced by cEIT::cEIT().
void cSchedule::Sort | ( | void | ) |
Definition at line 1103 of file epg.c.
References events, and SetModified().
Referenced by cEpgHandlers::SortSchedule().
void cSchedule::UnhashEvent | ( | cEvent * | Event | ) |
Definition at line 996 of file epg.c.
References cEvent::EventID(), eventsHashID, eventsHashStartTime, and cEvent::StartTime().
Referenced by DelEvent().
|
private |
Definition at line 155 of file epg.h.
Referenced by ChannelID(), cSchedule(), Dump(), and Read().
Definition at line 156 of file epg.h.
Referenced by AddEvent(), Cleanup(), ClrRunningStatus(), cSchedule(), DelEvent(), DropOutdated(), Dump(), Events(), GetEventAround(), GetFollowingEvent(), GetPresentEvent(), ResetVersions(), SetRunningStatus(), and Sort().
Definition at line 157 of file epg.h.
Referenced by GetEventById(), HashEvent(), and UnhashEvent().
Definition at line 158 of file epg.h.
Referenced by GetEventByTime(), HashEvent(), and UnhashEvent().
|
private |
Definition at line 161 of file epg.h.
Referenced by cSchedule(), Modified(), and SetModified().
|
mutableprivate |
Definition at line 159 of file epg.h.
Referenced by cSchedule(), DecNumTimers(), DelEvent(), HasTimer(), and IncNumTimers().
|
staticprivate |
Definition at line 154 of file epg.h.
Referenced by DecNumTimers(), DelEvent(), and IncNumTimers().
|
private |
Definition at line 160 of file epg.h.
Referenced by cSchedule(), and OnActualTp().
|
private |
Definition at line 162 of file epg.h.
Referenced by cSchedule(), PresentSeen(), PresentSeenWithin(), and SetPresentSeen().