summaryrefslogtreecommitdiff
path: root/PLUGINS/epgdata/epgdata.h
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2017-03-05 16:39:28 +0100
committerhorchi <vdr@jwendel.de>2017-03-05 16:39:28 +0100
commite2a48d8701f91b8e24fbe9e99e91eb72a87bb749 (patch)
tree726f70554b4ca985a09ef6e30a7fdc8df089993c /PLUGINS/epgdata/epgdata.h
downloadvdr-epg-daemon-e2a48d8701f91b8e24fbe9e99e91eb72a87bb749.tar.gz
vdr-epg-daemon-e2a48d8701f91b8e24fbe9e99e91eb72a87bb749.tar.bz2
git init1.1.103
Diffstat (limited to 'PLUGINS/epgdata/epgdata.h')
-rw-r--r--PLUGINS/epgdata/epgdata.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/PLUGINS/epgdata/epgdata.h b/PLUGINS/epgdata/epgdata.h
new file mode 100644
index 0000000..0bb0d88
--- /dev/null
+++ b/PLUGINS/epgdata/epgdata.h
@@ -0,0 +1,52 @@
+/*
+ * epgdata.h
+ *
+ * See the README file for copyright information
+ *
+ */
+
+#include "epgd.h"
+
+//***************************************************************************
+// Epgdata
+//***************************************************************************
+
+class Epgdata : public Plugin
+{
+ public:
+
+ Epgdata();
+ virtual ~Epgdata();
+
+ int init(cEpgd* aObject, int aUtf8);
+ int initDb();
+ int exitDb();
+ int atConfigItem(const char* Name, const char* Value);
+
+ const char* getSource() { return "epgdata"; }
+
+ int getPicture(const char* imagename, const char* fileRef, MemoryStruct* data);
+ int processDay(int day, int fullupdate, Statistic* statistic);
+ int cleanupAfter();
+ int ready();
+
+ protected:
+
+ int processFile(const char* data, int size, const char* fileRef);
+
+ cDbValue valueNameLike;
+ cDbValue valueName;
+ cDbValue valueFileRef;
+ cDbStatement* stmtByFileRef;
+ cDbStatement* stmtCleanDouble;
+ cDbStatement* selectId;
+ cDbStatement* selectByDate;
+ cDbStatement* stmtMarkOldEvents;
+ xsltStylesheetPtr pxsltStylesheet;
+
+ // config
+
+ char* baseurl;
+ int timeout;
+ char* pin;
+};