diff options
author | horchi <vdr@jwendel.de> | 2018-02-24 17:29:07 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2018-02-24 18:34:40 +0100 |
commit | fb6de12636c538ab4ddaae0cc32089eac9584ed9 (patch) | |
tree | 6d769d1f32770fa90323028b4609c490a9a1cb86 /update.h | |
parent | 49e5a4dd952d1fe444d40f107d5300132cef5eeb (diff) | |
download | vdr-plugin-epg2vdr-fb6de12636c538ab4ddaae0cc32089eac9584ed9.tar.gz vdr-plugin-epg2vdr-fb6de12636c538ab4ddaae0cc32089eac9584ed9.tar.bz2 |
2018-02-23 version 1.1.89 (horchi)\n - change: Improved switch timer 'timing'\n\n
Diffstat (limited to 'update.h')
-rw-r--r-- | update.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -115,6 +115,12 @@ class cUpdate : public cThread, public cStatus, public cParameters mmCount }; + enum Event + { + evtUnknown = na, + evtSwitchTimer, + }; + cUpdate(cPluginEPG2VDR* aPlugin); ~cUpdate(); @@ -168,6 +174,7 @@ class cUpdate : public cThread, public cStatus, public cParameters int exitDb(); void Action(void); + void processEvents(); int isHandlerMaster(); void updateVdrData(); int updateRecFolderOption(); @@ -239,6 +246,7 @@ class cUpdate : public cThread, public cStatus, public cParameters int recordingFullReloadTrigger; int storeAllRecordingInfoFilesTrigger; int updateRecFolderOptionTrigger; + int switchTimerTrigger; cList<cRunningRecording> runningRecordings; cMutex runningRecMutex; @@ -300,6 +308,11 @@ class cUpdate : public cThread, public cStatus, public cParameters std::queue<std::string> pendingNewRecordings; // recordings to store details (obsolete if pendingRecordingActions implemented finally) std::queue<RecordingAction> pendingRecordingActions; // recordings actions (start/stop) std::map<long,SwitchTimer> switchTimers; + std::queue<int> eventHook; + cMutex eventHookMutex; + + std::list<cTimerThread*> timerThreads; + static void sendEvent(int event, void* userData); static const char* auxFields[]; }; |