cSchedule Class Reference

#include <epg.h>

Inheritance diagram for cSchedule:

Inheritance graph
[legend]
Collaboration diagram for cSchedule:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cSchedule (tChannelID ChannelID)
tChannelID ChannelID (void) const
time_t Modified (void) const
time_t PresentSeen (void) const
bool PresentSeenWithin (int Seconds) const
void SetModified (void)
void SetPresentSeen (void)
void SetRunningStatus (cEvent *Event, int RunningStatus, cChannel *Channel=NULL)
void ClrRunningStatus (cChannel *Channel=NULL)
void ResetVersions (void)
void Sort (void)
void DropOutdated (time_t SegmentStart, time_t SegmentEnd, uchar TableID, uchar Version)
void Cleanup (time_t Time)
void Cleanup (void)
cEventAddEvent (cEvent *Event)
void DelEvent (cEvent *Event)
void HashEvent (cEvent *Event)
void UnhashEvent (cEvent *Event)
const cList< cEvent > * Events (void) const
const cEventGetPresentEvent (void) const
const cEventGetFollowingEvent (void) const
const cEventGetEvent (tEventID EventID, time_t StartTime=0) const
const cEventGetEventAround (time_t Time) const
void Dump (FILE *f, const char *Prefix="", eDumpMode DumpMode=dmAll, time_t AtTime=0) const

Static Public Member Functions

static bool Read (FILE *f, cSchedules *Schedules)

Private Attributes

tChannelID channelID
cList< cEventevents
cHash< cEventeventsHashID
cHash< cEventeventsHashStartTime
bool hasRunning
time_t modified
time_t presentSeen


Detailed Description

Definition at line 116 of file epg.h.


Constructor & Destructor Documentation

cSchedule::cSchedule ( tChannelID  ChannelID  ) 

Definition at line 653 of file epg.c.

References channelID, hasRunning, modified, and presentSeen.


Member Function Documentation

tChannelID cSchedule::ChannelID ( void   )  const [inline]

Definition at line 127 of file epg.h.

References channelID.

Referenced by cEvent::ChannelID().

time_t cSchedule::Modified ( void   )  const [inline]

Definition at line 128 of file epg.h.

References modified.

Referenced by cTimer::SetEventFromSchedule().

time_t cSchedule::PresentSeen ( void   )  const [inline]

Definition at line 129 of file epg.h.

References presentSeen.

bool cSchedule::PresentSeenWithin ( int  Seconds  )  const [inline]

Definition at line 130 of file epg.h.

References presentSeen.

Referenced by main().

void cSchedule::SetModified ( void   )  [inline]

Definition at line 131 of file epg.h.

References modified.

Referenced by cSchedules::SetModified().

void cSchedule::SetPresentSeen ( void   )  [inline]

Definition at line 132 of file epg.h.

References presentSeen.

Referenced by cEIT::cEIT().

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

Definition at line 747 of file epg.c.

References events, cList< T >::First(), hasRunning, cList< T >::Next(), SI::RunningStatusNotRunning, SI::RunningStatusPausing, and cEvent::StartTime().

Referenced by cEIT::cEIT().

Here is the call graph for this function:

void cSchedule::ClrRunningStatus ( cChannel Channel = NULL  ) 

Definition at line 764 of file epg.c.

References events, cList< T >::First(), hasRunning, cList< T >::Next(), SI::RunningStatusNotRunning, and SI::RunningStatusPausing.

Referenced by cEIT::cEIT(), DelEvent(), and DropOutdated().

Here is the call graph for this function:

void cSchedule::ResetVersions ( void   ) 

Definition at line 777 of file epg.c.

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

Here is the call graph for this function:

void cSchedule::Sort ( void   ) 

Definition at line 783 of file epg.c.

References events, cList< T >::First(), hasRunning, cList< T >::Next(), SI::RunningStatusNotRunning, SI::RunningStatusPausing, and cListBase::Sort().

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

Here is the call graph for this function:

void cSchedule::DropOutdated ( time_t  SegmentStart,
time_t  SegmentEnd,
uchar  TableID,
uchar  Version 
)

Definition at line 796 of file epg.c.

References ClrRunningStatus(), events, cList< T >::First(), hasRunning, cList< T >::Next(), and UnhashEvent().

