diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-03-26 17:12:52 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-03-26 17:20:27 +0900 |
| commit | d64089632e82a2548752c7a6baaa68365a795a74 (patch) | |
| tree | 57fc7b85a8c1290975d58fa4761b04a7695bf7e3 /src/TimeBasedCommand.h | |
| parent | c81b1321122e8509b55c94c0cbca0d8d6d319f0c (diff) | |
| parent | a7cd943a06b1a5ff4515b57060b84037f8d01f9f (diff) | |
Merge branch 'master' into random-webseeding
Diffstat (limited to 'src/TimeBasedCommand.h')
| -rw-r--r-- | src/TimeBasedCommand.h | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/src/TimeBasedCommand.h b/src/TimeBasedCommand.h index e5082cad..d8d17b34 100644 --- a/src/TimeBasedCommand.h +++ b/src/TimeBasedCommand.h @@ -42,8 +42,7 @@ namespace aria2 { class DownloadEngine; -class TimeBasedCommand : public Command -{ +class TimeBasedCommand : public Command { private: DownloadEngine* e_; @@ -63,25 +62,17 @@ private: bool routineCommand_; protected: - DownloadEngine* getDownloadEngine() const - { - return e_; - } - - void enableExit() - { - exit_ = true; - } - - const std::chrono::seconds& getInterval() const - { - return interval_; - } + DownloadEngine* getDownloadEngine() const { return e_; } + + void enableExit() { exit_ = true; } + + const std::chrono::seconds& getInterval() const { return interval_; } + public: /** * preProcess() is called each time when excute() is called. */ - virtual void preProcess() {}; + virtual void preProcess(){}; /** * process() is called only when excute() is called and specified time has @@ -92,7 +83,7 @@ public: /** * postProcess() is called each time when excute() is called. */ - virtual void postProcess() {}; + virtual void postProcess(){}; public: TimeBasedCommand(cuid_t cuid, DownloadEngine* e, |
