vdr
2.2.0
|
#include <epg.h>
Public Member Functions | |
cSchedule (tChannelID ChannelID) | |
tChannelID | ChannelID (void) const |
time_t | Modified (void) const |
time_t | PresentSeen (void) const |
bool | PresentSeenWithin (int Seconds) const |
void | SetModified (void) |
void | SetPresentSeen (void) |
void | SetRunningStatus (cEvent *Event, int RunningStatus, 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) |
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 (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 |
bool | hasRunning |
time_t | modified |
time_t | presentSeen |
cSchedule::cSchedule | ( | tChannelID | ChannelID | ) |
Definition at line 889 of file epg.c.
References cEvent::schedule.
Referenced by cEIT::cEIT(), and cEvent::Read().
|
inline |
void cSchedule::Cleanup | ( | time_t | Time | ) |
Definition at line 1056 of file epg.c.
References cEvent::EndTime(), cSetup::EPGLinger, cEvent::HasTimer(), and Setup.
Referenced by cSVDRP::CmdCLRE().
void cSchedule::ClrRunningStatus | ( | cChannel * | Channel = NULL | ) |
Definition at line 992 of file epg.c.
References cListObject::Next(), SI::RunningStatusNotRunning, and SI::RunningStatusPausing.
Referenced by cEIT::cEIT().
void cSchedule::DelEvent | ( | cEvent * | Event | ) |
Definition at line 897 of file epg.c.
References cEvent::IsRunning(), and cEvent::schedule.
void cSchedule::DropOutdated | ( | time_t | SegmentStart, |
time_t | SegmentEnd, | ||
uchar | TableID, | ||
uchar | Version | ||
) |
Definition at line 1024 of file epg.c.
References cListObject::Next().
Referenced by cEpgHandlers::DropOutdated().
void cSchedule::Dump | ( | FILE * | f, |
const char * | Prefix = "" , |
||
eDumpMode | DumpMode = dmAll , |
||
time_t | AtTime = 0 |
||
) | const |
Definition at line 1067 of file epg.c.
References Channels, dmAll, dmAtTime, dmFollowing, dmPresent, esyslog, cChannels::GetByChannelID(), cChannel::GetChannelID(), cChannel::Name(), and tChannelID::ToString().
Referenced by cSVDRP::CmdLSTE(), and cEvent::SeenWithin().
Definition at line 171 of file epg.h.
References dmAll.
Referenced by cMenuSchedule::PrepareScheduleAllAll(), cMenuSchedule::PrepareScheduleAllThis(), cMenuSchedule::PrepareScheduleThisAll(), cMenuSchedule::PrepareScheduleThisThis(), and cTimer::SetEventFromSchedule().
Definition at line 951 of file epg.c.
Referenced by cEIT::cEIT(), and cEvent::Read().
const cEvent * cSchedule::GetEventAround | ( | time_t | Time | ) | const |
Definition at line 961 of file epg.c.
References cListObject::Next(), and cEvent::StartTime().
Referenced by cRecordControl::GetEvent().
const cEvent * cSchedule::GetFollowingEvent | ( | void | ) | const |
Definition at line 936 of file epg.c.
References cListObject::Next(), and cEvent::StartTime().
Referenced by cMenuWhatsOn::cMenuWhatsOn(), and cDisplayChannel::DisplayInfo().
const cEvent * cSchedule::GetPresentEvent | ( | void | ) | const |
Definition at line 921 of file epg.c.
References cListObject::Next(), SI::RunningStatusPausing, and RUNNINGSTATUSTIMEOUT.
Referenced by cMenuWhatsOn::cMenuWhatsOn(), cDisplayChannel::DisplayInfo(), cMenuSchedule::PrepareScheduleAllThis(), cMenuChannelItem::Set(), and SetTrackDescriptions().
void cSchedule::HashEvent | ( | cEvent * | Event | ) |
Definition at line 907 of file epg.c.
References cEvent::EventID(), and cEvent::StartTime().
|
inline |
Definition at line 155 of file epg.h.
Referenced by cTimer::SetEventFromSchedule().
|
inline |
Definition at line 157 of file epg.h.
Referenced by main(), and cTimer::Matches().
|
static |
Definition at line 1100 of file epg.c.
References cSchedules::AddSchedule(), esyslog, tChannelID::FromString(), cEvent::Read(), cReadLine::Read(), cSchedules::SetModified(), skipspace(), Sort(), and tChannelID::Valid().
Referenced by cSchedules::Read(), and cEvent::SeenWithin().
void cSchedule::ResetVersions | ( | void | ) |
Definition at line 1005 of file epg.c.
References cListObject::Next().
|
inline |
Definition at line 158 of file epg.h.
Referenced by cSchedules::SetModified().
|
inline |
Definition at line 159 of file epg.h.
Referenced by cEIT::cEIT().
Definition at line 975 of file epg.c.
References cListObject::Next(), SI::RunningStatusNotRunning, SI::RunningStatusPausing, and cEvent::StartTime().
Referenced by cEIT::cEIT(), and cEvent::SeenWithin().
void cSchedule::Sort | ( | void | ) |
Definition at line 1011 of file epg.c.
References cListObject::Next(), SI::RunningStatusNotRunning, and SI::RunningStatusPausing.
Referenced by Read(), and cEpgHandlers::SortSchedule().
void cSchedule::UnhashEvent | ( | cEvent * | Event | ) |
Definition at line 914 of file epg.c.
References cEvent::EventID(), and cEvent::StartTime().
|
private |