vdr  2.4.1
Public Member Functions | List of all members
cEpgHandler Class Reference

#include <epg.h>

Public Member Functions

 cEpgHandler (void)
 
virtual ~cEpgHandler ()
 
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 SetComponents (cEvent *Event, cComponents *Components)
 
virtual bool BeginSegmentTransfer (const cChannel *Channel, bool Dummy)
 
virtual bool EndSegmentTransfer (bool Modified, bool Dummy)
 
- Public Member Functions inherited from cListObject
 cListObject (void)
 
virtual ~cListObject ()
 
void Append (cListObject *Object)
 
void Insert (cListObject *Object)
 
void Unlink (void)
 
int Index (void) const
 
cListObjectPrev (void) const
 
cListObjectNext (void) const
 

Detailed Description

Definition at line 235 of file epg.h.

Constructor & Destructor Documentation

◆ cEpgHandler()

cEpgHandler::cEpgHandler ( void  )

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 1372 of file epg.c.

References cListBase::Add(), and EpgHandlers.

◆ ~cEpgHandler()

cEpgHandler::~cEpgHandler ( )
virtual

Definition at line 1377 of file epg.c.

References cListBase::Del(), and EpgHandlers.

Member Function Documentation

◆ BeginSegmentTransfer()

virtual bool cEpgHandler::BeginSegmentTransfer ( const cChannel Channel,
bool  Dummy 
)
inlinevirtual

Definition at line 287 of file epg.h.

◆ EndSegmentTransfer()

virtual bool cEpgHandler::EndSegmentTransfer ( bool  Modified,
bool  Dummy 
)
inlinevirtual

< Called directly after IgnoreChannel() before any other handler method is called.

Designed to give handlers the possibility to prepare a database transaction. If any EPG handler returns false in this function, it is assumed that the EPG for the given Channel has to be handled later due to some transaction problems,

therefore the processing will aborted.

Dummy is for backward compatibility and may be removed in a future version.

Definition at line 294 of file epg.h.

◆ SetComponents()

virtual bool cEpgHandler::SetComponents ( cEvent Event,
cComponents Components 
)
inlinevirtual

Definition at line 276 of file epg.h.

◆ SetContents()

virtual bool cEpgHandler::SetContents ( cEvent Event,
uchar Contents 
)
inlinevirtual

Reimplemented in cTable0Handler.

Definition at line 271 of file epg.h.

◆ SetDescription()

virtual bool cEpgHandler::SetDescription ( cEvent Event,
const char *  Description 
)
inlinevirtual

Reimplemented in cTable0Handler.

Definition at line 270 of file epg.h.

◆ SetDuration()

virtual bool cEpgHandler::SetDuration ( cEvent Event,
int  Duration 
)
inlinevirtual

Reimplemented in cTable0Handler.

Definition at line 274 of file epg.h.

◆ SetEventID()

virtual bool cEpgHandler::SetEventID ( cEvent Event,
tEventID  EventID 
)
inlinevirtual

Reimplemented in cTable0Handler.

Definition at line 267 of file epg.h.

◆ SetParentalRating()

virtual bool cEpgHandler::SetParentalRating ( cEvent Event,
int  ParentalRating 
)
inlinevirtual

Reimplemented in cTable0Handler.

Definition at line 272 of file epg.h.

◆ SetShortText()

virtual bool cEpgHandler::SetShortText ( cEvent Event,
const char *  ShortText 
)
inlinevirtual

Reimplemented in cTable0Handler.

Definition at line 269 of file epg.h.

◆ SetStartTime()

virtual bool cEpgHandler::SetStartTime ( cEvent Event,
time_t  StartTime 
)
inlinevirtual

Reimplemented in cTable0Handler.

Definition at line 273 of file epg.h.

◆ SetTitle()

virtual bool cEpgHandler::SetTitle ( cEvent Event,
const char *  Title 
)
inlinevirtual

Reimplemented in cTable0Handler.

Definition at line 268 of file epg.h.

◆ SetVps()

virtual bool cEpgHandler::SetVps ( cEvent Event,
time_t  Vps 
)
inlinevirtual

Reimplemented in cTable0Handler.

Definition at line 275 of file epg.h.


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