summaryrefslogtreecommitdiff
path: root/source.h
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2012-04-24 16:44:45 +0200
committerJochen Dolze <vdr@dolze.de>2012-04-24 16:44:45 +0200
commitfaab1db375b46658959c22ddbd1977bc1fdeb50b (patch)
tree8b2281ce20af800d872ccbf840fa338edfcbbac1 /source.h
parent5f9d257b756d372a0033db0b17e87e573fefcbfd (diff)
downloadvdr-plugin-xmltv2vdr-faab1db375b46658959c22ddbd1977bc1fdeb50b.tar.gz
vdr-plugin-xmltv2vdr-faab1db375b46658959c22ddbd1977bc1fdeb50b.tar.bz2
Fixed automatic wakeup
Prevent unnecessary updates Optimized debug output
Diffstat (limited to 'source.h')
-rw-r--r--source.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/source.h b/source.h
index d78a5f2..751752d 100644
--- a/source.h
+++ b/source.h
@@ -79,7 +79,7 @@ public:
}
int Execute(cEPGExecutor &myExecutor);
int Import(cEPGExecutor &myExecutor);
- bool RunItNow();
+ bool RunItNow(bool ForceDownload=false);
time_t NextRunTime(time_t Now=(time_t) 0);
void Store(void);
void ChangeChannelSelection(int *Selection);
@@ -162,6 +162,7 @@ public:
time_t NextRunTime();
bool Exists(const char *Name);
cEPGSource *GetSource(const char *Name);
+ cEPGSource *GetSourceDB(const char *EpgFile);
int GetSourceIdx(const char *Name);
void Remove();
};
@@ -172,6 +173,8 @@ class cEPGExecutor : public cThread
{
private:
cEPGSources *sources;
+ bool forcedownload;
+ int forceimportsrc;
public:
cEPGExecutor(cEPGSources *Sources);
bool StillRunning()
@@ -182,6 +185,18 @@ public:
{
Cancel(3);
}
+ void SetForceDownload()
+ {
+ forcedownload=true;
+ }
+ void SetForceImport(int SourceIdx)
+ {
+ forceimportsrc=-1;
+ if (!sources) return;
+ if (SourceIdx>sources->Count()) return;
+ if (SourceIdx<0) return;
+ forceimportsrc=SourceIdx;
+ }
virtual void Action();
};