diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-10-11 16:58:24 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-10-11 16:58:24 +0000 |
| commit | 048a2cf59737f761876e81a77e8d064c45c752d7 (patch) | |
| tree | 65c9d5498aafe6a8c8e640ddfcc43c7013504d0d /src/AutoSaveCommand.cc | |
| parent | e26bbbb9eee140ba24402fe872a752b42f0077de (diff) | |
2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Implemented BitTorrent/http/ftp integrated download.
I've rewritten lots of files and now some headers have forward
class declarations to reduce compile time.
The implementation is extremely alpha stage, I recommend to use this
for testing purpose only.
Diffstat (limited to 'src/AutoSaveCommand.cc')
| -rw-r--r-- | src/AutoSaveCommand.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/AutoSaveCommand.cc b/src/AutoSaveCommand.cc index a894ac7e..238eb655 100644 --- a/src/AutoSaveCommand.cc +++ b/src/AutoSaveCommand.cc @@ -33,10 +33,17 @@ */ /* copyright --> */ #include "AutoSaveCommand.h" +#include "DownloadEngine.h" +#include "RequestGroupMan.h" + +AutoSaveCommand::AutoSaveCommand(int32_t cuid, DownloadEngine* e, int32_t interval): + TimeBasedCommand(cuid, e, interval) {} + +AutoSaveCommand::~AutoSaveCommand() {} void AutoSaveCommand::preProcess() { - if(_e->_requestGroupMan->downloadFinished()) { + if(_e->_requestGroupMan->downloadFinished() || _e->isHaltRequested()) { _exit = true; } } |
