summaryrefslogtreecommitdiff
path: root/epg.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-08-25 11:31:35 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-08-25 11:31:35 +0200
commit08ab22f987a7ce7489ac31e8e0d37c9054651ba8 (patch)
treefb0b9942646ab7743903d4d6091c146ef2653f58 /epg.h
parent3f03cfa14d53c17f74802d17797c39d4e2cb2856 (diff)
downloadvdr-08ab22f987a7ce7489ac31e8e0d37c9054651ba8.tar.gz
vdr-08ab22f987a7ce7489ac31e8e0d37c9054651ba8.tar.bz2
Added IsUpdate() to the EPG handler interface
Diffstat (limited to 'epg.h')
-rw-r--r--epg.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/epg.h b/epg.h
index 98cb7764..b9a20935 100644
--- a/epg.h
+++ b/epg.h
@@ -7,7 +7,7 @@
* 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.13 2012/06/04 10:26:10 kls Exp $
+ * $Id: epg.h 2.14 2012/08/25 11:15:18 kls Exp $
*/
#ifndef __EPG_H
@@ -250,6 +250,10 @@ public:
///< source. Incoming EIT data is processed as usual, but any new EPG event
///< will not be added to the respective schedule. It's up to the EPG
///< handler to take care of this.
+ virtual bool IsUpdate(tEventID EventID, time_t StartTime, uchar TableID, uchar Version) { return false; }
+ ///< VDR can't perform the update check (version, tid) for externally handled events,
+ ///< therefore the EPG handlers have to take care of this. Otherwise the parsing of
+ ///< non-updates will waste a lot of resources.
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; }
@@ -277,6 +281,7 @@ public:
bool IgnoreChannel(const cChannel *Channel);
bool HandleEitEvent(cSchedule *Schedule, const SI::EIT::Event *EitEvent, uchar TableID, uchar Version);
bool HandledExternally(const cChannel *Channel);
+ bool IsUpdate(tEventID EventID, time_t StartTime, uchar TableID, uchar Version);
void SetEventID(cEvent *Event, tEventID EventID);
void SetTitle(cEvent *Event, const char *Title);
void SetShortText(cEvent *Event, const char *ShortText);