diff options
author | Klaus Schmidinger <Klaus (dot) Schmidinger (at) tvdr (dot) de> | 2012-03-10 16:18:00 +0100 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2012-03-11 18:00:38 +0100 |
commit | 5117f359388e50d2ad46ba53330741c6b1a1e7ae (patch) | |
tree | 9400497309cc2e919ae81c3b06de90ca2e3377b2 /epg.h | |
parent | 3df1b6d1397379a7ccdde4b559d46baf3f515837 (diff) | |
download | vdr-patches-5117f359388e50d2ad46ba53330741c6b1a1e7ae.tar.gz vdr-patches-5117f359388e50d2ad46ba53330741c6b1a1e7ae.tar.bz2 |
Version 1.7.26
Original announce message:
VDR developer version 1.7.26 is now available at
ftp://ftp.tvdr.de/vdr/Developer/vdr-1.7.26.tar.bz2
A 'diff' against the previous version is available at
ftp://ftp.tvdr.de/vdr/Developer/vdr-1.7.25-1.7.26.diff
MD5 checksums:
eb57398e44935ecb0bfc532bdfead312 vdr-1.7.26.tar.bz2
62e0f39e2c53ec2b5abd3ebb0e00ce3d vdr-1.7.25-1.7.26.diff
WARNING:
========
This is a developer version. Even though I use it in my productive
environment. I strongly recommend that you only use it under controlled
conditions and for testing and debugging.
From the HISTORY file:
- Now checking for NULL in cOsd::AddPixmap() (suggested by Christoph Haubrich).
- Fixed the German translation of "VDR will shut down in %s minutes" (thanks to
Frank Neumann).
- The replay progress display is now turned on whenever a mark is toggled (not
only when one is set).
- Toggling a mark now restarts the timeout of the replay progress display.
- Fixed a possible race condition with the SVDRP commands CLRE and PUTE, where
EPG data from the transponder could be handled even though it shouldn't be
handled for 10 seconds.
- Added some missing member initializations in cBitmap.
- Improved displaying the play mode in the ST:TNG skin.
- Made the ST:TNG skin the default in case the user selected skin is not available.
- Improved displaying signal strength and quality in the ST:TNG skin's channel
display.
- Fixed switching devices to the transponders of VPS recordings in case there
are only bonded devices. The cDevice's "avoid device" mechanism has been replaced
by using "occupied".
- Fixed selecting devices for the EPG scan in case the primary device is bonded
with an other one.
- Removed the calls to EITScanner.UsesDevice(this) from dvb[hs]ddevice.c, because
the code following these calls is only executed if LiveView is true, which is
never the case when the EITScanner switches to a channel.
- Removed the obsolete function cEITScanner::UsesDevice(). If a plugin has used this
function to find out whether a call to its cStatus::ChannelSwitch() function was
due to a live channel switch, it can use that function's new parameter LiveView.
Any plugins that implement cStatus::ChannelSwitch() need to add the parameter
'bool LiveView' to that function.
- Fixed parsing channel data in case the audio pid is 0. On channels that only
broadcast Dolby Digital audio there were sometimes log entries like
"changing pids of channel ... from ... to ..." with no apparent difference
between the old and new set of pids.
- Fixed checking pids in case a channel has only Dolby Digital audio.
- The Green button in the "Edit timer" menu can now be used to toggle between single
shot and repeating timers. This is the same as pressing '0' when the "Day" field
is selected, but it works at any time (and is more obvious).
- Revoked "If the first event in a schedule has a table id of 0x00, any incoming EIT data for
that schedule from the DVB stream will be completely ignored".
- Added a new plugin interface for implementing EPG handlers.
+ A plugin can implement an EPG handler by creating an object derived from
cEpgHandler and implementing the necessary member functions.
+ The special handling of events with table id 0x00 has been dropped.
For backwards compatibility EPG events with table ids lower than 0x4E will
be treated as if they had a table id of 0x4E, and the new plugin 'epgtableid0'
can be used to have them handled like in previous versions.
+ The default table id for a newly created cEvent has been changed to 0xFF,
which is higher than any normal table id that is broadcast in the EIT data.
See PLUGINS.html, section "Electronic Program Guide" for more information.
Diffstat (limited to 'epg.h')
-rw-r--r-- | epg.h | 67 |
1 files changed, 66 insertions, 1 deletions
@@ -7,13 +7,14 @@ * Original version (as used in VDR before 1.3.0) written by * Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>. * - * $Id: epg.h 2.7 2012/02/26 13:58:26 kls Exp $ + * $Id: epg.h 2.8 2012/03/10 13:50:10 kls Exp $ */ #ifndef __EPG_H #define __EPG_H #include "channels.h" +#include "libsi/section.h" #include "thread.h" #include "tools.h" @@ -221,4 +222,68 @@ public: void ReportEpgBugFixStats(bool Reset = false); +class cEpgHandler : public cListObject { +public: + 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. + virtual ~cEpgHandler(); + virtual bool IgnoreChannel(const cChannel *Channel) { return false; } + ///< 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. + virtual bool HandleEitEvent(cSchedule *Schedule, const SI::EIT::Event *EitEvent, uchar TableID, uchar Version) { return false; } + ///< 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. + virtual bool SetEventID(cEvent *Event, tEventID EventID) { return false; } + virtual bool SetTitle(cEvent *Event, const char *Title) { return false; } + virtual bool SetShortText(cEvent *Event, const char *ShortText) { return false; } + virtual bool SetDescription(cEvent *Event, const char *Description) { return false; } + virtual bool SetContents(cEvent *Event, uchar *Contents) { return false; } + virtual bool SetParentalRating(cEvent *Event, int ParentalRating) { return false; } + virtual bool SetStartTime(cEvent *Event, time_t StartTime) { return false; } + virtual bool SetDuration(cEvent *Event, int Duration) { return false; } + virtual bool SetVps(cEvent *Event, time_t Vps) { return false; } + virtual bool FixEpgBugs(cEvent *Event) { return false; } + ///< Fixes some known problems with EPG data. + virtual bool HandleEvent(cEvent *Event) { return false; } + ///< After all modifications of the Event have been done, the EPG handler + ///< can take a final look at it. + virtual bool SortSchedule(cSchedule *Schedule) { return false; } + ///< Sorts the Schedule after the complete table has been processed. + virtual bool DropOutdated(cSchedule *Schedule, time_t SegmentStart, time_t SegmentEnd, uchar TableID, uchar Version) { return false; } + ///< Takes a look at all EPG events between SegmentStart and SegmentEnd and + ///< drops outdated events. + }; + +class cEpgHandlers : public cList<cEpgHandler> { +public: + bool IgnoreChannel(const cChannel *Channel); + bool HandleEitEvent(cSchedule *Schedule, const SI::EIT::Event *EitEvent, uchar TableID, uchar Version); + void SetEventID(cEvent *Event, tEventID EventID); + void SetTitle(cEvent *Event, const char *Title); + void SetShortText(cEvent *Event, const char *ShortText); + void SetDescription(cEvent *Event, const char *Description); + void SetContents(cEvent *Event, uchar *Contents); + void SetParentalRating(cEvent *Event, int ParentalRating); + void SetStartTime(cEvent *Event, time_t StartTime); + void SetDuration(cEvent *Event, int Duration); + void SetVps(cEvent *Event, time_t Vps); + void FixEpgBugs(cEvent *Event); + void HandleEvent(cEvent *Event); + void SortSchedule(cSchedule *Schedule); + void DropOutdated(cSchedule *Schedule, time_t SegmentStart, time_t SegmentEnd, uchar TableID, uchar Version); + }; + +extern cEpgHandlers EpgHandlers; + #endif //__EPG_H |