summaryrefslogtreecommitdiff
path: root/PLUGINS/epgdata/epgdata.h
blob: c4097a85cf85aacb795f50498bbd197fe54ef5d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
 * 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"; }

      char* fsNameOfPicture(const char* imagename);  // caller has to free the result!
      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;
};