summaryrefslogtreecommitdiff
path: root/src/TimeBasedCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-02-11 05:07:08 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-02-11 05:07:08 +0000
commit9c277148b9cd1c3ddfc4a2e126d64a230c608255 (patch)
tree8589671cadf1a72fdc52ecc9dfb8d55e699fc3ac /src/TimeBasedCommand.h
parent5d6f1c046a9220a8e45d127f12c463a167479872 (diff)
2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added the ability to stop aria2 itself when given time has passed from start. Use --stop option to specify time in minutes. When 0 is given, this feature is disabled. * src/OptionHandlerFactory.cc * src/TimeBasedCommand.h: Make _interval protected scope. * src/HelpItemFactory.cc * src/option_processing.cc * src/prefs.h * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested() before calling RequestGroupMan::fillRequestGroupFromReserver(). Without this modification, the result list shows "ERR" when aria2 is stopped by --stop option. It should be "INPR". * src/DownloadEngine.{h, cc} * src/DownloadEngineFactory.cc * src/usage_text.h * src/TimedHaltCommand.{h, cc}: New class.
Diffstat (limited to 'src/TimeBasedCommand.h')
-rw-r--r--src/TimeBasedCommand.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/TimeBasedCommand.h b/src/TimeBasedCommand.h
index a2f95a0e..ab0d53c1 100644
--- a/src/TimeBasedCommand.h
+++ b/src/TimeBasedCommand.h
@@ -55,8 +55,9 @@ protected:
* true.
*/
bool _exit;
-private:
+
int32_t _interval; // unit: sec
+private:
Time _checkPoint;
public:
/**