summaryrefslogtreecommitdiff
path: root/eit2.h
diff options
context:
space:
mode:
authorDimitar Petrovski <dimeptr@gmail.com>2012-10-16 17:40:59 (GMT)
committerDimitar Petrovski <dimeptr@gmail.com>2012-10-16 17:40:59 (GMT)
commit7de1003a14fb4b41920896c550db4e58f53aea8d (patch)
treedc70fa663dba793f25a1a14b9577ce8972d2ba70 /eit2.h
parentd207fd0a5873a4a60488a8dc2eb0cf62c172069b (diff)
downloadvdr-plugin-eepg-7de1003a14fb4b41920896c550db4e58f53aea8d.tar.gz
vdr-plugin-eepg-7de1003a14fb4b41920896c550db4e58f53aea8d.tar.bz2
Drop unmanaged Disable Double EPG entry. EEPG tries to handle this anyway
Drop unmanaged NOEPG support, there is a separate plugin for that Move cEIT2 in a separate file and try to use it in epghandler also
Diffstat (limited to 'eit2.h')
-rw-r--r--eit2.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/eit2.h b/eit2.h
new file mode 100644
index 0000000..5d2e4bb
--- /dev/null
+++ b/eit2.h
@@ -0,0 +1,49 @@
+#ifndef CEIT2_H_
+#define CEIT2_H_
+#include <libsi/section.h>
+#include <libsi/descriptor.h>
+#include <libsi/si.h>
+
+namespace SI
+{
+ enum DescriptorTagExt {
+ DishRatingDescriptorTag = 0x89,
+ DishShortEventDescriptorTag = 0x91,
+ DishExtendedEventDescriptorTag = 0x92,
+ DishSeriesDescriptorTag = 0x96,
+ };
+
+// typedef InheritEnum< DescriptorTagExt, SI::DescriptorTag > ExtendedDescriptorTag;
+
+/*extern const char *getCharacterTable(const unsigned char *&buffer, int &length, bool *isSingleByte = NULL);
+extern bool convertCharacterTable(const char *from, size_t fromLength, char *to, size_t toLength, const char *fromCode);
+extern bool SystemCharacterTableIsSingleByte;*/
+class cEIT2:public SI::EIT
+{
+public:
+ cEIT2 (cSchedules * Schedules, int Source, u_char Tid, const u_char * Data, bool isEITPid = false, bool OnlyRunningStatus = false);
+ cEIT2 (cSchedule * Schedule);
+//protected:
+// void updateEquivalent(cSchedules * Schedules, tChannelID channelID, cEvent *pEvent);
+ cEvent* ProcessEitEvent(cSchedule *Schedule, const SI::EIT::Event *EitEvent, uchar TableID, uchar Version);
+
+private:
+ void
+ ProcessEventDescriptors(bool ExternalData,
+ int Source, u_char Tid, const SI::EIT::Event* SiEitEvent, cEvent* pEvent,
+ cSchedules* Schedules, cChannel* channel);
+
+private:
+ bool Empty;
+ bool Modified;
+// bool HasExternalData = false;
+ time_t SegmentStart;
+ time_t SegmentEnd;
+ cSchedules* Schedules;
+ cChannel* channel;
+
+ bool OnlyRunningStatus;
+ };
+} //end namespace SI
+
+#endif /* CEIT2_H_ */