vdr  1.7.27
Public Member Functions
cEpgHandler Class Reference

#include <epg.h>

List of all members.

Public Member Functions

 cEpgHandler (void)
virtual ~cEpgHandler ()
virtual bool IgnoreChannel (const cChannel *Channel)
virtual bool HandleEitEvent (cSchedule *Schedule, const SI::EIT::Event *EitEvent, uchar TableID, uchar Version)
virtual bool SetEventID (cEvent *Event, tEventID EventID)
virtual bool SetTitle (cEvent *Event, const char *Title)
virtual bool SetShortText (cEvent *Event, const char *ShortText)
virtual bool SetDescription (cEvent *Event, const char *Description)
virtual bool SetContents (cEvent *Event, uchar *Contents)
virtual bool SetParentalRating (cEvent *Event, int ParentalRating)
virtual bool SetStartTime (cEvent *Event, time_t StartTime)
virtual bool SetDuration (cEvent *Event, int Duration)
virtual bool SetVps (cEvent *Event, time_t Vps)
virtual bool FixEpgBugs (cEvent *Event)
virtual bool HandleEvent (cEvent *Event)
virtual bool SortSchedule (cSchedule *Schedule)
virtual bool DropOutdated (cSchedule *Schedule, time_t SegmentStart, time_t SegmentEnd, uchar TableID, uchar Version)
 cEpgHandler (void)
virtual ~cEpgHandler ()
virtual bool IgnoreChannel (const cChannel *Channel)
virtual bool HandleEitEvent (cSchedule *Schedule, const SI::EIT::Event *EitEvent, uchar TableID, uchar Version)
virtual bool SetEventID (cEvent *Event, tEventID EventID)
virtual bool SetTitle (cEvent *Event, const char *Title)
virtual bool SetShortText (cEvent *Event, const char *ShortText)
virtual bool SetDescription (cEvent *Event, const char *Description)
virtual bool SetContents (cEvent *Event, uchar *Contents)
virtual bool SetParentalRating (cEvent *Event, int ParentalRating)
virtual bool SetStartTime (cEvent *Event, time_t StartTime)
virtual bool SetDuration (cEvent *Event, int Duration)
virtual bool SetVps (cEvent *Event, time_t Vps)
virtual bool FixEpgBugs (cEvent *Event)
virtual bool HandleEvent (cEvent *Event)
virtual bool SortSchedule (cSchedule *Schedule)
virtual bool DropOutdated (cSchedule *Schedule, time_t SegmentStart, time_t SegmentEnd, uchar TableID, uchar Version)

Detailed Description

Definition at line 225 of file epg.h.


Constructor & Destructor Documentation

Constructs a new EPG handler and adds it to the list of EPG handlers.

Whenever an event is received from the EIT data stream, the EPG handlers are queried in the order they have been created. As soon as one of the EPG handlers returns true in a member function, none of the remaining handlers will be queried. If none of the EPG handlers returns true in a particular call, the default processing will take place. EPG handlers will be deleted automatically at the end of the program.

Definition at line 1302 of file epg.c.

References cListBase::Add(), and EpgHandlers.

Definition at line 1307 of file epg.c.

References cListBase::Del(), and EpgHandlers.

Constructs a new EPG handler and adds it to the list of EPG handlers.

Whenever an event is received from the EIT data stream, the EPG handlers are queried in the order they have been created. As soon as one of the EPG handlers returns true in a member function, none of the remaining handlers will be queried. If none of the EPG handlers returns true in a particular call, the default processing will take place. EPG handlers will be deleted automatically at the end of the program.

virtual cEpgHandler::~cEpgHandler ( ) [virtual]

Member Function Documentation

virtual bool cEpgHandler::DropOutdated ( cSchedule Schedule,
time_t  SegmentStart,
time_t  SegmentEnd,
uchar  TableID,
uchar  Version 
) [inline, virtual]

Takes a look at all EPG events between SegmentStart and SegmentEnd and drops outdated events.

Definition at line 263 of file epg.h.

virtual bool cEpgHandler::DropOutdated ( cSchedule Schedule,
time_t  SegmentStart,
time_t  SegmentEnd,
uchar  TableID,
uchar  Version 
) [inline, virtual]

Takes a look at all EPG events between SegmentStart and SegmentEnd and drops outdated events.

Definition at line 263 of file include/vdr/epg.h.

virtual bool cEpgHandler::FixEpgBugs ( cEvent Event) [inline, virtual]

Fixes some known problems with EPG data.

Reimplemented in cTable0Handler.

Definition at line 256 of file include/vdr/epg.h.

virtual bool cEpgHandler::FixEpgBugs ( cEvent Event) [inline, virtual]

Fixes some known problems with EPG data.

Reimplemented in cTable0Handler.

