summaryrefslogtreecommitdiff
path: root/epghandler.h
diff options
context:
space:
mode:
authorDimitar Petrovski <dimeptr@gmail.com>2012-05-18 09:31:58 +0200
committerDimitar Petrovski <dimeptr@gmail.com>2012-05-18 09:31:58 +0200
commit6d0336431c938a8a04f3fae809fa3e233de5612e (patch)
tree6aab485d751f5c3b4b3b82f983b2b2ec5ad53c4e /epghandler.h
parent43ee5ffab18ea5b9aad236dacb471458b053ebcb (diff)
parent16775b11befcc5831ed2acb10502fb5ad1b73c8d (diff)
downloadvdr-plugin-eepg-6d0336431c938a8a04f3fae809fa3e233de5612e.tar.gz
vdr-plugin-eepg-6d0336431c938a8a04f3fae809fa3e233de5612e.tar.bz2
Merge branch 'epg-handler' into experimental
Diffstat (limited to 'epghandler.h')
-rw-r--r--epghandler.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/epghandler.h b/epghandler.h
new file mode 100644
index 0000000..61f295b
--- /dev/null
+++ b/epghandler.h
@@ -0,0 +1,41 @@
+/*
+ * cEEpgHandler.h
+ *
+ * Created on: 11.3.2012
+ * Author: d.petrovski
+ */
+
+#ifndef CEEPGHANDLER_H_
+#define CEEPGHANDLER_H_
+#include <vdr/config.h>
+#if APIVERSNUM > 10725
+#include <vdr/epg.h>
+#include <string>
+
+class cEEpgHandler : public cEpgHandler {
+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);
+
+private:
+ std::string origShortText;
+ std::string origDescription;
+};
+
+#endif /*APIVERSNUM > 10725*/
+#endif /* CEEPGHANDLER_H_ */