Home

Dokumentation

Impressum

Dokumentation VDR
 

Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

cEventInfo Class Reference

#include <eit.h>

Inheritance diagram for cEventInfo:

Inheritance graph
[legend]
Collaboration diagram for cEventInfo:

Collaboration graph
[legend]

Detailed Description

Check for events.

Definition at line 32 of file eit.h.

Public Methods

 ~cEventInfo ()
const unsigned char GetTableID (void) const
const char * GetTimeString (void) const
const char * GetEndTimeString (void) const
const char * GetDate (void) const
bool IsFollowing (void) const
bool IsPresent (void) const
const char * GetExtendedDescription (void) const
const char * GetSubtitle (void) const
const char * GetTitle (void) const
unsigned short GetEventID (void) const
long GetDuration (void) const
time_t GetTime (void) const
tChannelID GetChannelID (void) const
int GetChannelNumber (void) const
void SetChannelNumber (int ChannelNumber) const
void Dump (FILE *f, const char *Prefix="") const
void FixEpgBugs (void)

Static Public Methods

bool Read (FILE *f, cSchedule *Schedule)

Protected Methods

void SetTableID (unsigned char tableid)
void SetFollowing (bool foll)
void SetPresent (bool pres)
void SetTitle (const char *string)
void SetChannelID (tChannelID channelid)
void SetEventID (unsigned short evid)
void SetDuration (long l)
void SetTime (time_t t)
void SetExtendedDescription (const char *string)
void SetSubtitle (const char *string)
 cEventInfo (tChannelID channelid, unsigned short eventid)

Private Attributes

unsigned char uTableID
tChannelID channelID
bool bIsFollowing
bool bIsPresent
char * pExtendedDescription
char * pSubtitle
char * pTitle
unsigned short uEventID
long lDuration
time_t tTime
int nChannelNumber

Friends

class cSchedule
class cEIT


Constructor & Destructor Documentation

cEventInfo::cEventInfo tChannelID    channelid,
unsigned short    eventid
[protected]
 

Definition at line 183 of file eit.c.

References bIsFollowing, bIsPresent, channelID, lDuration, nChannelNumber, pExtendedDescription, pSubtitle, pTitle, tTime, uEventID, and uTableID.

Referenced by Read().

cEventInfo::~cEventInfo  
 

Definition at line 197 of file eit.c.


Member Function Documentation

void cEventInfo::Dump FILE *    f,
const char *    Prefix = ""
const
 

Definition at line 340 of file eit.c.

References isempty(), lDuration, and tTime.

Referenced by cSchedule::Dump().

void cEventInfo::FixEpgBugs void   
 

Definition at line 467 of file eit.c.

References compactspace(), EpgBugFixStat(), GetChannelID(), pExtendedDescription, pSubtitle, pTitle, startswith(), and strreplace().

Referenced by cEIT::ProcessEIT().

tChannelID cEventInfo::GetChannelID void    const
 

Definition at line 334 of file eit.c.

References channelID.

Referenced by cMenuEvent::cMenuEvent(), cTimer::cTimer(), FixEpgBugs(), cMenuSchedule::ProcessKey(), and cMenuWhatsOn::Switch().

int cEventInfo::GetChannelNumber void    const [inline]
 

Definition at line 119 of file eit.h.

Referenced by cMenuWhatsOnItem::cMenuWhatsOnItem(), and cMenuWhatsOn::ProcessKey().

const char * cEventInfo::GetDate void    const
 

Definition at line 246 of file eit.c.

Referenced by cMenuEvent::cMenuEvent(), and cMenuScheduleItem::cMenuScheduleItem().

long cEventInfo::GetDuration void    const
 

Definition at line 288 of file eit.c.

References lDuration.

Referenced by cSchedule::Cleanup(), cTimer::cTimer(), cSchedule::GetEventAround(), and cMenuSchedule::PrepareSchedule().

const char * cEventInfo::GetEndTimeString void    const
 

Definition at line 272 of file eit.c.

References lDuration, and tTime.

Referenced by cMenuEvent::cMenuEvent().

unsigned short cEventInfo::GetEventID void    const
 

Definition at line 293 of file eit.c.

References uEventID.

Referenced by cSchedule::GetEvent().

const char * cEventInfo::GetExtendedDescription void    const
 

Definition at line 215 of file eit.c.

References pExtendedDescription.

Referenced by cMenuEvent::cMenuEvent(), cRecordControl::cRecordControl(), and cEIT::ProcessEIT().

const char * cEventInfo::GetSubtitle void    const
 

Definition at line 210 of file eit.c.

References pSubtitle.

Referenced by cMenuEvent::cMenuEvent(), cRecordControl::cRecordControl(), cDisplayChannel::DisplayInfo(), and cEIT::ProcessEIT().

const unsigned char cEventInfo::GetTableID void    const
 

Definition at line 256 of file eit.c.

References uTableID.

Referenced by cEIT::ProcessEIT().

time_t cEventInfo::GetTime void    const
 

Definition at line 283 of file eit.c.

References tTime.

Referenced by cSchedule::Cleanup(), cTimer::cTimer(), cDisplayChannel::DisplayInfo(), cSchedule::GetEvent(), cSchedule::GetEventAround(), cSchedule::GetFollowingEvent(), and cMenuSchedule::PrepareSchedule().

const char * cEventInfo::GetTimeString void    const
 

Definition at line 262 of file eit.c.

Referenced by cMenuEvent::cMenuEvent(), cMenuScheduleItem::cMenuScheduleItem(), cMenuWhatsOnItem::cMenuWhatsOnItem(), and cDisplayChannel::DisplayInfo().