Definition at line 256 of file epg.h.

virtual bool cEpgHandler::HandleEitEvent ( cSchedule Schedule,
const SI::EIT::Event EitEvent,
uchar  TableID,
uchar  Version 
) [inline, virtual]

Before the raw EitEvent for the given Schedule is processed, the EPG handlers are queried to see if any of them would like to do the complete processing by itself.

TableID and Version are from the incoming section data.

Definition at line 242 of file include/vdr/epg.h.

virtual bool cEpgHandler::HandleEitEvent ( cSchedule Schedule,
const SI::EIT::Event EitEvent,
uchar  TableID,
uchar  Version 
) [inline, virtual]

Before the raw EitEvent for the given Schedule is processed, the EPG handlers are queried to see if any of them would like to do the complete processing by itself.

TableID and Version are from the incoming section data.

Definition at line 242 of file epg.h.

virtual bool cEpgHandler::HandleEvent ( cEvent Event) [inline, virtual]

After all modifications of the Event have been done, the EPG handler can take a final look at it.

Definition at line 258 of file epg.h.

virtual bool cEpgHandler::HandleEvent ( cEvent Event) [inline, virtual]

After all modifications of the Event have been done, the EPG handler can take a final look at it.

Definition at line 258 of file include/vdr/epg.h.

virtual bool cEpgHandler::IgnoreChannel ( const cChannel Channel) [inline, virtual]

Before any EIT data for the given Channel is processed, the EPG handlers are asked whether this Channel shall be completely ignored.

If any of the EPG handlers returns true in this function, no EIT data at all will be processed for this Channel.

Definition at line 237 of file epg.h.

virtual bool cEpgHandler::IgnoreChannel ( const cChannel Channel) [inline, virtual]

Before any EIT data for the given Channel is processed, the EPG handlers are asked whether this Channel shall be completely ignored.

If any of the EPG handlers returns true in this function, no EIT data at all will be processed for this Channel.

Definition at line 237 of file include/vdr/epg.h.

virtual bool cEpgHandler::SetContents ( cEvent Event,
uchar Contents 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 251 of file include/vdr/epg.h.

virtual bool cEpgHandler::SetContents ( cEvent Event,
uchar Contents 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 251 of file epg.h.

virtual bool cEpgHandler::SetDescription ( cEvent Event,
const char *  Description 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 250 of file epg.h.

virtual bool cEpgHandler::SetDescription ( cEvent Event,
const char *  Description 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 250 of file include/vdr/epg.h.

virtual bool cEpgHandler::SetDuration ( cEvent Event,
int  Duration 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 254 of file epg.h.

virtual bool cEpgHandler::SetDuration ( cEvent Event,
int  Duration 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 254 of file include/vdr/epg.h.

virtual bool cEpgHandler::SetEventID ( cEvent Event,
tEventID  EventID 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 247 of file include/vdr/epg.h.

virtual bool cEpgHandler::SetEventID ( cEvent Event,
tEventID  EventID 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 247 of file epg.h.

virtual bool cEpgHandler::SetParentalRating ( cEvent Event,
int  ParentalRating 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 252 of file epg.h.

virtual bool cEpgHandler::SetParentalRating ( cEvent Event,
int  ParentalRating 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 252 of file include/vdr/epg.h.

virtual bool cEpgHandler::SetShortText ( cEvent Event,
const char *  ShortText 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 249 of file epg.h.

virtual bool cEpgHandler::SetShortText ( cEvent Event,
const char *  ShortText 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 249 of file include/vdr/epg.h.

virtual bool cEpgHandler::SetStartTime ( cEvent Event,
time_t  StartTime 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 253 of file epg.h.

virtual bool cEpgHandler::SetStartTime ( cEvent Event,
time_t  StartTime 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 253 of file include/vdr/epg.h.

virtual bool cEpgHandler::SetTitle ( cEvent Event,
const char *  Title 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 248 of file include/vdr/epg.h.

virtual bool cEpgHandler::SetTitle ( cEvent Event,
const char *  Title 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 248 of file epg.h.

virtual bool cEpgHandler::SetVps ( cEvent Event,
time_t  Vps 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 255 of file include/vdr/epg.h.

virtual bool cEpgHandler::SetVps ( cEvent Event,
time_t  Vps 
) [inline, virtual]

Reimplemented in cTable0Handler.

Definition at line 255 of file epg.h.

virtual bool cEpgHandler::SortSchedule ( cSchedule Schedule) [inline, virtual]

Sorts the Schedule after the complete table has been processed.

Definition at line 261 of file include/vdr/epg.h.

virtual bool cEpgHandler::SortSchedule ( cSchedule Schedule) [inline, virtual]

Sorts the Schedule after the complete table has been processed.

Definition at line 261 of file epg.h.


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