Referenced by cEIT::cEIT().

Here is the call graph for this function:

void cSchedule::Cleanup ( time_t  Time  ) 

Definition at line 828 of file epg.c.

References DelEvent(), cEvent::EndTime(), cSetup::EPGLinger, events, cList< T >::First(), cEvent::HasTimer(), and Setup.

Referenced by cSVDRP::CmdCLRE().

Here is the call graph for this function:

void cSchedule::Cleanup ( void   ) 

Definition at line 823 of file epg.c.

cEvent * cSchedule::AddEvent ( cEvent Event  ) 

Definition at line 661 of file epg.c.

References cListBase::Add(), events, HashEvent(), and cEvent::schedule.

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

Here is the call graph for this function:

void cSchedule::DelEvent ( cEvent Event  ) 

Definition at line 669 of file epg.c.

References ClrRunningStatus(), cListBase::Del(), events, hasRunning, cEvent::IsRunning(), cEvent::schedule, and UnhashEvent().

Referenced by Cleanup().

Here is the call graph for this function:

void cSchedule::HashEvent ( cEvent Event  ) 

Definition at line 679 of file epg.c.

References cHashBase::Add(), cEvent::EventID(), eventsHashID, eventsHashStartTime, and cEvent::StartTime().

Referenced by AddEvent(), cEvent::SetEventID(), and cEvent::SetStartTime().

Here is the call graph for this function:

void cSchedule::UnhashEvent ( cEvent Event  ) 

Definition at line 686 of file epg.c.

References cHashBase::Del(), cEvent::EventID(), eventsHashID, eventsHashStartTime, and cEvent::StartTime().

Referenced by DelEvent(), DropOutdated(), cEvent::SetEventID(), and cEvent::SetStartTime().

Here is the call graph for this function:

const cList<cEvent>* cSchedule::Events ( void   )  const [inline]

const cEvent * cSchedule::GetPresentEvent ( void   )  const

const cEvent * cSchedule::GetFollowingEvent ( void   )  const

Definition at line 708 of file epg.c.

References events, cList< T >::First(), GetPresentEvent(), cList< T >::Next(), and cEvent::StartTime().

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

Here is the call graph for this function:

const cEvent * cSchedule::GetEvent ( tEventID  EventID,
time_t  StartTime = 0 
) const

Definition at line 723 of file epg.c.

References eventsHashID, eventsHashStartTime, and cHash< T >::Get().

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

Here is the call graph for this function:

const cEvent * cSchedule::GetEventAround ( time_t  Time  )  const

Definition at line 733 of file epg.c.

References events, cList< T >::First(), cList< T >::Next(), and cEvent::StartTime().

Referenced by Dump(), and cRecordControl::GetEvent().

Here is the call graph for this function:

void cSchedule::Dump ( FILE *  f,
const char *  Prefix = "",
eDumpMode  DumpMode = dmAll,
time_t  AtTime = 0 
) const

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

Definition at line 871 of file epg.c.

References cSchedules::AddSchedule(), channelID, esyslog, tChannelID::FromString(), cEvent::Read(), cReadLine::Read(), cSchedules::SetModified(), skipspace(), Sort(), and tChannelID::Valid().

Referenced by cSchedules::Read().

Here is the call graph for this function:


Member Data Documentation

Definition at line 118 of file epg.h.

Referenced by ChannelID(), cSchedule(), Dump(), and Read().

Definition at line 120 of file epg.h.

Referenced by GetEvent(), HashEvent(), and UnhashEvent().

Definition at line 121 of file epg.h.

Referenced by GetEvent(), HashEvent(), and UnhashEvent().

bool cSchedule::hasRunning [private]

Definition at line 122 of file epg.h.

Referenced by ClrRunningStatus(), cSchedule(), DelEvent(), DropOutdated(), SetRunningStatus(), and Sort().

time_t cSchedule::modified [private]

Definition at line 123 of file epg.h.

Referenced by cSchedule(), Modified(), and SetModified().

time_t cSchedule::presentSeen [private]

Definition at line 124 of file epg.h.

Referenced by cSchedule(), PresentSeen(), PresentSeenWithin(), and SetPresentSeen().


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

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