const char * cEventInfo::GetTitle void    const
 

Definition at line 205 of file eit.c.

References pTitle.

Referenced by cMenuEvent::cMenuEvent(), cMenuScheduleItem::cMenuScheduleItem(), cMenuWhatsOnItem::cMenuWhatsOnItem(), cRecordControl::cRecordControl(), cTimer::cTimer(), cDisplayChannel::DisplayInfo(), and cEIT::ProcessEIT().

bool cEventInfo::IsFollowing void    const
 

Definition at line 230 of file eit.c.

References bIsFollowing.

bool cEventInfo::IsPresent void    const
 

Definition at line 220 of file eit.c.

References bIsPresent.

bool cEventInfo::Read FILE *    f,
cSchedule   Schedule
[static]
 

Definition at line 354 of file eit.c.

References cSchedule::AddEvent(), cEventInfo(), esyslog, cSchedule::GetChannelID(), cSchedule::GetEvent(), lDuration, readline(), SetDuration(), SetExtendedDescription(), SetSubtitle(), SetTableID(), SetTime(), SetTitle(), skipspace(), tTime, uEventID, and uTableID.

Referenced by cSchedule::Read().

void cEventInfo::SetChannelID tChannelID    channelid [protected]
 

Definition at line 328 of file eit.c.

References channelID.

void cEventInfo::SetChannelNumber int    ChannelNumber const [inline]
 

doesn't modify the EIT data, so it's ok to make it 'const'

Definition at line 124 of file eit.h.

Referenced by cMenuWhatsOn::cMenuWhatsOn().

void cEventInfo::SetDuration long    l [protected]
 

Definition at line 318 of file eit.c.

References lDuration.

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

void cEventInfo::SetEventID unsigned short    evid [protected]
 

Definition at line 323 of file eit.c.

References uEventID.

void cEventInfo::SetExtendedDescription const char *    string [protected]
 

Definition at line 308 of file eit.c.

References pExtendedDescription, and strcpyrealloc().

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

void cEventInfo::SetFollowing bool    foll [protected]
 

Definition at line 241 of file eit.c.

References bIsFollowing.

Referenced by cSchedule::SetFollowingEvent().

void cEventInfo::SetPresent bool    pres [protected]
 

Definition at line 225 of file eit.c.

References bIsPresent.

Referenced by cSchedule::SetPresentEvent().

void cEventInfo::SetSubtitle const char *    string [protected]
 

Definition at line 303 of file eit.c.

References pSubtitle, and strcpyrealloc().

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

void cEventInfo::SetTableID unsigned char    tableid [protected]
 

Definition at line 235 of file eit.c.

References uTableID.

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

void cEventInfo::SetTime time_t    t [protected]
 

Definition at line 313 of file eit.c.

References tTime.

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

void cEventInfo::SetTitle const char *    string [protected]
 

Definition at line 298 of file eit.c.

References pTitle, and strcpyrealloc().

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


Friends And Related Function Documentation

friend class cEIT [friend]
 

Definition at line 34 of file eit.h.

friend class cSchedule [friend]
 

Definition at line 33 of file eit.h.


Field Documentation

bool cEventInfo::bIsFollowing [private]
 

true if this is the next event on this channel

Definition at line 50 of file eit.h.

Referenced by cEventInfo(), IsFollowing(), and SetFollowing().

bool cEventInfo::bIsPresent [private]
 

true if this is the present event running

Definition at line 55 of file eit.h.

Referenced by cEventInfo(), IsPresent(), and SetPresent().

tChannelID cEventInfo::channelID [private]
 

Channel ID of program for that event

Definition at line 45 of file eit.h.

Referenced by cEventInfo(), GetChannelID(), and SetChannelID().

long cEventInfo::lDuration [private]
 

duration of event in seconds

Definition at line 80 of file eit.h.

Referenced by cEventInfo(), Dump(), GetDuration(), GetEndTimeString(), Read(), and SetDuration().

int cEventInfo::nChannelNumber [private]
 

the actual channel number from VDR's channel list (used in cMenuSchedule for sorting by channel number)

Definition at line 91 of file eit.h.

Referenced by cEventInfo().

char* cEventInfo::pExtendedDescription [private]
 

Extended description of this event

Definition at line 60 of file eit.h.

Referenced by cEventInfo(), FixEpgBugs(), GetExtendedDescription(), and SetExtendedDescription().

char* cEventInfo::pSubtitle [private]
 

Subtitle of event

Definition at line 65 of file eit.h.

Referenced by cEventInfo(), FixEpgBugs(), GetSubtitle(), and SetSubtitle().

char* cEventInfo::pTitle [private]
 

Title of event

Definition at line 70 of file eit.h.

Referenced by cEventInfo(), FixEpgBugs(), GetTitle(), and SetTitle().

time_t cEventInfo::tTime [private]
 

Start time

Definition at line 85 of file eit.h.

Referenced by cEventInfo(), Dump(), GetEndTimeString(), GetTime(), Read(), and SetTime().

unsigned short cEventInfo::uEventID [private]
 

Event ID of this event

Definition at line 75 of file eit.h.

Referenced by cEventInfo(), GetEventID(), Read(), and SetEventID().

unsigned char cEventInfo::uTableID [private]
 

Table ID this event came from

Definition at line 40 of file eit.h.

Referenced by cEventInfo(), GetTableID(), Read(), and SetTableID().


The documentation for this class was generated from the following files:
Generated on Wed Feb 5 23:31:13 2003 for VDR by doxygen1.3-rc2