SASC
DVBSoftCAM

cSchedule Class Reference

#include <epg.h>

Inheritance diagram for cSchedule:

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)
cEvent * AddEvent (cEvent *Event)
void DelEvent (cEvent *Event)
void HashEvent (cEvent *Event)
void UnhashEvent (cEvent *Event)
const cList< cEvent > * Events (void) const
const cEvent * GetPresentEvent (void) const
const cEvent * GetFollowingEvent (void) const
const cEvent * GetEvent (tEventID EventID, time_t StartTime=0) const
const cEvent * GetEventAround (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)

Detailed Description

Definition at line 116 of file epg.h.


Constructor & Destructor Documentation

cSchedule::cSchedule ( tChannelID  ChannelID)

Member Function Documentation

cEvent* cSchedule::AddEvent ( cEvent *  Event)
tChannelID cSchedule::ChannelID ( void  ) const [inline]

Definition at line 127 of file epg.h.

{ return channelID; }
void cSchedule::Cleanup ( void  )
void cSchedule::Cleanup ( time_t  Time)
void cSchedule::ClrRunningStatus ( cChannel *  Channel = NULL)
void cSchedule::DelEvent ( cEvent *  Event)
void cSchedule::DropOutdated ( time_t  SegmentStart,
time_t  SegmentEnd,
uchar  TableID,
uchar  Version 
)
void cSchedule::Dump ( FILE *  f,
const char *  Prefix = "",
eDumpMode  DumpMode = dmAll,
time_t  AtTime = 0 
) const
const cList<cEvent>* cSchedule::Events ( void  ) const [inline]

Definition at line 144 of file epg.h.

{ return &events; }
const cEvent* cSchedule::GetEvent ( tEventID  EventID,
time_t  StartTime = 0 
) const
const cEvent* cSchedule::GetEventAround ( time_t  Time) const
const cEvent* cSchedule::GetFollowingEvent ( void  ) const
const cEvent* cSchedule::GetPresentEvent ( void  ) const
void cSchedule::HashEvent ( cEvent *  Event)
time_t cSchedule::Modified ( void  ) const [inline]

Definition at line 128 of file epg.h.

{ return modified; }
time_t cSchedule::PresentSeen ( void  ) const [inline]

Definition at line 129 of file epg.h.

{ return presentSeen; }
bool cSchedule::PresentSeenWithin ( int  Seconds) const [inline]

Definition at line 130 of file epg.h.

References NULL.

{ return time(NULL) - presentSeen < Seconds; }
static bool cSchedule::Read ( FILE *  f,
cSchedules *  Schedules 
) [static]
void cSchedule::ResetVersions ( void  )
void cSchedule::SetModified ( void  ) [inline]

Definition at line 131 of file epg.h.

References NULL.

{ modified = time(NULL); }
void cSchedule::SetPresentSeen ( void  ) [inline]

Definition at line 132 of file epg.h.

References NULL.

{ presentSeen = time(NULL); }
void cSchedule::SetRunningStatus ( cEvent *  Event,
int  RunningStatus,
cChannel *  Channel = NULL 
)
void cSchedule::Sort ( void  )
void cSchedule::UnhashEvent ( cEvent *  Event)

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines