diff options
author | horchi <vdr@jwendel.de> | 2018-02-09 17:15:09 +0100 |
---|---|---|
committer | horchi <vdr@jwendel.de> | 2018-02-09 17:15:09 +0100 |
commit | 59875c10d77355d34b864445e63f635fcc60d853 (patch) | |
tree | d142415bad5d29eb65613edc94418d6ae2272e75 /update.h | |
parent | dc1a77c5662d6b1d1fb988f61590f71af3773c29 (diff) | |
download | vdr-plugin-epg2vdr-59875c10d77355d34b864445e63f635fcc60d853.tar.gz vdr-plugin-epg2vdr-59875c10d77355d34b864445e63f635fcc60d853.tar.bz2 |
2018-02-09 version 1.1.82 (horchi)\n - added: Switch timer\n\n1.1.82
Diffstat (limited to 'update.h')
-rw-r--r-- | update.h | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -144,10 +144,11 @@ class cUpdate : public cThread, public cStatus, public cParameters private: - struct TimerId + struct SwitchTimer { - unsigned int eventId; - char channelId[100]; + long eventId; + std::string channelId; + time_t start; }; // struct to store a recording action delieverd by the status interface @@ -195,7 +196,9 @@ class cUpdate : public cThread, public cStatus, public cParameters int performTimerJobs(); int recordingChanged(); int updateTimerDone(int timerid, int doneid, char state); - int timerChanged(); + int hasTimerChanged(); + int takeSwitchTimer(); + int checkSwitchTimer(); // recording stuff @@ -226,6 +229,7 @@ class cUpdate : public cThread, public cStatus, public cParameters char imageExtension[3+TB]; cMutex timerMutex; + cMutex swTimerMutex; int dbReconnectTriggered; int timerJobsUpdateTriggered; int timerTableUpdateTriggered; @@ -257,6 +261,7 @@ class cUpdate : public cThread, public cStatus, public cParameters cDbTable* compDb; cDbTable* recordingDirDb; cDbTable* recordingListDb; + cDbTable* recordingImagesDb; cDbStatement* selectMasterVdr; cDbStatement* selectAllImages; @@ -271,6 +276,7 @@ class cUpdate : public cThread, public cStatus, public cParameters cDbStatement* selectRecordings; cDbStatement* selectRecForInfoUpdate; cDbStatement* selectPendingTimerActions; + cDbStatement* selectSwitchTimerActions; cDbStatement* selectTimerByEvent; cDbStatement* selectTimerById; cDbStatement* selectTimerByDoneId; @@ -288,9 +294,9 @@ class cUpdate : public cThread, public cStatus, public cParameters cDbValue* viewMergeSource; cDbValue* viewLongDescription; - std::queue<std::string> pendingNewRecordings; // recordings to store details (obsolete if pendingRecordingActions implemented finally) + std::queue<std::string> pendingNewRecordings; // recordings to store details (obsolete if pendingRecordingActions implemented finally) std::queue<RecordingAction> pendingRecordingActions; // recordings actions (start/stop) - std::vector<TimerId> deletedTimers; + std::map<long,SwitchTimer> switchTimers; static const char* auxFields[]; }; |