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 648 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 742 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 759 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 772 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 778 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 791 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 823 of file epg.c.

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

Here is the call graph for this function:

void cSchedule::Cleanup ( void   ) 

Definition at line 818 of file epg.c.

cEvent * cSchedule::AddEvent ( cEvent Event  ) 

Definition at line 656 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 664 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 674 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 681 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]

Definition at line 144 of file epg.h.

References events.

Referenced by cMenuSchedule::PrepareScheduleAllAll(), cMenuSchedule::PrepareScheduleAllThis(), cMenuSchedule::PrepareScheduleThisAll(), cMenuSchedule::PrepareScheduleThisThis(), and cTimer::SetEventFromSchedule().

const cEvent * cSchedule::GetPresentEvent ( void   )  const

Definition at line 688 of file epg.c.

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

Referenced by cMenuWhatsOn::cMenuWhatsOn(), cDisplayChannel::DisplayInfo(), Dump(), GetFollowingEvent(), cMenuSchedule::PrepareScheduleAllThis(), and SetTrackDescriptions().

Here is the call graph for this function:

const cEvent * cSchedule::GetFollowingEvent ( void   )  const

Definition at line 703 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 718 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 728 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

Definition at line 834 of file epg.c.

References channelID, Channels, dmAll, dmAtTime, dmFollowing, dmPresent, events, cList< T >::First(), cChannels::GetByChannelID(), cChannel::GetChannelID(), GetEventAround(), GetFollowingEvent(), GetPresentEvent(), cChannel::Name(), cList< T >::Next(), and tChannelID::ToString().

Referenced by cSVDRP::CmdLSTE().

Here is the call graph for this function:

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

Definition at line 866 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

tChannelID cSchedule::channelID [private]

Definition at line 118 of file epg.h.

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

cList<cEvent> cSchedule::events [private]

Definition at line 119 of file epg.h.

Referenced by AddEvent(), Cleanup(), ClrRunningStatus(), DelEvent(), DropOutdated(), Dump(), Events(), GetEventAround(), GetFollowingEvent(), GetPresentEvent(), ResetVersions(), SetRunningStatus(), and Sort().

cHash<cEvent> cSchedule::eventsHashID [private]

Definition at line 120 of file epg.h.

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

cHash<cEvent> cSchedule::eventsHashStartTime [private]

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 Nov 6 20:26:00 2007 for VDR by  doxygen 1.5.3-20071008