summaryrefslogtreecommitdiff
path: root/src/DownloadEngine.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/DownloadEngine.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/DownloadEngine.h')
-rw-r--r--src/DownloadEngine.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/DownloadEngine.h b/src/DownloadEngine.h
index b895a999..fc3c074a 100644
--- a/src/DownloadEngine.h
+++ b/src/DownloadEngine.h
@@ -161,6 +161,8 @@ public:
{
return _haltRequested;
}
+
+ void requestHalt();
};
typedef SharedHandle<DownloadEngine> DownloadEngineHandle;