summaryrefslogtreecommitdiff
path: root/epg.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-12-25 12:50:22 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2003-12-25 12:50:22 +0100
commit36c9c8811de7ee0c5a208627dcecf92445b051b4 (patch)
tree0a617d16041bd6d9b4c5e8734d2c6ec7916102d2 /epg.h
parent6c4e6cc666da440c2f09e4cab9ab9b8ca99e5213 (diff)
downloadvdr-36c9c8811de7ee0c5a208627dcecf92445b051b4.tar.gz
vdr-36c9c8811de7ee0c5a208627dcecf92445b051b4.tar.bz2
Now using the 'version number' of EPG events to avoid unnecessary work
Diffstat (limited to 'epg.h')
-rw-r--r--epg.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/epg.h b/epg.h
index 4a999d12..84667848 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 1.1 2003/12/22 13:03:10 kls Exp $
+ * $Id: epg.h 1.2 2003/12/24 13:20:35 kls Exp $
*/
#ifndef __EPG_H
@@ -26,6 +26,7 @@ private:
tChannelID channelID; // Channel ID of program for this event
u_int16_t eventID; // Event ID of this event
uchar tableID; // Table ID this event came from
+ uchar version; // Version number of section this event came from
//XXX present/following obsolete???
bool isPresent; // true if this is the present event running
bool isFollowing; // true if this is the next event on this channel
@@ -41,7 +42,8 @@ public:
~cEvent();
tChannelID ChannelID(void) const { return channelID; }
u_int16_t EventID(void) const { return eventID; }
- const uchar TableID(void) const { return tableID; }
+ uchar TableID(void) const { return tableID; }
+ uchar Version(void) const { return version; }
bool IsPresent(void) const { return isPresent; }
bool IsFollowing(void) const { return isFollowing; }
const char *Title(void) const { return title; }
@@ -53,7 +55,9 @@ public:
const char *GetDateString(void) const;
const char *GetTimeString(void) const;
const char *GetEndTimeString(void) const;
+ void SetEventID(u_int16_t EventID);
void SetTableID(uchar TableID);
+ void SetVersion(uchar Version);
void SetIsPresent(bool IsPresent);
void SetIsFollowing(bool IsFollowing);
void SetTitle(const char *Title);