vdr
1.7.27
|
#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 |
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 |
Static Public Member Functions | |
static bool | Read (FILE *f, cSchedules *Schedules) |
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 855 of file epg.c.
References channelID, ChannelID(), hasRunning, modified, and presentSeen.
cSchedule::cSchedule | ( | tChannelID | ChannelID | ) |
cEvent * cSchedule::AddEvent | ( | cEvent * | Event | ) |
Definition at line 863 of file epg.c.
References cListBase::Add(), events, HashEvent(), and cEvent::schedule.
Referenced by cEIT::cEIT(), and cEvent::Read().
cEvent* cSchedule::AddEvent | ( | cEvent * | Event | ) |
tChannelID cSchedule::ChannelID | ( | void | ) | const [inline] |
Definition at line 154 of file epg.h.
References channelID.
Referenced by cEvent::ChannelID(), and cSchedule().
tChannelID cSchedule::ChannelID | ( | void | ) | const [inline] |
Definition at line 154 of file include/vdr/epg.h.
References channelID.
void cSchedule::Cleanup | ( | time_t | Time | ) |
void cSchedule::Cleanup | ( | time_t | Time | ) |
Definition at line 1030 of file epg.c.
References DelEvent(), cEvent::EndTime(), cSetup::EPGLinger, events, cList< T >::First(), cEvent::HasTimer(), and Setup.
Referenced by cSVDRP::CmdCLRE().
void cSchedule::Cleanup | ( | void | ) |
void cSchedule::Cleanup | ( | void | ) |
void cSchedule::ClrRunningStatus | ( | cChannel * | Channel = NULL | ) |
void cSchedule::ClrRunningStatus | ( | cChannel * | Channel = NULL | ) |
Definition at line 966 of file epg.c.
References events, cList< T >::First(), hasRunning, cList< T >::Next(), SI::RunningStatusNotRunning, and SI::RunningStatusPausing.
Referenced by cEIT::cEIT(), DelEvent(), and DropOutdated().
void cSchedule::DelEvent | ( | cEvent * | Event | ) |
void cSchedule::DelEvent | ( | cEvent * | Event | ) |
Definition at line 871 of file epg.c.
References ClrRunningStatus(), cListBase::Del(), events, hasRunning, cEvent::IsRunning(), cEvent::schedule, and UnhashEvent().
Referenced by Cleanup().
void cSchedule::DropOutdated | ( | time_t | SegmentStart, |
time_t | SegmentEnd, | ||
uchar | TableID, | ||
uchar | Version | ||
) |
void cSchedule::DropOutdated | ( | time_t | SegmentStart, |
time_t | SegmentEnd, | ||
uchar | TableID, | ||
uchar | Version | ||
) |
Definition at line 998 of file epg.c.
References ClrRunningStatus(), events, cList< T >::First(), hasRunning, cList< T >::Next(), and UnhashEvent().
Referenced by cEpgHandlers::DropOutdated().
void cSchedule::Dump | ( | FILE * | f, |
const char * | Prefix = "" , |
||
eDumpMode | DumpMode = dmAll , |
||
time_t | AtTime = 0 |
||
) | const |
Definition at line 1041 of file epg.c.
References channelID, Channels, dmAll, dmAtTime, dmFollowing, dmPresent, esyslog, events, cList< T >::First(), cChannels::GetByChannelID(), cChannel::GetChannelID(), GetEventAround(), GetFollowingEvent(), GetPresentEvent(), cChannel::Name(), cList< T >::Next(), and tChannelID::ToString().
Referenced by cSVDRP::CmdLSTE().
void cSchedule::Dump | ( | FILE * | f, |
const char * | Prefix = "" , |
||
eDumpMode | DumpMode = dmAll , |
||
time_t | AtTime = 0 |
||
) | const |
const cList<cEvent>* cSchedule::Events | ( | void | ) | const [inline] |
Definition at line 171 of file epg.h.
References events.
Referenced by cMenuSchedule::PrepareScheduleAllAll(), cMenuSchedule::PrepareScheduleAllThis(), cMenuSchedule::PrepareScheduleThisAll(), cMenuSchedule::PrepareScheduleThisThis(), and cTimer::SetEventFromSchedule().
const cList<cEvent>* cSchedule::Events | ( | void | ) | const [inline] |
Definition at line 171 of file include/vdr/epg.h.
References events.
const cEvent * cSchedule::GetEvent | ( | tEventID | EventID, |
time_t | StartTime = 0 |
||
) | const |
Definition at line 925 of file epg.c.
References eventsHashID, eventsHashStartTime, and cHash< T >::Get().
Referenced by cEIT::cEIT(), and cEvent::Read().
const cEvent* cSchedule::GetEvent | ( | tEventID | EventID, |
time_t | StartTime = 0 |
||
) | const |
const cEvent * cSchedule::GetEventAround | ( | time_t | Time | ) | const |
Definition at line 935 of file epg.c.
References events, cList< T >::First(), cList< T >::Next(), and cEvent::StartTime().
Referenced by Dump(), and cRecordControl::GetEvent().
const cEvent* cSchedule::GetEventAround | ( | time_t | Time | ) | const |
const cEvent* cSchedule::GetFollowingEvent | ( | void | ) | const |
const cEvent * cSchedule::GetFollowingEvent | ( | void | ) | const |
Definition at line 910 of file epg.c.
References events, cList< T >::First(), GetPresentEvent(), cList< T >::Next(), and cEvent::StartTime().
Referenced by cMenuWhatsOn::cMenuWhatsOn(), cDisplayChannel::DisplayInfo(), and Dump().
const cEvent * cSchedule::GetPresentEvent | ( | void | ) | const |
Definition at line 895 of file epg.c.
References events, cList< T >::First(), cList< T >::Next(), SI::RunningStatusPausing, and RUNNINGSTATUSTIMEOUT.
Referenced by cMenuWhatsOn::cMenuWhatsOn(), cDisplayChannel::DisplayInfo(), Dump(), GetFollowingEvent(), cMenuSchedule::PrepareScheduleAllThis(), cMenuChannelItem::Set(), and SetTrackDescriptions().
const cEvent* cSchedule::GetPresentEvent | ( | void | ) | const |
void cSchedule::HashEvent | ( | cEvent * | Event | ) |
void cSchedule::HashEvent | ( | cEvent * | Event | ) |
Definition at line 881 of file epg.c.
References cHashBase::Add(), cEvent::EventID(), eventsHashID, eventsHashStartTime, and cEvent::StartTime().
Referenced by AddEvent(), cEvent::SetEventID(), and cEvent::SetStartTime().
time_t cSchedule::Modified | ( | void | ) | const [inline] |
Definition at line 155 of file epg.h.
References modified.
Referenced by cTimer::SetEventFromSchedule().
time_t cSchedule::Modified | ( | void | ) | const [inline] |
Definition at line 155 of file include/vdr/epg.h.
References modified.
time_t cSchedule::PresentSeen | ( | void | ) | const [inline] |
Definition at line 156 of file include/vdr/epg.h.
References presentSeen.
time_t cSchedule::PresentSeen | ( | void | ) | const [inline] |
Definition at line 156 of file epg.h.
References presentSeen.
bool cSchedule::PresentSeenWithin | ( | int | Seconds | ) | const [inline] |
Definition at line 157 of file epg.h.
References presentSeen.
Referenced by main(), and cTimer::Matches().
bool cSchedule::PresentSeenWithin | ( | int | Seconds | ) | const [inline] |
Definition at line 157 of file include/vdr/epg.h.
References presentSeen.
bool cSchedule::Read | ( | FILE * | f, |
cSchedules * | Schedules | ||
) | [static] |
Definition at line 1074 of file epg.c.
References cSchedules::AddSchedule(), channelID, esyslog, tChannelID::FromString(), cEvent::Read(), cReadLine::Read(), cSchedules::SetModified(), skipspace(), Sort(), and tChannelID::Valid().
static bool cSchedule::Read | ( | FILE * | f, |
cSchedules * | Schedules | ||
) | [static] |
void cSchedule::ResetVersions | ( | void | ) |
void cSchedule::ResetVersions | ( | void | ) |
Definition at line 979 of file epg.c.
References events, cList< T >::First(), and cList< T >::Next().
void cSchedule::SetModified | ( | void | ) | [inline] |
void cSchedule::SetModified | ( | void | ) | [inline] |
Definition at line 158 of file include/vdr/epg.h.
References modified.
void cSchedule::SetPresentSeen | ( | void | ) | [inline] |
Definition at line 159 of file include/vdr/epg.h.
References presentSeen.
void cSchedule::SetPresentSeen | ( | void | ) | [inline] |
void cSchedule::SetRunningStatus | ( | cEvent * | Event, |
int | RunningStatus, | ||
cChannel * | Channel = NULL |
||
) |
Definition at line 949 of file epg.c.
References events, cList< T >::First(), hasRunning, cList< T >::Next(), SI::RunningStatusNotRunning, SI::RunningStatusPausing, and cEvent::StartTime().
Referenced by cEIT::cEIT().
void cSchedule::SetRunningStatus | ( | cEvent * | Event, |
int | RunningStatus, | ||
cChannel * | Channel = NULL |
||
) |
void cSchedule::Sort | ( | void | ) |
void cSchedule::Sort | ( | void | ) |
Definition at line 985 of file epg.c.
References events, cList< T >::First(), hasRunning, cList< T >::Next(), SI::RunningStatusNotRunning, SI::RunningStatusPausing, and cListBase::Sort().
Referenced by Read(), and cEpgHandlers::SortSchedule().
void cSchedule::UnhashEvent | ( | cEvent * | Event | ) |
void cSchedule::UnhashEvent | ( | cEvent * | Event | ) |
Definition at line 888 of file epg.c.
References cHashBase::Del(), cEvent::EventID(), eventsHashID, eventsHashStartTime, and cEvent::StartTime().
Referenced by DelEvent(), DropOutdated(), cEvent::SetEventID(), and cEvent::SetStartTime().
tChannelID cSchedule::channelID [private] |
Definition at line 145 of file epg.h.
Referenced by ChannelID(), cSchedule(), Dump(), and Read().
cList< cEvent > cSchedule::events [private] |
Definition at line 146 of file epg.h.
Referenced by AddEvent(), Cleanup(), ClrRunningStatus(), DelEvent(), DropOutdated(), Dump(), Events(), GetEventAround(), GetFollowingEvent(), GetPresentEvent(), ResetVersions(), SetRunningStatus(), and Sort().
cHash< cEvent > cSchedule::eventsHashID [private] |
Definition at line 147 of file epg.h.
Referenced by GetEvent(), HashEvent(), and UnhashEvent().
cHash< cEvent > cSchedule::eventsHashStartTime [private] |
Definition at line 148 of file epg.h.
Referenced by GetEvent(), HashEvent(), and UnhashEvent().
bool cSchedule::hasRunning [private] |
Definition at line 149 of file epg.h.
Referenced by ClrRunningStatus(), cSchedule(), DelEvent(), DropOutdated(), SetRunningStatus(), and Sort().
time_t cSchedule::modified [private] |
Definition at line 150 of file epg.h.
Referenced by cSchedule(), Modified(), and SetModified().
time_t cSchedule::presentSeen [private] |
Definition at line 151 of file epg.h.
Referenced by cSchedule(), PresentSeen(), PresentSeenWithin(), and SetPresentSeen().