SASC
DVBSoftCAM

cEvent Class Reference

#include <epg.h>

Inheritance diagram for cEvent:

List of all members.

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

Friends

class cSchedule

Detailed Description

Definition at line 53 of file epg.h.


Constructor & Destructor Documentation

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

Member Function Documentation

tChannelID cEvent::ChannelID ( void  ) const
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 82 of file epg.h.

{ return components; }
const char* cEvent::Description ( void  ) const [inline]

Definition at line 81 of file epg.h.

{ return description; }
void cEvent::Dump ( FILE *  f,
const char *  Prefix = "",
bool  InfoOnly = false 
) const
int cEvent::Duration ( void  ) const [inline]

Definition at line 85 of file epg.h.

{ return duration; }
time_t cEvent::EndTime ( void  ) const [inline]

Definition at line 84 of file epg.h.

{ return startTime + duration; }
tEventID cEvent::EventID ( void  ) const [inline]

Definition at line 75 of file epg.h.

{ return eventID; }
void cEvent::FixEpgBugs ( void  )
cString cEvent::GetDateString ( void  ) const
cString cEvent::GetEndTimeString ( void  ) const
cString cEvent::GetTimeString ( void  ) const
cString cEvent::GetVpsString ( void  ) const
bool cEvent::HasTimer ( void  ) const
bool cEvent::IsRunning ( bool  OrAboutToStart = false) const
bool cEvent::Parse ( char *  s)
static bool cEvent::Read ( FILE *  f,
cSchedule *  Schedule 
) [static]
int cEvent::RunningStatus ( void  ) const [inline]

Definition at line 78 of file epg.h.

{ return runningStatus; }
const cSchedule* cEvent::Schedule ( void  ) const [inline]

Definition at line 74 of file epg.h.

{ return schedule; }
time_t cEvent::Seen ( void  ) const [inline]

Definition at line 87 of file epg.h.

{ return seen; }
bool cEvent::SeenWithin ( int  Seconds) const [inline]

Definition at line 88 of file epg.h.

References NULL.

{ return time(NULL) - seen < Seconds; }
void cEvent::SetComponents ( cComponents *  Components)
void cEvent::SetDescription ( const char *  Description)
void cEvent::SetDuration ( int  Duration)
void cEvent::SetEventID ( tEventID  EventID)
void cEvent::SetRunningStatus ( int  RunningStatus,
cChannel *  Channel = NULL 
)
void cEvent::SetSeen ( void  )
void cEvent::SetShortText ( const char *  ShortText)
void cEvent::SetStartTime ( time_t  StartTime)
void cEvent::SetTableID ( uchar  TableID)
void cEvent::SetTitle ( const char *  Title)
void cEvent::SetVersion ( uchar  Version)
void cEvent::SetVps ( time_t  Vps)
const char* cEvent::ShortText ( void  ) const [inline]

Definition at line 80 of file epg.h.

{ return shortText; }
time_t cEvent::StartTime ( void  ) const [inline]

Definition at line 83 of file epg.h.

{ return startTime; }
uchar cEvent::TableID ( void  ) const [inline]

Definition at line 76 of file epg.h.

{ return tableID; }
const char* cEvent::Title ( void  ) const [inline]

Definition at line 79 of file epg.h.

{ return title; }
cString cEvent::ToDescr ( void  ) const
uchar cEvent::Version ( void  ) const [inline]

Definition at line 77 of file epg.h.

References version.

{ return version; }
time_t cEvent::Vps ( void  ) const [inline]

Definition at line 86 of file epg.h.

{ return vps; }

Friends And Related Function Documentation

friend class cSchedule [friend]

Definition at line 54 of file epg.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines