|
vdr 2.7.9
|
#include <epg.h>
Public Member Functions | |
| cEvent (tEventID EventID) | |
| ~cEvent () | |
| virtual int | Compare (const cListObject &ListObject) const override |
| tChannelID | ChannelID (void) const |
| const cSchedule * | Schedule (void) const |
| tEventID | EventID (void) const |
| uchar | TableID (void) const |
| uchar | Version (void) const |
| int | RunningStatus (void) const |
| const char * | Language (void) const |
| const char * | Title (void) const |
| const char * | ShortText (void) const |
| const char * | Description (void) const |
| const cComponents * | Components (void) const |
| uchar | Contents (int i=0) const |
| int | ParentalRating (void) const |
| time_t | StartTime (void) const |
| time_t | EndTime (void) const |
| int | Duration (void) const |
| time_t | Vps (void) const |
| time_t | Seen (void) const |
| bool | SeenWithin (int Seconds) const |
| const char * | Aux (void) const |
| void | IncNumTimers (void) const |
| void | DecNumTimers (void) const |
| bool | HasTimer (void) const |
| bool | IsRunning (bool OrAboutToStart=false) const |
| cString | GetParentalRatingString (void) const |
| cString | GetDateString (void) const |
| cString | GetTimeString (void) const |
| cString | GetEndTimeString (void) const |
| cString | GetVpsString (void) const |
| void | SetEventID (tEventID EventID) |
| void | SetTableID (uchar TableID) |
| void | SetVersion (uchar Version) |
| void | SetRunningStatus (int RunningStatus, const cChannel *Channel=NULL) |
| void | SetLanguage (const char *Language) |
| void | SetTitle (const char *Title) |
| void | SetShortText (const char *ShortText) |
| void | SetDescription (const char *Description) |
| void | SetComponents (cComponents *Components) |
| void | SetContents (uchar *Contents) |
| void | SetParentalRating (int ParentalRating) |
| void | SetStartTime (time_t StartTime) |
| void | SetDuration (int Duration) |
| void | SetVps (time_t Vps) |
| void | SetSeen (void) |
| void | SetAux (const char *Aux) |
| cString | ToDescr (void) const |
| void | Dump (FILE *f, const char *Prefix="", bool InfoOnly=false) const |
| bool | Parse (char *s) |
| void | FixEpgBugs (void) |
Public Member Functions inherited from cListObject | |
| cListObject (void) | |
| virtual | ~cListObject () |
| 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 const char * | ContentToString (uchar Content) |
| static bool | Read (FILE *f, cSchedule *Schedule, int &Line) |
Private Attributes | |
| cSchedule * | schedule |
| u_int16_t | numTimers |
| tEventID | eventID |
| uchar | tableID |
| uchar | version |
| uchar | runningStatus |
| uchar | parentalRating |
| char | language [MAXLANGCODE1] |
| char * | title |
| char * | shortText |
| char * | description |
| cComponents * | components |
| time_t | startTime |
| int | duration |
| uchar | contents [MaxEventContents] |
| time_t | vps |
| time_t | seen |
| char * | aux |
Static Private Attributes | |
| static cMutex | numTimersMutex |
Friends | |
| class | cSchedule |
| cEvent::cEvent | ( | tEventID | EventID | ) |
Definition at line 115 of file epg.c.
References aux, components, contents, description, duration, EventID(), eventID, language, numTimers, parentalRating, runningStatus, SI::RunningStatusUndefined, schedule, SetSeen(), shortText, startTime, tableID, title, version, and vps.
| cEvent::~cEvent | ( | ) |
Definition at line 137 of file epg.c.
References aux, components, description, shortText, and title.
|
inline |
| tChannelID cEvent::ChannelID | ( | void | ) | const |
Definition at line 155 of file epg.c.
References schedule.
Referenced by FixEpgBugs(), cMenuSchedule::Set(), cMenuSchedule::SetHelpKeys(), cMenuWhatsOn::SetHelpKeys(), cMenuSchedule::Switch(), and cMenuWhatsOn::Switch().
|
overridevirtual |
Must return 0 if this object is equal to ListObject, a positive value if it is "greater", and a negative value if it is "smaller".
Reimplemented from cListObject.
Definition at line 146 of file epg.c.
References cEvent(), cListObject::cListObject(), startTime, and tableID.
|
inline |
Definition at line 110 of file epg.h.
References components.
Referenced by SetComponents(), and SetTrackDescriptions().
|
inline |
Definition at line 111 of file epg.h.
References contents, and MaxEventContents.
Referenced by Dump(), SetContents(), cSkinCursesDisplayMenu::SetEvent(), and cSkinCursesDisplayMenu::SetRecording().
|
static |
Definition at line 288 of file epg.c.
References ecgArtsCulture, ecgChildrenYouth, ecgEducationalScience, ecgLeisureHobbies, ecgMovieDrama, ecgMusicBalletDance, ecgNewsCurrentAffairs, ecgShow, ecgSocialPoliticalEconomics, ecgSpecial, ecgSports, and tr.
Referenced by cSkinCursesDisplayMenu::SetEvent(), and cSkinCursesDisplayMenu::SetRecording().
| void cEvent::DecNumTimers | ( | void | ) | const |
Definition at line 274 of file epg.c.
References numTimers, numTimersMutex, and schedule.
|
inline |
Definition at line 109 of file epg.h.
References description.
Referenced by cEIT::cEIT(), SetDescription(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), and cSkinSTTNGDisplayMenu::SetEvent().
| void cEvent::Dump | ( | FILE * | f, |
| const char * | Prefix = "", | ||
| bool | InfoOnly = false ) const |
Definition at line 460 of file epg.c.
References aux, components, Contents(), contents, description, duration, EPG_LINGER_TIME, eventID, isempty(), language, parentalRating, shortText, startTime, strreplace(), tableID, title, tComponent::ToString(), version, and vps.
Referenced by cSchedule::Dump().
|
inline |
Definition at line 115 of file epg.h.
References duration.
Referenced by cEIT::cEIT(), cSkinLCARSDisplayMenu::DrawLive(), Read(), and SetDuration().
|
inline |
Definition at line 114 of file epg.h.
References duration, and startTime.
Referenced by cTimer::AdjustSpawnedTimer(), and cSchedule::Cleanup().
|
inline |
Definition at line 102 of file epg.h.
References eventID.
Referenced by cEvent(), cSchedule::HashEvent(), Read(), SetEventID(), and cSchedule::UnhashEvent().
| void cEvent::FixEpgBugs | ( | void | ) |
Definition at line 708 of file epg.c.
References ChannelID(), compactspace(), components, description, tComponent::description, EpgBugFixStat(), isempty(), MAX_USEFUL_EPISODE_LENGTH, Setup, shortText, cString::sprintf(), strcpyrealloc(), tComponent::stream, StripControlCharacters(), strreplace(), title, tr, and tComponent::type.
Referenced by cEpgHandlers::FixEpgBugs().
| cString cEvent::GetDateString | ( | void | ) | const |
Definition at line 437 of file epg.c.
References DateString(), and startTime.
Referenced by cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), and ToDescr().
| cString cEvent::GetEndTimeString | ( | void | ) | const |
Definition at line 447 of file epg.c.
References duration, startTime, and TimeString().
Referenced by cSkinLCARSDisplayMenu::DrawInfo(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), and ToDescr().
| cString cEvent::GetParentalRatingString | ( | void | ) | const |
Definition at line 430 of file epg.c.
References parentalRating, cString::sprintf(), and tr.
Referenced by cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
| cString cEvent::GetTimeString | ( | void | ) | const |
Definition at line 442 of file epg.c.
References startTime, and TimeString().
Referenced by cSkinLCARSDisplayMenu::DrawInfo(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinClassicDisplayChannel::SetEvents(), cSkinCursesDisplayChannel::SetEvents(), cSkinLCARSDisplayChannel::SetEvents(), cSkinSTTNGDisplayChannel::SetEvents(), and ToDescr().
| cString cEvent::GetVpsString | ( | void | ) | const |
Definition at line 452 of file epg.c.
References vps.
Referenced by cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), and ToDescr().
|
inline |
Definition at line 122 of file epg.h.
References numTimers.
Referenced by cEIT::cEIT(), cSchedule::Cleanup(), and cTimers::GetTimerForEvent().
| void cEvent::IncNumTimers | ( | void | ) | const |
Definition at line 265 of file epg.c.
References numTimers, numTimersMutex, and schedule.
Referenced by cTimer::operator=().
| bool cEvent::IsRunning | ( | bool | OrAboutToStart = false | ) | const |
Definition at line 283 of file epg.c.
References runningStatus, SI::RunningStatusPausing, and SI::RunningStatusStartsInAFewSeconds.
|
inline |
|
inline |
Definition at line 112 of file epg.h.
References parentalRating.
Referenced by cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), SetParentalRating(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), and cSkinSTTNGDisplayMenu::SetRecording().
| bool cEvent::Parse | ( | char * | s | ) |
Definition at line 501 of file epg.c.
References components, contents, esyslog, MaxEventContents, MAXLANGCODE1, SetAux(), SetDescription(), SetLanguage(), SetParentalRating(), SetShortText(), SetTitle(), SetVps(), skipspace(), and strreplace().
Referenced by Read().
|
static |
Definition at line 550 of file epg.c.
References cEvent(), components, cSchedule, DELETENULL(), Duration(), esyslog, EventID(), Parse(), cReadLine::Read(), Schedule(), seen, SetDuration(), SetStartTime(), SetTableID(), SetTitle(), skipspace(), StartTime(), TableID(), Title(), tr, and Version().
Referenced by cSchedule::Read().
|
inline |
Definition at line 105 of file epg.h.
References runningStatus.
Referenced by cEIT::cEIT(), and SetRunningStatus().
|
inline |
|
inline |
| void cEvent::SetAux | ( | const char * | Aux | ) |
| void cEvent::SetComponents | ( | cComponents * | Components | ) |
Definition at line 208 of file epg.c.
References Components(), and components.
Referenced by cEpgHandlers::SetComponents().
| void cEvent::SetContents | ( | uchar * | Contents | ) |
Definition at line 214 of file epg.c.
References Contents(), contents, and MaxEventContents.
Referenced by cEpgHandlers::SetContents().
| void cEvent::SetDescription | ( | const char * | Description | ) |
Definition at line 203 of file epg.c.
References Description(), description, and strcpyrealloc().
Referenced by Parse(), and cEpgHandlers::SetDescription().
| void cEvent::SetDuration | ( | int | Duration | ) |
Definition at line 236 of file epg.c.
References Duration(), and duration.
Referenced by cEIT::cEIT(), Read(), and cEpgHandlers::SetDuration().
| void cEvent::SetEventID | ( | tEventID | EventID | ) |
| void cEvent::SetLanguage | ( | const char * | Language | ) |
Definition at line 188 of file epg.c.
References Language(), language, and strn0cpy().
Referenced by Parse(), and cEpgHandlers::SetLanguage().
| void cEvent::SetParentalRating | ( | int | ParentalRating | ) |
Definition at line 220 of file epg.c.
References ParentalRating(), and parentalRating.
Referenced by Parse(), and cEpgHandlers::SetParentalRating().
| void cEvent::SetRunningStatus | ( | int | RunningStatus, |
| const cChannel * | Channel = NULL ) |
Definition at line 181 of file epg.c.
References isyslog, cChannel::Name(), cChannel::Number(), RunningStatus(), runningStatus, SI::RunningStatusNotRunning, SI::RunningStatusUndefined, schedule, and ToDescr().
| void cEvent::SetSeen | ( | void | ) |
| void cEvent::SetShortText | ( | const char * | ShortText | ) |
Definition at line 198 of file epg.c.
References ShortText(), shortText, and strcpyrealloc().
Referenced by Parse(), and cEpgHandlers::SetShortText().
| void cEvent::SetStartTime | ( | time_t | StartTime | ) |
Definition at line 225 of file epg.c.
References schedule, StartTime(), and startTime.
Referenced by cEIT::cEIT(), Read(), and cEpgHandlers::SetStartTime().
| void cEvent::SetTableID | ( | uchar | TableID | ) |
| void cEvent::SetTitle | ( | const char * | Title | ) |
Definition at line 193 of file epg.c.
References strcpyrealloc(), Title(), and title.
Referenced by Parse(), Read(), and cEpgHandlers::SetTitle().
| void cEvent::SetVersion | ( | uchar | Version | ) |
Definition at line 176 of file epg.c.
References Version(), and version.
Referenced by cEIT::cEIT().
| void cEvent::SetVps | ( | time_t | Vps | ) |
|
inline |
Definition at line 108 of file epg.h.
References shortText.
Referenced by cEIT::cEIT(), cRecording::cRecording(), cDisplayChannel::DisplayInfo(), cSkinLCARSDisplayMenu::DrawInfo(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinClassicDisplayChannel::SetEvents(), cSkinCursesDisplayChannel::SetEvents(), cSkinLCARSDisplayChannel::SetEvents(), cSkinSTTNGDisplayChannel::SetEvents(), and SetShortText().
|
inline |
Definition at line 113 of file epg.h.
References startTime.
Referenced by cTimer::AdjustSpawnedTimer(), cEIT::cEIT(), cMenuScheduleItem::Compare(), cDisplayChannel::DisplayInfo(), cSkinLCARSDisplayMenu::DrawLive(), cSchedule::DropOutdated(), cSchedule::GetFollowingEvent(), cSchedule::HashEvent(), Read(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSchedule::SetRunningStatus(), SetStartTime(), and cSchedule::UnhashEvent().
|
inline |
Definition at line 103 of file epg.h.
References tableID.
Referenced by cEIT::cEIT(), cSchedule::DropOutdated(), cTable0Handler::Ignore(), Read(), and SetTableID().
|
inline |
Definition at line 107 of file epg.h.
References title.
Referenced by cEIT::cEIT(), cMenuScheduleItem::Compare(), cRecording::cRecording(), cDisplayChannel::DisplayInfo(), cSkinLCARSDisplayMenu::DrawInfo(), cSkinLCARSDisplayMenu::DrawTimer(), cMenuSchedule::PrepareScheduleThisAll(), cMenuSchedule::PrepareScheduleThisThis(), Read(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinClassicDisplayChannel::SetEvents(), cSkinCursesDisplayChannel::SetEvents(), cSkinLCARSDisplayChannel::SetEvents(), cSkinSTTNGDisplayChannel::SetEvents(), SetTitle(), and ToDescr().
| cString cEvent::ToDescr | ( | void | ) | const |
Definition at line 257 of file epg.c.
References GetDateString(), GetEndTimeString(), GetTimeString(), GetVpsString(), cString::sprintf(), Title(), and Vps().
Referenced by cEIT::cEIT(), cTimer::Expired(), and SetRunningStatus().
|
inline |
Definition at line 104 of file epg.h.
References version.
Referenced by cSchedule::DropOutdated(), Read(), and SetVersion().
|
inline |
Definition at line 116 of file epg.h.
References vps.
Referenced by cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cTimer::SetEventFromSchedule(), SetVps(), and ToDescr().
|
friend |
|
private |
|
private |
Definition at line 89 of file epg.h.
Referenced by cEvent(), Components(), Dump(), FixEpgBugs(), Parse(), Read(), SetComponents(), and ~cEvent().
|
private |
Definition at line 92 of file epg.h.
Referenced by cEvent(), Contents(), Dump(), Parse(), and SetContents().
|
private |
Definition at line 88 of file epg.h.
Referenced by cEvent(), Description(), Dump(), FixEpgBugs(), SetDescription(), and ~cEvent().
|
private |
Definition at line 91 of file epg.h.
Referenced by cEvent(), Dump(), Duration(), EndTime(), GetEndTimeString(), and SetDuration().
|
private |
|
private |
Definition at line 85 of file epg.h.
Referenced by cEvent(), Dump(), Language(), and SetLanguage().
|
mutableprivate |
Definition at line 79 of file epg.h.
Referenced by cEvent(), DecNumTimers(), cSchedule::DelEvent(), HasTimer(), and IncNumTimers().
|
staticprivate |
Definition at line 76 of file epg.h.
Referenced by DecNumTimers(), cSchedule::DelEvent(), and IncNumTimers().
|
private |
Definition at line 84 of file epg.h.
Referenced by cEvent(), Dump(), GetParentalRatingString(), ParentalRating(), and SetParentalRating().
|
private |
Definition at line 83 of file epg.h.
Referenced by cEvent(), IsRunning(), RunningStatus(), and SetRunningStatus().
|
private |
Definition at line 78 of file epg.h.
Referenced by cSchedule::AddEvent(), cEvent(), ChannelID(), DecNumTimers(), cSchedule::DelEvent(), IncNumTimers(), Schedule(), SetEventID(), SetRunningStatus(), and SetStartTime().
|
private |
|
private |
Definition at line 87 of file epg.h.
Referenced by cEvent(), Dump(), FixEpgBugs(), SetShortText(), ShortText(), and ~cEvent().
|
private |
Definition at line 90 of file epg.h.
Referenced by cEvent(), Compare(), Dump(), EndTime(), GetDateString(), GetEndTimeString(), GetTimeString(), SetStartTime(), and StartTime().
|
private |
|
private |
Definition at line 86 of file epg.h.
Referenced by cEvent(), Dump(), FixEpgBugs(), SetTitle(), Title(), and ~cEvent().
|
private |
|
private |