vdr
2.2.0
|
#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 tComponent::description, and SI::RunningStatusUndefined.
cEvent::~cEvent | ( | ) |
Definition at line 133 of file epg.c.
References tComponent::description.
tChannelID cEvent::ChannelID | ( | void | ) | const |
Definition at line 147 of file epg.c.
Referenced by cMenuEvent::cMenuEvent(), cTimer::cTimer(), cTimer::Matches(), cMenuSchedule::Number(), cMenuSchedule::ProcessKey(), cMenuWhatsOn::SetHelpKeys(), cMenuSchedule::SetHelpKeys(), cMenuWhatsOn::Switch(), and cMenuSchedule::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.
Referenced by SetTrackDescriptions().
|
inline |
Definition at line 104 of file epg.h.
References MaxEventContents.
Referenced by 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 tComponent::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 tComponent::description, cSetup::EPGLinger, isempty(), Setup, strreplace(), and tComponent::ToString().
|
inline |
Definition at line 108 of file epg.h.
Referenced by cTimer::cTimer(), cSkinLCARSDisplayMenu::DrawLive(), cSkinSTTNGDisplayChannel::Flush(), cSkinLCARSDisplayChannel::Flush(), cTimer::Matches(), and cTimer::SetEventFromSchedule().
|
inline |
Definition at line 107 of file epg.h.
Referenced by cSchedule::Cleanup(), cTimer::cTimer(), main(), and cTimer::Matches().
|
inline |
Definition at line 96 of file epg.h.
Referenced by cSchedule::HashEvent(), and cSchedule::UnhashEvent().
void cEvent::FixEpgBugs | ( | void | ) |
Definition at line 664 of file epg.c.
References compactspace(), tComponent::description, cSetup::EPGBugfixLevel, EpgBugFixStat(), isempty(), MAX_USEFUL_EPISODE_LENGTH, Setup, strcpyrealloc(), tComponent::stream, StripControlCharacters(), strreplace(), tr, and tComponent::type.
Referenced by cEpgHandlers::FixEpgBugs().
cString cEvent::GetDateString | ( | void | ) | const |
Definition at line 409 of file epg.c.
References DateString().
Referenced by cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), and cSkinLCARSDisplayMenu::SetEvent().
cString cEvent::GetEndTimeString | ( | void | ) | const |
Definition at line 419 of file epg.c.
References TimeString().
Referenced by cSkinLCARSDisplayMenu::DrawInfo(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), and cSkinLCARSDisplayMenu::SetEvent().
cString cEvent::GetParentalRatingString | ( | void | ) | const |
Definition at line 402 of file epg.c.
References 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 TimeString().
Referenced by cSkinLCARSDisplayMenu::DrawInfo(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinClassicDisplayChannel::SetEvents(), cSkinSTTNGDisplayChannel::SetEvents(), cSkinCursesDisplayChannel::SetEvents(), cSkinLCARSDisplayChannel::SetEvents(), and cMenuScheduleItem::Update().
cString cEvent::GetVpsString | ( | void | ) | const |
Definition at line 424 of file epg.c.
Referenced by cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), and cSkinLCARSDisplayMenu::SetEvent().
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 SI::RunningStatusPausing, and SI::RunningStatusStartsInAFewSeconds.
Referenced by cSchedule::DelEvent(), and cTimer::Matches().
|
inline |
Definition at line 105 of file epg.h.
Referenced by cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), and cSkinLCARSDisplayMenu::SetRecording().
bool cEvent::Parse | ( | char * | s | ) |
Definition at line 466 of file epg.c.
References esyslog, MaxEventContents, cComponents::SetComponent(), skipspace(), and strreplace().
Referenced by Read().
|
static |
Definition at line 505 of file epg.c.
References cSchedule::AddEvent(), components, DELETENULL(), esyslog, cSchedule::GetEvent(), Parse(), cReadLine::Read(), seen, SetDuration(), SetStartTime(), SetTableID(), SetTitle(), skipspace(), Title(), and tr.
Referenced by cSchedule::Read().
|
inline |
Definition at line 95 of file epg.h.
Referenced by cTimer::Matches().
|
inline |
Definition at line 111 of file epg.h.
References cSchedule::Dump(), cSchedule::Read(), and cSchedule::SetRunningStatus().
Referenced by main().
void cEvent::SetComponents | ( | cComponents * | Components | ) |
Definition at line 195 of file epg.c.
Referenced by cEpgHandlers::SetComponents().
void cEvent::SetContents | ( | uchar * | Contents | ) |
Definition at line 201 of file epg.c.
References MaxEventContents.
Referenced by cEpgHandlers::SetContents().
void cEvent::SetDescription | ( | const char * | Description | ) |
Definition at line 190 of file epg.c.
References tComponent::description, and strcpyrealloc().
Referenced by cEpgHandlers::SetDescription().
void cEvent::SetDuration | ( | int | Duration | ) |
Definition at line 223 of file epg.c.
Referenced by cEIT::cEIT(), Read(), and cEpgHandlers::SetDuration().
void cEvent::SetEventID | ( | tEventID | EventID | ) |
Definition at line 152 of file epg.c.
Referenced by cEpgHandlers::SetEventID().
void cEvent::SetParentalRating | ( | int | ParentalRating | ) |
Definition at line 207 of file epg.c.
Referenced by 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(), SI::RunningStatusNotRunning, and SI::RunningStatusUndefined.
void cEvent::SetSeen | ( | void | ) |
Definition at line 233 of file epg.c.
Referenced by cEIT::cEIT().
void cEvent::SetShortText | ( | const char * | ShortText | ) |
Definition at line 185 of file epg.c.
References strcpyrealloc().
Referenced by cEpgHandlers::SetShortText().
void cEvent::SetStartTime | ( | time_t | StartTime | ) |
Definition at line 212 of file epg.c.
Referenced by cEIT::cEIT(), Read(), and cEpgHandlers::SetStartTime().
void cEvent::SetTableID | ( | uchar | TableID | ) |
Definition at line 163 of file epg.c.
Referenced by cEIT::cEIT(), and Read().
void cEvent::SetTitle | ( | const char * | Title | ) |
Definition at line 180 of file epg.c.
References strcpyrealloc().
Referenced by Read(), and cEpgHandlers::SetTitle().
void cEvent::SetVersion | ( | uchar | Version | ) |
Definition at line 168 of file epg.c.
Referenced by cEIT::cEIT().
void cEvent::SetVps | ( | time_t | Vps | ) |
Definition at line 228 of file epg.c.
Referenced by cEpgHandlers::SetVps().
|
inline |
Definition at line 101 of file epg.h.
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.
Referenced by cMenuScheduleItem::Compare(), cTimer::cTimer(), cDisplayChannel::DisplayInfo(), cSkinLCARSDisplayMenu::DrawLive(), cSkinSTTNGDisplayChannel::Flush(), cSkinLCARSDisplayChannel::Flush(), cSchedule::GetEventAround(), cSchedule::GetFollowingEvent(), cSchedule::HashEvent(), main(), cTimer::Matches(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cTimer::SetEventFromSchedule(), cSchedule::SetRunningStatus(), and cSchedule::UnhashEvent().
|
inline |
Definition at line 97 of file epg.h.
Referenced by cEIT::cEIT(), and cTable0Handler::Ignore().
|
inline |
Definition at line 100 of file epg.h.
Referenced by cEIT::cEIT(), cMenuTimers::Commands(), cMenuScheduleItem::Compare(), 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(), and cSkinLCARSDisplayChannel::SetEvents().
cString cEvent::ToDescr | ( | void | ) | const |
Definition at line 238 of file epg.c.
References cString::sprintf().
Referenced by cTimer::SetEvent().
|
inline |
Definition at line 98 of file epg.h.
Referenced by cEIT::cEIT().
|
inline |
Definition at line 109 of file epg.h.
Referenced by cTimer::cTimer(), cTimer::Matches(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), and cTimer::SetEventFromSchedule().
|
private |
|
private |
|
private |
Definition at line 75 of file epg.h.
Referenced by cSchedule::AddEvent(), and cSchedule::DelEvent().