summaryrefslogtreecommitdiff
path: root/src/TimeBasedCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/TimeBasedCommand.h')
-rw-r--r--src/TimeBasedCommand.h27
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,