vdr  1.7.31
Public Member Functions | Static Public Member Functions | Private Attributes | Friends | List of all members
cEvent Class Reference

#include <epg.h>

Public Member Functions

 cEvent (tEventID EventID)
 ~cEvent ()
virtual int Compare (const cListObject &ListObject) const
tChannelID ChannelID (void) const
const cScheduleSchedule (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 cComponentsComponents (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)
 cEvent (tEventID EventID)
 ~cEvent ()
virtual int Compare (const cListObject &ListObject) const
tChannelID ChannelID (void) const
const cScheduleSchedule (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 cComponentsComponents (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)
- 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
cListObjectPrev (void) const
cListObjectNext (void) const
 cListObject (void)
virtual ~cListObject ()
void Append (cListObject *Object)
void Insert (cListObject *Object)
void Unlink (void)
int Index (void) const
cListObjectPrev (void) const
cListObjectNext (void) const

Static Public Member Functions

static const char * ContentToString (uchar Content)
static bool Read (FILE *f, cSchedule *Schedule)
static const char * ContentToString (uchar Content)
static bool Read (FILE *f, cSchedule *Schedule)

Private Attributes

cScheduleschedule
tEventID eventID
uchar tableID
uchar version
uchar runningStatus
uchar parentalRating
char * title
char * shortText
char * description
cComponentscomponents
uchar contents [MaxEventContents]
time_t startTime
int duration
time_t vps
time_t seen

Friends

class cSchedule

Detailed Description

Definition at line 71 of file epg.h.

Constructor & Destructor Documentation

cEvent::cEvent ( tEventID  EventID)
cEvent::~cEvent ( )

Definition at line 133 of file epg.c.

References components, description, shortText, and title.

cEvent::cEvent ( tEventID  EventID)
cEvent::~cEvent ( )

Member Function Documentation

tChannelID cEvent::ChannelID ( void  ) const
tChannelID cEvent::ChannelID ( void  ) const
int cEvent::Compare ( const cListObject ListObject) const
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.

virtual int cEvent::Compare ( const cListObject ListObject) const
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.

const cComponents* cEvent::Components ( void  ) const
inline

Definition at line 103 of file epg.h.

References components.

Referenced by cRecordingInfo::cRecordingInfo(), SetComponents(), and SetTrackDescriptions().

const cComponents* cEvent::Components ( void  ) const
inline

Definition at line 103 of file include/vdr/epg.h.

References components.

uchar cEvent::Contents ( int  i = 0) const
inline

Definition at line 104 of file epg.h.

References contents, and MaxEventContents.

Referenced by Dump(), cSkinCursesDisplayMenu::SetEvent(), and cSkinCursesDisplayMenu::SetRecording().

uchar cEvent::Contents ( int  i = 0) const
inline

Definition at line 104 of file include/vdr/epg.h.

References contents, and MaxEventContents.

static const char* cEvent::ContentToString ( uchar  Content)
static
const char * cEvent::ContentToString ( uchar  Content)
static
const char* cEvent::Description ( void  ) const
inline
const char* cEvent::Description ( void  ) const
inline

Definition at line 102 of file include/vdr/epg.h.

References description.

void cEvent::Dump ( FILE *  f,
const char *  Prefix = "",
bool  InfoOnly = false 
) const
void cEvent::Dump ( FILE *  f,
const char *  Prefix = "",
bool  InfoOnly = false 
) const
int cEvent::Duration ( void  ) const
inline
int cEvent::Duration ( void  ) const
inline

Definition at line 108 of file include/vdr/epg.h.

References duration.

time_t cEvent::EndTime ( void  ) const
inline

Definition at line 107 of file epg.h.

References duration, and startTime.

Referenced by cSchedule::Cleanup(), cTimer::cTimer(), and cTimer::Matches().

time_t cEvent::EndTime ( void  ) const
inline

Definition at line 107 of file include/vdr/epg.h.

References duration, and startTime.

tEventID cEvent::EventID ( void  ) const
inline

Definition at line 96 of file epg.h.

References eventID.

Referenced by cEvent(), cSchedule::HashEvent(), Read(), SetEventID(), and cSchedule::UnhashEvent().

tEventID cEvent::EventID ( void  ) const
inline

Definition at line 96 of file include/vdr/epg.h.

References eventID.

void cEvent::FixEpgBugs ( void  )
void cEvent::FixEpgBugs ( void  )
cString cEvent::GetDateString ( void  ) const
cString cEvent::GetDateString ( void  ) const
cString cEvent::GetEndTimeString ( void  ) const
cString cEvent::GetEndTimeString ( void  ) const
cString cEvent::GetParentalRatingString ( void  ) const
cString cEvent::GetParentalRatingString ( void  ) const
cString cEvent::GetTimeString ( void  ) const
cString cEvent::GetTimeString ( void  ) const
cString cEvent::GetVpsString ( void  ) const
cString cEvent::GetVpsString ( void  ) const
bool cEvent::HasTimer ( void  ) const
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
bool cEvent::IsRunning ( bool  OrAboutToStart = false) const
int cEvent::ParentalRating ( void  ) const
inline
int cEvent::ParentalRating ( void  ) const
inline

Definition at line 105 of file include/vdr/epg.h.

References parentalRating.

bool cEvent::Parse ( char *  s)
bool cEvent::Parse ( char *  s)
bool cEvent::Read ( FILE *  f,
cSchedule Schedule 
)
static
static bool cEvent::Read ( FILE *  f,
cSchedule Schedule 
)
static
int cEvent::RunningStatus ( void  ) const
inline

Definition at line 99 of file epg.h.

References runningStatus.

Referenced by main(), and SetRunningStatus().

int cEvent::RunningStatus ( void  ) const
inline

Definition at line 99 of file include/vdr/epg.h.

References runningStatus.

const cSchedule* cEvent::Schedule ( void  ) const
inline

Definition at line 95 of file include/vdr/epg.h.

References schedule.

const cSchedule* cEvent::Schedule ( void  ) const
inline

Definition at line 95 of file epg.h.

References schedule.

Referenced by cTimer::Matches().

time_t cEvent::Seen ( void  ) const
inline

Definition at line 110 of file include/vdr/epg.h.

References seen.

time_t cEvent::Seen ( void  ) const
inline

Definition at line 110 of file epg.h.

References seen.

bool cEvent::SeenWithin ( int  Seconds) const
inline

Definition at line 111 of file include/vdr/epg.h.

References seen.

bool cEvent::SeenWithin ( int  Seconds) const
inline

Definition at line 111 of file epg.h.

References seen.

Referenced by main().

void cEvent::SetComponents ( cComponents Components)

Definition at line 195 of file epg.c.

References components, and Components().

Referenced by cEpgHandlers::SetComponents().

void cEvent::SetComponents ( cComponents Components)
void cEvent::SetContents ( uchar Contents)
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::SetDescription ( const char *  Description)
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::SetDuration ( int  Duration)
void cEvent::SetEventID ( tEventID  EventID)
void cEvent::SetEventID ( tEventID  EventID)
void cEvent::SetParentalRating ( int  ParentalRating)
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 
)
void cEvent::SetRunningStatus ( int  RunningStatus,
cChannel Channel = NULL 
)
void cEvent::SetSeen ( void  )

Definition at line 233 of file epg.c.

References seen.

Referenced by cEIT::cEIT(), and cEvent().

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::SetShortText ( const char *  ShortText)
void cEvent::SetStartTime ( time_t  StartTime)
void cEvent::SetStartTime ( time_t  StartTime)
void cEvent::SetTableID ( uchar  TableID)
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::SetTitle ( const char *  Title)
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::SetVersion ( uchar  Version)
void cEvent::SetVps ( time_t  Vps)

Definition at line 228 of file epg.c.

References vps, and Vps().

Referenced by Parse(), and cEpgHandlers::SetVps().

void cEvent::SetVps ( time_t  Vps)
const char* cEvent::ShortText ( void  ) const
inline
const char* cEvent::ShortText ( void  ) const
inline

Definition at line 101 of file include/vdr/epg.h.

References shortText.

time_t cEvent::StartTime ( void  ) const
inline
time_t cEvent::StartTime ( void  ) const
inline

Definition at line 106 of file include/vdr/epg.h.

References startTime.

uchar cEvent::TableID ( void  ) const
inline

Definition at line 97 of file include/vdr/epg.h.

References tableID.

uchar cEvent::TableID ( void  ) const
inline

Definition at line 97 of file epg.h.

References tableID.

Referenced by cEIT::cEIT(), cTable0Handler::Ignore(), Read(), and SetTableID().

const char* cEvent::Title ( void  ) const
inline

Definition at line 100 of file include/vdr/epg.h.

References title.

const char* cEvent::Title ( void  ) const
inline
cString cEvent::ToDescr ( void  ) const
cString cEvent::ToDescr ( void  ) const
uchar cEvent::Version ( void  ) const
inline

Definition at line 98 of file include/vdr/epg.h.

References version.

uchar cEvent::Version ( void  ) const
inline

Definition at line 98 of file epg.h.

References version.

Referenced by cEIT::cEIT(), Read(), and SetVersion().

time_t cEvent::Vps ( void  ) const
inline

Definition at line 109 of file include/vdr/epg.h.

References vps.

time_t cEvent::Vps ( void  ) const
inline

Friends And Related Function Documentation

cSchedule
friend

Definition at line 72 of file epg.h.

Member Data Documentation

cComponents * cEvent::components
private

Definition at line 84 of file epg.h.

Referenced by cEvent(), Components(), Dump(), FixEpgBugs(), Parse(), Read(), SetComponents(), and ~cEvent().

uchar cEvent::contents
private

Definition at line 85 of file epg.h.

Referenced by cEvent(), Contents(), Dump(), Parse(), and SetContents().

char * cEvent::description
private

Definition at line 83 of file epg.h.

Referenced by cEvent(), Description(), Dump(), FixEpgBugs(), SetDescription(), and ~cEvent().

int cEvent::duration
private

Definition at line 87 of file epg.h.

Referenced by cEvent(), Dump(), Duration(), EndTime(), GetEndTimeString(), and SetDuration().

tEventID cEvent::eventID
private

Definition at line 76 of file epg.h.

Referenced by cEvent(), Dump(), EventID(), and SetEventID().

uchar cEvent::parentalRating
private

Definition at line 80 of file epg.h.

Referenced by cEvent(), Dump(), GetParentalRatingString(), ParentalRating(), and SetParentalRating().

uchar cEvent::runningStatus
private

Definition at line 79 of file epg.h.

Referenced by cEvent(), IsRunning(), RunningStatus(), and SetRunningStatus().

cSchedule * cEvent::schedule
private
time_t cEvent::seen
private

Definition at line 89 of file epg.h.

Referenced by Read(), Seen(), SeenWithin(), and SetSeen().

char * cEvent::shortText
private

Definition at line 82 of file epg.h.

Referenced by cEvent(), Dump(), FixEpgBugs(), SetShortText(), ShortText(), and ~cEvent().

time_t cEvent::startTime
private
uchar cEvent::tableID
private

Definition at line 77 of file epg.h.

Referenced by cEvent(), Dump(), SetTableID(), and TableID().

char * cEvent::title
private

Definition at line 81 of file epg.h.

Referenced by cEvent(), Dump(), FixEpgBugs(), SetTitle(), Title(), and ~cEvent().

uchar cEvent::version
private

Definition at line 78 of file epg.h.

Referenced by cEvent(), Dump(), SetVersion(), and Version().

time_t cEvent::vps
private

Definition at line 88 of file epg.h.

Referenced by cEvent(), Dump(), GetVpsString(), SetVps(), and Vps().


The documentation for this class was generated from the following files: