summaryrefslogtreecommitdiff
path: root/xmltv2vdr.h
diff options
context:
space:
mode:
Diffstat (limited to 'xmltv2vdr.h')
-rw-r--r--xmltv2vdr.h28
1 files changed, 25 insertions, 3 deletions
diff --git a/xmltv2vdr.h b/xmltv2vdr.h
index e06c37b..9e71dd3 100644
--- a/xmltv2vdr.h
+++ b/xmltv2vdr.h
@@ -21,7 +21,7 @@
#define UNUSED(x) x
#endif
-static const char *VERSION = "0.1.1";
+static const char *VERSION = "0.2.0pre";
static const char *DESCRIPTION = trNOOP("Imports xmltv epg into vdr");
int ioprio_set(int which, int who, int ioprio);
@@ -35,13 +35,14 @@ private:
char *epcodeset;
char *imgdir;
char *codeset;
+ int imgdelafter;
cEPGMappings epgmappings;
cTEXTMappings textmappings;
cEPGSources epgsources;
public:
-
cGlobals();
~cGlobals();
+ bool DBExists();
cEPGMappings *EPGMappings()
{
return &epgmappings;
@@ -90,6 +91,14 @@ public:
{
return imgdir;
}
+ void SetImgDelAfter(int Value)
+ {
+ imgdelafter=Value;
+ }
+ int ImgDelAfter()
+ {
+ return imgdelafter;
+ }
};
#if VDRVERSNUM < 10726 && !EPGHANDLER
@@ -180,7 +189,8 @@ public:
class cHouseKeeping : public cThread
{
private:
- const char *epgfile;
+ cGlobals *global;
+ int checkdir(const char *imgdir, int age);
public:
cHouseKeeping(cGlobals *Global);
void Stop()
@@ -244,6 +254,18 @@ public:
{
return wakeup;
}
+ void SetImgDelAfter(int Value)
+ {
+ g.SetImgDelAfter(Value);
+ }
+ int ImgDelAfter()
+ {
+ return g.ImgDelAfter();
+ }
+ const char *ImgDir()
+ {
+ return g.ImgDir();
+ }
const char *EPDir()
{
return g.EPDir();