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

Static Public Member Functions

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)

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.

Member Function Documentation

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.

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

Definition at line 103 of file epg.h.

Referenced by SetTrackDescriptions().

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

Definition at line 104 of file epg.h.

References MaxEventContents.

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

const char * cEvent::ContentToString ( uchar  Content)
static
const char* cEvent::Description ( void  ) const
inline
void cEvent::Dump ( FILE *  f,
const char *  Prefix = "",
bool  InfoOnly = false 
) const
int cEvent::Duration ( void  ) const
inline
time_t cEvent::EndTime ( void  ) const
inline

Definition at line 107 of file epg.h.

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

tEventID cEvent::EventID ( void  ) const
inline

Definition at line 96 of file epg.h.

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

void cEvent::FixEpgBugs ( void  )
cString cEvent::GetDateString ( void  ) const
cString cEvent::GetEndTimeString ( void  ) const
cString cEvent::GetParentalRatingString ( void  ) const
cString cEvent::GetTimeString ( void  ) const
cString cEvent::GetVpsString ( 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

Definition at line 255 of file epg.c.

References SI::RunningStatusPausing, and SI::RunningStatusStartsInAFewSeconds.

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

int cEvent::ParentalRating ( void  ) const
inline
bool cEvent::Parse ( char *  s)

Definition at line 466 of file epg.c.

References esyslog, MaxEventContents, cComponents::SetComponent(), skipspace(), and strreplace().

Referenced by Read().

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

Definition at line 99 of file epg.h.

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

Definition at line 95 of file epg.h.

Referenced by cTimer::Matches().

time_t cEvent::Seen ( void  ) const
inline

Definition at line 110 of file epg.h.

bool cEvent::SeenWithin ( int  Seconds) const
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 
)
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().

const char* cEvent::ShortText ( void  ) const
inline
time_t cEvent::StartTime ( void  ) const
inline
uchar cEvent::TableID ( void  ) const
inline

Definition at line 97 of file epg.h.

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

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

Definition at line 238 of file epg.c.

References cString::sprintf().

Referenced by cTimer::SetEvent().

uchar cEvent::Version ( void  ) const
inline

Definition at line 98 of file epg.h.

Referenced by cEIT::cEIT().

time_t cEvent::Vps ( void  ) const
inline

Friends And Related Function Documentation

friend class 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 Read().

uchar cEvent::contents[MaxEventContents]
private

Definition at line 85 of file epg.h.

char* cEvent::description
private

Definition at line 83 of file epg.h.

int cEvent::duration
private

Definition at line 87 of file epg.h.

tEventID cEvent::eventID
private

Definition at line 76 of file epg.h.

uchar cEvent::parentalRating
private

Definition at line 80 of file epg.h.

uchar cEvent::runningStatus
private

Definition at line 79 of file epg.h.

cSchedule* cEvent::schedule
private

Definition at line 75 of file epg.h.

Referenced by cSchedule::AddEvent(), and cSchedule::DelEvent().

time_t cEvent::seen
private

Definition at line 89 of file epg.h.

Referenced by Read().

char* cEvent::shortText
private

Definition at line 82 of file epg.h.

time_t cEvent::startTime
private

Definition at line 86 of file epg.h.

Referenced by Compare().

uchar cEvent::tableID
private

Definition at line 77 of file epg.h.

char* cEvent::title
private

Definition at line 81 of file epg.h.

uchar cEvent::version
private

Definition at line 78 of file epg.h.

time_t cEvent::vps
private

Definition at line 88 of file epg.h.


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