vdr  2.2.0
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
cSchedule Class Reference

#include <epg.h>

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
 
- Public Member Functions inherited from cListObject
 cListObject (void)
 
virtual ~cListObject ()
 
virtual int Compare (const cListObject &ListObject) const
 
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 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 143 of file epg.h.

Constructor & Destructor Documentation

cSchedule::cSchedule ( tChannelID  ChannelID)

Definition at line 881 of file epg.c.

Member Function Documentation

cEvent * cSchedule::AddEvent ( cEvent Event)

Definition at line 889 of file epg.c.

References cEvent::schedule.

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

tChannelID cSchedule::ChannelID ( void  ) const
inline

Definition at line 154 of file epg.h.

void cSchedule::Cleanup ( time_t  Time)

Definition at line 1056 of file epg.c.

References cEvent::EndTime(), cSetup::EPGLinger, cEvent::HasTimer(), and Setup.

Referenced by cSVDRP::CmdCLRE().

void cSchedule::Cleanup ( void  )

Definition at line 1051 of file epg.c.

void cSchedule::ClrRunningStatus ( cChannel Channel = NULL)

Definition at line 992 of file epg.c.

References cListObject::Next(), SI::RunningStatusNotRunning, and SI::RunningStatusPausing.

Referenced by cEIT::cEIT().

void cSchedule::DelEvent ( cEvent Event)

Definition at line 897 of file epg.c.

References cEvent::IsRunning(), and cEvent::schedule.

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

Definition at line 1024 of file epg.c.

References cListObject::Next().

Referenced by cEpgHandlers::DropOutdated().

void cSchedule::Dump ( FILE *  f,
const char *  Prefix = "",
eDumpMode  DumpMode = dmAll,
time_t  AtTime = 0 
) const
const cList<cEvent>* cSchedule::Events ( void  ) const
inline
const cEvent * cSchedule::GetEvent ( tEventID  EventID,
time_t  StartTime = 0 
) const

Definition at line 951 of file epg.c.

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

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

Definition at line 961 of file epg.c.

References cListObject::Next(), and cEvent::StartTime().

Referenced by cRecordControl::GetEvent().

const cEvent * cSchedule::GetFollowingEvent ( void  ) const

Definition at line 936 of file epg.c.

References cListObject::Next(), and cEvent::StartTime().

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

const cEvent * cSchedule::GetPresentEvent ( void  ) const
void cSchedule::HashEvent ( cEvent Event)

Definition at line 907 of file epg.c.

References cEvent::EventID(), and cEvent::StartTime().

time_t cSchedule::Modified ( void  ) const
inline

Definition at line 155 of file epg.h.

Referenced by cTimer::SetEventFromSchedule().

time_t cSchedule::PresentSeen ( void  ) const
inline

Definition at line 156 of file epg.h.

bool cSchedule::PresentSeenWithin ( int  Seconds) const
inline

Definition at line 157 of file epg.h.

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

bool cSchedule::Read ( FILE *  f,
cSchedules Schedules 
)
static
void cSchedule::ResetVersions ( void  )

Definition at line 1005 of file epg.c.

References cListObject::Next().

void cSchedule::SetModified ( void  )
inline

Definition at line 158 of file epg.h.

Referenced by cSchedules::SetModified().

void cSchedule::SetPresentSeen ( void  )
inline

Definition at line 159 of file epg.h.

Referenced by cEIT::cEIT().

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

Definition at line 914 of file epg.c.

References cEvent::EventID(), and cEvent::StartTime().

Member Data Documentation

tChannelID cSchedule::channelID
private

Definition at line 145 of file epg.h.

cList<cEvent> cSchedule::events
private

Definition at line 146 of file epg.h.

cHash<cEvent> cSchedule::eventsHashID
private

Definition at line 147 of file epg.h.

cHash<cEvent> cSchedule::eventsHashStartTime
private

Definition at line 148 of file epg.h.

bool cSchedule::hasRunning
private

Definition at line 149 of file epg.h.

time_t cSchedule::modified
private

Definition at line 150 of file epg.h.

time_t cSchedule::presentSeen
private

Definition at line 151 of file epg.h.


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