Home

Dokumentation

Impressum

Dokumentation VDR
 

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

cSchedule Class Reference

#include <eit.h>

Inheritance diagram for cSchedule:

Inheritance graph
[legend]
Collaboration diagram for cSchedule:

Collaboration graph
[legend]

Public Methods

 ~cSchedule ()
cEventInfoAddEvent (cEventInfo *EventInfo)
const cEventInfoGetPresentEvent (void) const
const cEventInfoGetFollowingEvent (void) const
tChannelID GetChannelID (void) const
const cEventInfoGetEvent (unsigned short uEventID, time_t tTime=0) const
const cEventInfoGetEventAround (time_t tTime) const
const cEventInfoGetEventNumber (int n) const
int NumEvents (void) const
void Dump (FILE *f, const char *Prefix="") const

Static Public Methods

bool Read (FILE *f, cSchedules *Schedules)

Protected Methods

void SetChannelID (tChannelID channelid)
bool SetFollowingEvent (cEventInfo *pEvent)
bool SetPresentEvent (cEventInfo *pEvent)
void Cleanup (time_t tTime)
void Cleanup (void)
 cSchedule (tChannelID channelid=tChannelID::InvalidID)

Private Attributes

cEventInfopPresent
cEventInfopFollowing
tChannelID channelID
cList< cEventInfoEvents

Friends

class cSchedules
class cEIT

Constructor & Destructor Documentation

cSchedule::cSchedule tChannelID    channelid = tChannelID::InvalidID [protected]
 

Definition at line 611 of file eit.c.

References channelID, pFollowing, and pPresent.

cSchedule::~cSchedule  
 

Definition at line 618 of file eit.c.


Member Function Documentation

cEventInfo * cSchedule::AddEvent cEventInfo   EventInfo
 

Definition at line 622 of file eit.c.

References cListBase::Add(), and Events.

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

void cSchedule::Cleanup void    [protected]
 

Definition at line 713 of file eit.c.

void cSchedule::Cleanup time_t    tTime [protected]
 

Definition at line 719 of file eit.c.

References cListBase::Del(), Events, cList< cEventInfo >::Get(), cEventInfo::GetDuration(), and cEventInfo::GetTime().

Referenced by cSchedules::Cleanup().

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

Definition at line 736 of file eit.c.

References cEventInfo::Dump(), Events, cList< cEventInfo >::First(), cChannel::GetChannelID(), cChannel::Name(), cList< cEventInfo >::Next(), and tChannelID::ToString().

Referenced by cSchedules::Dump().

tChannelID cSchedule::GetChannelID void    const
 

Definition at line 653 of file eit.c.

References channelID.

Referenced by cSchedules::GetSchedule(), and cEventInfo::Read().

const cEventInfo * cSchedule::GetEvent unsigned short    uEventID,
time_t    tTime = 0
const
 

Definition at line 658 of file eit.c.

References Events, cList< cEventInfo >::First(), cEventInfo::GetEventID(), cEventInfo::GetTime(), and cList< cEventInfo >::Next().

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

const cEventInfo * cSchedule::GetEventAround time_t    tTime const
 

Definition at line 677 of file eit.c.

References Events, cList< cEventInfo >::First(), cEventInfo::GetDuration(), cEventInfo::GetTime(), and cList< cEventInfo >::Next().

Referenced by cRecordControl::GetEventInfo(), and GetPresentEvent().

const cEventInfo* cSchedule::GetEventNumber int    n const [inline]
 

Definition at line 153 of file eit.h.

References cList< T >::Get().

Referenced by cMenuSchedule::PrepareSchedule().

const cEventInfo * cSchedule::GetFollowingEvent void    const
 

Definition at line 633 of file eit.c.

References Events, cList< cEventInfo >::First(), cEventInfo::GetTime(), and cList< cEventInfo >::Next().

Referenced by cMenuWhatsOn::cMenuWhatsOn(), and cDisplayChannel::DisplayInfo().

const cEventInfo * cSchedule::GetPresentEvent void    const
 

Definition at line 628 of file eit.c.

References GetEventAround().

Referenced by cMenuWhatsOn::cMenuWhatsOn(), and cDisplayChannel::DisplayInfo().

int cSchedule::NumEvents void    const [inline]
 

Definition at line 154 of file eit.h.

References cListBase::Count().

Referenced by cMenuSchedule::PrepareSchedule().

bool cSchedule::Read FILE *    f,
cSchedules   Schedules
[static]
 

Definition at line 748 of file eit.c.

References cSchedules::AddChannelID(), channelID, esyslog, tChannelID::FromString(), cEventInfo::Read(), readline(), skipspace(), and tChannelID::Valid().

Referenced by cSchedules::Read().

void cSchedule::SetChannelID tChannelID    channelid [protected]
 

Definition at line 648 of file eit.c.

References channelID.

bool cSchedule::SetFollowingEvent cEventInfo   pEvent [protected]
 

Definition at line 702 of file eit.c.

References pFollowing, and cEventInfo::SetFollowing().

Referenced by cEIT::ProcessEIT().

bool cSchedule::SetPresentEvent cEventInfo   pEvent [protected]
 

Definition at line 691 of file eit.c.

References pPresent, and cEventInfo::SetPresent().

Referenced by cEIT::ProcessEIT().


Friends And Related Function Documentation

friend class cEIT [friend]
 

Definition at line 132 of file eit.h.

friend class cSchedules [friend]
 

Definition at line 131 of file eit.h.


Field Documentation

tChannelID cSchedule::channelID [private]
 

Definition at line 136 of file eit.h.

Referenced by cSchedule(), GetChannelID(), Read(), and SetChannelID().

cList<cEventInfo> cSchedule::Events [private]
 

Definition at line 137 of file eit.h.

Referenced by AddEvent(), Cleanup(), Dump(), GetEvent(), GetEventAround(), and GetFollowingEvent().

cEventInfo* cSchedule::pFollowing [private]
 

Definition at line 135 of file eit.h.

Referenced by cSchedule(), and SetFollowingEvent().

cEventInfo* cSchedule::pPresent [private]
 

Definition at line 134 of file eit.h.

Referenced by cSchedule(), and SetPresentEvent().


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