summaryrefslogtreecommitdiff
path: root/epghandler.h
diff options
context:
space:
mode:
authorDimitar Petrovski <dimeptr@gmail.com>2012-05-18 07:19:32 (GMT)
committerDimitar Petrovski <dimeptr@gmail.com>2012-05-18 07:19:32 (GMT)
commitbcd0b697d5953b286878542fb4c33238d65c6cb2 (patch)
tree6773b37a57ff186fefb44ea61dee4207c0185f60 /epghandler.h
parentb24e6091e88ea015bd6296a091504902ddb4b396 (diff)
downloadvdr-plugin-eepg-bcd0b697d5953b286878542fb4c33238d65c6cb2.tar.gz
vdr-plugin-eepg-bcd0b697d5953b286878542fb4c33238d65c6cb2.tar.bz2
eepghandler for new vdr eit api
Diffstat (limited to 'epghandler.h')
-rw-r--r--epghandler.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/epghandler.h b/epghandler.h
new file mode 100644
index 0000000..1dee4f2
--- /dev/null
+++ b/epghandler.h
@@ -0,0 +1,33 @@
+/*
+ * cEEpgHandler.h
+ *
+ * Created on: 11.3.2012
+ * Author: d.petrovski
+ */
+
+#ifndef CEEPGHANDLER_H_
+#define CEEPGHANDLER_H_
+#include <vdr/epg.h>
+
+class cEEpgHandler : public cEpgDataReader {
+public:
+ cEEpgHandler();
+ virtual ~cEEpgHandler();
+ virtual bool IgnoreChannel(const cChannel *Channel) { return false; }
+ 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) { return false; }
+ 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);
+};
+
+#endif /* CEEPGHANDLER_H_ */