diff options
Diffstat (limited to 'src/TimeBasedCommand.h')
| -rw-r--r-- | src/TimeBasedCommand.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/TimeBasedCommand.h b/src/TimeBasedCommand.h index dc5f0c38..488df5b7 100644 --- a/src/TimeBasedCommand.h +++ b/src/TimeBasedCommand.h @@ -44,7 +44,7 @@ class DownloadEngine; class TimeBasedCommand : public Command { -protected: +private: DownloadEngine* _e; /** @@ -59,8 +59,23 @@ protected: time_t _interval; // unit: sec bool _routineCommand; -private: + Timer _checkPoint; +protected: + DownloadEngine* getDownloadEngine() const + { + return _e; + } + + void enableExit() + { + _exit = true; + } + + time_t getInterval() const + { + return _interval; + } public: /** * preProcess() is called each time when excute() is called. |
