summaryrefslogtreecommitdiff
path: root/equivhandler.h
diff options
context:
space:
mode:
authorDimitar Petrovski <dimeptr@gmail.com>2012-05-23 19:36:14 (GMT)
committerDimitar Petrovski <dimeptr@gmail.com>2012-05-23 19:36:14 (GMT)
commit61eded224bc4660b41f6754e83b91a262af3f8ce (patch)
tree34c06a64e23d1ae7c6a87a79769344cae972b52c /equivhandler.h
parentfeee46aeed74157e104335918741f266fd576f29 (diff)
downloadvdr-plugin-eepg-61eded224bc4660b41f6754e83b91a262af3f8ce.tar.gz
vdr-plugin-eepg-61eded224bc4660b41f6754e83b91a262af3f8ce.tar.bz2
move equivalence to separate file/class
Diffstat (limited to 'equivhandler.h')
-rw-r--r--equivhandler.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/equivhandler.h b/equivhandler.h
new file mode 100644
index 0000000..da2d7d9
--- /dev/null
+++ b/equivhandler.h
@@ -0,0 +1,37 @@
+/*
+ * equivhandler.h
+ *
+ * Created on: 19.5.2012
+ * Author: d.petrovski
+ */
+
+#ifndef EQUIVHANDLER_H_
+#define EQUIVHANDLER_H_
+
+#include <vdr/epg.h>
+#include <vdr/channels.h>
+#include <map>
+
+#define EEPG_FILE_EQUIV "eepg.equiv"
+
+using namespace std;
+
+class cEquivHandler
+{
+public:
+ cEquivHandler();
+ virtual ~cEquivHandler();
+
+ void loadEquivalentChannelMap (void);
+ void updateEquivalent(cSchedules * Schedules, tChannelID channelID, cEvent *pEvent);
+ void sortEquivalents(tChannelID channelID, cSchedules* Schedules);
+
+ static multimap<string, string> getEquiChanMap() { return cEquivHandler::equiChanMap; };
+
+private:
+ static multimap<string, string> equiChanMap;
+ static long equiChanFileTime;
+
+};
+
+#endif /* EQUIVHANDLER_H_ */