vdr
2.0.4
|
#include <epg.h>
Public Member Functions | |
cEvent (tEventID EventID) | |
~cEvent () | |
virtual int | Compare (const cListObject &ListObject) const |
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 * | 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 |
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, cChannel *Channel=NULL) |
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) |
cString | ToDescr (void) const |
void | Dump (FILE *f, const char *Prefix="", bool InfoOnly=false) const |
bool | Parse (char *s) |
void | FixEpgBugs (void) |
![]() | |
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) |
Private Attributes | |
cSchedule * | schedule |
tEventID | eventID |
uchar | tableID |
uchar | version |
uchar | runningStatus |
uchar | parentalRating |
char * | title |
char * | shortText |
char * | description |
cComponents * | components |
uchar | contents [MaxEventContents] |
time_t | startTime |
int | duration |
time_t | vps |
time_t | seen |
Friends | |
class | cSchedule |
cEvent::cEvent | ( | tEventID | EventID | ) |
Definition at line 114 of file epg.c.
References components, contents, description, duration, eventID, EventID(), parentalRating, runningStatus, SI::RunningStatusUndefined, schedule, SetSeen(), shortText, startTime, tableID, title, version, and vps.
Referenced by Read().
cEvent::~cEvent | ( | ) |
Definition at line 133 of file epg.c.
References components, description, shortText, and title.
tChannelID cEvent::ChannelID | ( | void | ) | const |
Definition at line 147 of file epg.c.
References cSchedule::ChannelID(), and schedule.
Referenced by cMenuEvent::cMenuEvent(), cTimer::cTimer(), FixEpgBugs(), cTimer::Matches(), cMenuSchedule::Number(), cMenuSchedule::ProcessKey(), and cMenuWhatsOn::Switch().
|
virtual |
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 141 of file epg.c.
References startTime.
|
inline |
Definition at line 103 of file epg.h.
References components.
Referenced by cRecordingInfo::cRecordingInfo(), SetComponents(), and SetTrackDescriptions().
|
inline |
Definition at line 104 of file epg.h.
References contents, and MaxEventContents.
Referenced by Dump(), cSkinCursesDisplayMenu::SetEvent(), and cSkinCursesDisplayMenu::SetRecording().
|
static |
Definition at line 260 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().
|
inline |
Definition at line 102 of file epg.h.
References description.
Referenced by cEIT::cEIT(), cMenuEvent::Display(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), and cSkinLCARSDisplayMenu::SetEvent().
void cEvent::Dump | ( | FILE * | f, |
const char * | Prefix = "" , |
||
bool | InfoOnly = false |
||
) | const |
Definition at line 432 of file epg.c.
References cComponents::Component(), components, contents, Contents(), description, duration, cSetup::EPGLinger, eventID, isempty(), cComponents::NumComponents(), parentalRating, Setup, shortText, startTime, strreplace(), tableID, title, tComponent::ToString(), version, and vps.
|
inline |
Definition at line 108 of file epg.h.
References duration.
Referenced by cTimer::cTimer(), cSkinLCARSDisplayMenu::DrawLive(), cSkinSTTNGDisplayChannel::Flush(), cSkinLCARSDisplayChannel::Flush(), cTimer::Matches(), Read(), SetDuration(), and cTimer::SetEventFromSchedule().
|
inline |
Definition at line 107 of file epg.h.
References duration, and startTime.
Referenced by cSchedule::Cleanup(), cTimer::cTimer(), main(), and cTimer::Matches().
|
inline |
Definition at line 96 of file epg.h.
References eventID.
Referenced by cEvent(), cSchedule::HashEvent(), Read(), SetEventID(), and cSchedule::UnhashEvent().
void cEvent::FixEpgBugs | ( | void | ) |
Definition at line 664 of file epg.c.
References ChannelID(), compactspace(), cComponents::Component(), components, tComponent::description, description, cSetup::EPGBugfixLevel, EpgBugFixStat(), isempty(), MAX_USEFUL_EPISODE_LENGTH, cComponents::NumComponents(), Setup, shortText, strcpyrealloc(), tComponent::stream, StripControlCharacters(), strreplace(), title, tr, and tComponent::type.
Referenced by cEpgHandlers::FixEpgBugs().
cString cEvent::GetDateString | ( | void | ) | const |
Definition at line 409 of file epg.c.
References DateString(), and startTime.
Referenced by cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), and ToDescr().
cString cEvent::GetEndTimeString | ( | void | ) | const |
Definition at line 419 of file epg.c.
References duration, startTime, and TimeString().
Referenced by cSkinLCARSDisplayMenu::DrawInfo(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), and ToDescr().
cString cEvent::GetParentalRatingString | ( | void | ) | const |
Definition at line 402 of file epg.c.
References parentalRating, cString::sprintf(), and tr.
Referenced by cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), and cSkinLCARSDisplayMenu::SetRecording().
cString cEvent::GetTimeString | ( | void | ) | const |
Definition at line 414 of file epg.c.
References startTime, and TimeString().
Referenced by cSkinLCARSDisplayMenu::DrawInfo(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinClassicDisplayChannel::SetEvents(), cSkinSTTNGDisplayChannel::SetEvents(), cSkinCursesDisplayChannel::SetEvents(), cSkinLCARSDisplayChannel::SetEvents(), ToDescr(), and cMenuScheduleItem::Update().
cString cEvent::GetVpsString | ( | void | ) | const |
Definition at line 424 of file epg.c.
References vps.
Referenced by cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), and ToDescr().
bool cEvent::HasTimer | ( | void | ) | const |
Definition at line 246 of file epg.c.
References cList< T >::First(), cList< T >::Next(), and Timers.
Referenced by cSchedule::Cleanup().
bool cEvent::IsRunning | ( | bool | OrAboutToStart = false | ) | const |
Definition at line 255 of file epg.c.
References runningStatus, SI::RunningStatusPausing, and SI::RunningStatusStartsInAFewSeconds.
Referenced by cSchedule::DelEvent(), and cTimer::Matches().
|
inline |
Definition at line 105 of file epg.h.
References parentalRating.
Referenced by cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), SetParentalRating(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), and cSkinLCARSDisplayMenu::SetRecording().
bool cEvent::Parse | ( | char * | s | ) |
Definition at line 466 of file epg.c.
References components, contents, esyslog, MaxEventContents, cComponents::NumComponents(), cComponents::SetComponent(), SetDescription(), SetParentalRating(), SetShortText(), SetTitle(), SetVps(), skipspace(), and strreplace().
Referenced by cRecordingInfo::Read(), and Read().
|
static |
Definition at line 505 of file epg.c.
References cSchedule::AddEvent(), cEvent(), components, DELETENULL(), Duration(), esyslog, EventID(), cSchedule::GetEvent(), Parse(), cReadLine::Read(), seen, SetDuration(), SetStartTime(), SetTableID(), SetTitle(), skipspace(), StartTime(), TableID(), Title(), tr, and Version().
Referenced by cSchedule::Read().
|
inline |
|
inline |
|
inline |
void cEvent::SetComponents | ( | cComponents * | Components | ) |
Definition at line 195 of file epg.c.
References components, and Components().
Referenced by cEpgHandlers::SetComponents().
void cEvent::SetContents | ( | uchar * | Contents | ) |
Definition at line 201 of file epg.c.
References contents, and MaxEventContents.
Referenced by cEpgHandlers::SetContents().
void cEvent::SetDescription | ( | const char * | Description | ) |
Definition at line 190 of file epg.c.
References description, and strcpyrealloc().
Referenced by Parse(), and cEpgHandlers::SetDescription().
void cEvent::SetDuration | ( | int | Duration | ) |
Definition at line 223 of file epg.c.
References duration, and Duration().
Referenced by cEIT::cEIT(), cRecordingInfo::Read(), Read(), and cEpgHandlers::SetDuration().
void cEvent::SetEventID | ( | tEventID | EventID | ) |
Definition at line 152 of file epg.c.
References eventID, EventID(), cSchedule::HashEvent(), schedule, and cSchedule::UnhashEvent().
Referenced by cRecordingInfo::Read(), and cEpgHandlers::SetEventID().
void cEvent::SetParentalRating | ( | int | ParentalRating | ) |
Definition at line 207 of file epg.c.
References parentalRating, and ParentalRating().
Referenced by Parse(), and cEpgHandlers::SetParentalRating().
void cEvent::SetRunningStatus | ( | int | RunningStatus, |
cChannel * | Channel = NULL |
||
) |
Definition at line 173 of file epg.c.
References cChannel::HasTimer(), isyslog, cChannel::Name(), cChannel::Number(), runningStatus, RunningStatus(), SI::RunningStatusNotRunning, SI::RunningStatusUndefined, and ToDescr().
void cEvent::SetSeen | ( | void | ) |
void cEvent::SetShortText | ( | const char * | ShortText | ) |
Definition at line 185 of file epg.c.
References shortText, and strcpyrealloc().
Referenced by Parse(), and cEpgHandlers::SetShortText().
void cEvent::SetStartTime | ( | time_t | StartTime | ) |
Definition at line 212 of file epg.c.
References cSchedule::HashEvent(), schedule, startTime, StartTime(), and cSchedule::UnhashEvent().
Referenced by cEIT::cEIT(), cRecordingInfo::Read(), Read(), and cEpgHandlers::SetStartTime().
void cEvent::SetTableID | ( | uchar | TableID | ) |
Definition at line 163 of file epg.c.
References tableID, and TableID().
Referenced by cEIT::cEIT(), cRecordingInfo::Read(), and Read().
void cEvent::SetTitle | ( | const char * | Title | ) |
Definition at line 180 of file epg.c.
References strcpyrealloc(), and title.
Referenced by cRecording::cRecording(), Parse(), Read(), and cEpgHandlers::SetTitle().
void cEvent::SetVersion | ( | uchar | Version | ) |
Definition at line 168 of file epg.c.
References version, and Version().
Referenced by cEIT::cEIT(), and cRecordingInfo::Read().
void cEvent::SetVps | ( | time_t | Vps | ) |
|
inline |
Definition at line 101 of file epg.h.
References shortText.
Referenced by cEIT::cEIT(), cMenuTimers::Commands(), cRecording::cRecording(), cDisplayChannel::DisplayInfo(), cSkinLCARSDisplayMenu::DrawInfo(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinClassicDisplayChannel::SetEvents(), cSkinSTTNGDisplayChannel::SetEvents(), cSkinCursesDisplayChannel::SetEvents(), and cSkinLCARSDisplayChannel::SetEvents().
|
inline |
Definition at line 106 of file epg.h.
References startTime.
Referenced by cMenuScheduleItem::Compare(), cTimer::cTimer(), cDisplayChannel::DisplayInfo(), cSkinLCARSDisplayMenu::DrawLive(), cSkinSTTNGDisplayChannel::Flush(), cSkinLCARSDisplayChannel::Flush(), cSchedule::GetEventAround(), cSchedule::GetFollowingEvent(), cSchedule::HashEvent(), main(), cTimer::Matches(), Read(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cTimer::SetEventFromSchedule(), cSchedule::SetRunningStatus(), SetStartTime(), and cSchedule::UnhashEvent().
|
inline |
Definition at line 97 of file epg.h.
References tableID.
Referenced by cEIT::cEIT(), cTable0Handler::Ignore(), Read(), and SetTableID().
|
inline |
Definition at line 100 of file epg.h.
References title.
Referenced by cEIT::cEIT(), cMenuTimers::Commands(), cMenuScheduleItem::Compare(), cRecordControl::cRecordControl(), cRecording::cRecording(), cTimer::cTimer(), cDisplayChannel::DisplayInfo(), cSkinLCARSDisplayMenu::DrawInfo(), cSkinLCARSDisplayMenu::DrawTimer(), cMenuSchedule::PrepareScheduleThisAll(), cMenuSchedule::PrepareScheduleThisThis(), Read(), cMenuChannelItem::Set(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinClassicDisplayChannel::SetEvents(), cSkinSTTNGDisplayChannel::SetEvents(), cSkinCursesDisplayChannel::SetEvents(), cSkinLCARSDisplayChannel::SetEvents(), and ToDescr().
cString cEvent::ToDescr | ( | void | ) | const |
Definition at line 238 of file epg.c.
References GetDateString(), GetEndTimeString(), GetTimeString(), GetVpsString(), cString::sprintf(), Title(), and Vps().
Referenced by cTimer::SetEvent(), and SetRunningStatus().
|
inline |
Definition at line 98 of file epg.h.
References version.
Referenced by cEIT::cEIT(), Read(), and SetVersion().
|
inline |
Definition at line 109 of file epg.h.
References vps.
Referenced by cTimer::cTimer(), cTimer::Matches(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cTimer::SetEventFromSchedule(), SetVps(), and ToDescr().
|
private |
Definition at line 84 of file epg.h.
Referenced by cEvent(), Components(), Dump(), FixEpgBugs(), Parse(), Read(), SetComponents(), and ~cEvent().
|
private |
Definition at line 85 of file epg.h.
Referenced by cEvent(), Contents(), Dump(), Parse(), and SetContents().
|
private |
Definition at line 83 of file epg.h.
Referenced by cEvent(), Description(), Dump(), FixEpgBugs(), SetDescription(), and ~cEvent().
|
private |
Definition at line 87 of file epg.h.
Referenced by cEvent(), Dump(), Duration(), EndTime(), GetEndTimeString(), and SetDuration().
|
private |
|
private |
Definition at line 80 of file epg.h.
Referenced by cEvent(), Dump(), GetParentalRatingString(), ParentalRating(), and SetParentalRating().
|
private |
Definition at line 79 of file epg.h.
Referenced by cEvent(), IsRunning(), RunningStatus(), and SetRunningStatus().
|
private |
Definition at line 75 of file epg.h.
Referenced by cSchedule::AddEvent(), cEvent(), ChannelID(), cSchedule::DelEvent(), Schedule(), SetEventID(), and SetStartTime().
|
private |
|
private |
Definition at line 82 of file epg.h.
Referenced by cEvent(), Dump(), FixEpgBugs(), SetShortText(), ShortText(), and ~cEvent().
|
private |
Definition at line 86 of file epg.h.
Referenced by cEvent(), Compare(), Dump(), EndTime(), GetDateString(), GetEndTimeString(), GetTimeString(), SetStartTime(), and StartTime().
|
private |
|
private |
Definition at line 81 of file epg.h.
Referenced by cEvent(), Dump(), FixEpgBugs(), SetTitle(), Title(), and ~cEvent().
|
private |
|
private |