cEvent Class Reference

#include <epg.h>

Inheritance diagram for cEvent:

Inheritance graph
[legend]
Collaboration diagram for cEvent:

Collaboration graph
[legend]

List of all members.

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
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 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 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)

Static Public Member Functions

static bool Read (FILE *f, cSchedule *Schedule)

Private Attributes

cScheduleschedule
tEventID eventID
uchar tableID
uchar version
int runningStatus
char * title
char * shortText
char * description
cComponentscomponents
time_t startTime
int duration
time_t vps
time_t seen

Friends

class cSchedule


Detailed Description

Definition at line 53 of file epg.h.


Constructor & Destructor Documentation

cEvent::cEvent ( tEventID  EventID  ) 

Definition at line 104 of file epg.c.

References components, description, duration, eventID, runningStatus, SI::RunningStatusUndefined, schedule, SetSeen(), shortText, startTime, tableID, title, version, and vps.

Referenced by Read().

Here is the call graph for this function:

cEvent::~cEvent (  ) 

Definition at line 121 of file epg.c.

References components, description, shortText, and title.


Member Function Documentation

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 129 of file epg.c.

References startTime.

tChannelID cEvent::ChannelID ( void   )  const

Definition at line 135 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().

Here is the call graph for this function:

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

Definition at line 74 of file epg.h.

References schedule.

tEventID cEvent::EventID ( void   )  const [inline]

Definition at line 75 of file epg.h.

References eventID.

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

uchar cEvent::TableID ( void   )  const [inline]

Definition at line 76 of file epg.h.

References tableID.

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

uchar cEvent::Version ( void   )  const [inline]

Definition at line 77 of file epg.h.

References version.

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

int cEvent::RunningStatus ( void   )  const [inline]

Definition at line 78 of file epg.h.

References runningStatus.

Referenced by main().

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

const char* cEvent::ShortText ( void   )  const [inline]

const char* cEvent::Description ( void   )  const [inline]

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

Definition at line 82 of file epg.h.

References components.

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

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

time_t cEvent::EndTime ( void   )  const [inline]

Definition at line 84 of file epg.h.

References duration, and startTime.

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

int cEvent::Duration ( void   )  const [inline]

time_t cEvent::Vps ( void   )  const [inline]

time_t cEvent::Seen ( void   )  const [inline]

Definition at line 87 of file epg.h.

References seen.

bool cEvent::SeenWithin ( int  Seconds  )  const [inline]

Definition at line 88 of file epg.h.

References seen.

Referenced by main().

bool cEvent::HasTimer ( void   )  const

Definition at line 223 of file epg.c.

References cList< T >::First(), cList< T >::Next(), and Timers.

Referenced by cSchedule::Cleanup().

Here is the call graph for this function:

bool cEvent::IsRunning ( bool  OrAboutToStart = false  )  const

cString cEvent::GetDateString ( void   )  const

Definition at line 237 of file epg.c.

References DateString(), and startTime.

Referenced by cSkinSTTNGDisplayMenu::SetEvent(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), and ToDescr().

Here is the call graph for this function:

cString cEvent::GetTimeString ( void   )  const

cString cEvent::GetEndTimeString ( void   )  const

Definition at line 247 of file epg.c.

References duration, startTime, and TimeString().

Referenced by cSkinSTTNGDisplayMenu::SetEvent(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), and ToDescr().

Here is the call graph for this function:

cString cEvent::GetVpsString ( void   )  const

void cEvent::SetEventID ( tEventID  EventID  ) 

Definition at line 140 of file epg.c.

References eventID, cSchedule::HashEvent(), schedule, and cSchedule::UnhashEvent().

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

Here is the call graph for this function:

void cEvent::SetTableID ( uchar  TableID  ) 

Definition at line 151 of file epg.c.

References tableID.

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

void cEvent::SetVersion ( uchar  Version  ) 

Definition at line 156 of file epg.c.

References version.

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

void cEvent::SetRunningStatus ( int  RunningStatus,
cChannel Channel = NULL 
)

Definition at line 161 of file epg.c.

References cChannel::HasTimer(), isyslog, cChannel::Name(), cChannel::Number(), runningStatus, SI::RunningStatusNotRunning, SI::RunningStatusUndefined, and ToDescr().

Here is the call graph for this function:

void cEvent::SetTitle ( const char *  Title  ) 

Definition at line 168 of file epg.c.

References strcpyrealloc(), and title.

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

Here is the call graph for this function:

void cEvent::SetShortText ( const char *  ShortText  ) 

Definition at line 173 of file epg.c.

References shortText, and strcpyrealloc().

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

Here is the call graph for this function:

void cEvent::SetDescription ( const char *  Description  ) 

Definition at line 178 of file epg.c.

References description, and strcpyrealloc().

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

Here is the call graph for this function:

void cEvent::SetComponents ( cComponents Components  ) 

Definition at line 183 of file epg.c.

References components.

Referenced by cEIT::cEIT().

void cEvent::SetStartTime ( time_t  StartTime  ) 

Definition at line 189 of file epg.c.

References cSchedule::HashEvent(), schedule, startTime, and cSchedule::UnhashEvent().

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

Here is the call graph for this function:

void cEvent::SetDuration ( int  Duration  ) 

Definition at line 200 of file epg.c.

References duration.

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

void cEvent::SetVps ( time_t  Vps  ) 

Definition at line 205 of file epg.c.

References vps.

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

void cEvent::SetSeen ( void   ) 

Definition at line 210 of file epg.c.

References seen.

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

cString cEvent::ToDescr ( void   )  const

Definition at line 215 of file epg.c.

References GetDateString(), GetEndTimeString(), GetTimeString(), GetVpsString(), cString::sprintf(), Title(), and Vps().

Referenced by cTimer::SetEvent(), and SetRunningStatus().

Here is the call graph for this function:

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

bool cEvent::Parse ( char *  s  ) 

Definition at line 288 of file epg.c.

References components, esyslog, cComponents::NumComponents(), cComponents::SetComponent(), SetDescription(), SetShortText(), SetTitle(), SetVps(), skipspace(), and strreplace().

Referenced by cRecordingInfo::Read(), and Read().

Here is the call graph for this function:

bool cEvent::Read ( FILE *  f,
cSchedule Schedule 
) [static]

void cEvent::FixEpgBugs ( void   ) 


Friends And Related Function Documentation

friend class cSchedule [friend]

Definition at line 54 of file epg.h.


Member Data Documentation

Definition at line 57 of file epg.h.

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

Definition at line 58 of file epg.h.

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

Definition at line 59 of file epg.h.

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

int cEvent::runningStatus [private]

Definition at line 60 of file epg.h.

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

char* cEvent::title [private]

Definition at line 61 of file epg.h.

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

char* cEvent::shortText [private]

Definition at line 62 of file epg.h.

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

char* cEvent::description [private]

Definition at line 63 of file epg.h.

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

Definition at line 64 of file epg.h.

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

time_t cEvent::startTime [private]

int cEvent::duration [private]

Definition at line 66 of file epg.h.

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

time_t cEvent::vps [private]

Definition at line 67 of file epg.h.

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

time_t cEvent::seen [private]

Definition at line 68 of file epg.h.

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


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

Generated on Tue Jan 13 14:28:53 2009 for VDR by  doxygen 1.5.6