diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-08 14:11:36 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-08 14:11:36 +0000 |
| commit | 7cd9b21937c42606354610c7ae85a0857b474cf5 (patch) | |
| tree | 21edec9e14d7bde8cfa705840a6e9756b732e1e5 /src/CheckIntegrityCommand.cc | |
| parent | 2dc4bf01ad3b9be3de22696128e8007cf81a5345 (diff) | |
2010-06-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made public member variables of DownloadEngine private. Added
accessor funcs.
Diffstat (limited to 'src/CheckIntegrityCommand.cc')
| -rw-r--r-- | src/CheckIntegrityCommand.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/CheckIntegrityCommand.cc b/src/CheckIntegrityCommand.cc index d434a070..ed5b8e8c 100644 --- a/src/CheckIntegrityCommand.cc +++ b/src/CheckIntegrityCommand.cc @@ -43,6 +43,9 @@ #include "a2functional.h" #include "RecoverableException.h" #include "util.h" +#include "RequestGroupMan.h" +#include "FileAllocationEntry.h" +#include "ServerStatMan.h" namespace aria2 { @@ -58,12 +61,12 @@ CheckIntegrityCommand::~CheckIntegrityCommand() {} bool CheckIntegrityCommand::executeInternal() { if(_requestGroup->isHaltRequested()) { - _e->_checkIntegrityMan->dropPickedEntry(); + _e->getCheckIntegrityMan()->dropPickedEntry(); return true; } _entry->validateChunk(); if(_entry->finished()) { - _e->_checkIntegrityMan->dropPickedEntry(); + _e->getCheckIntegrityMan()->dropPickedEntry(); // Enable control file saving here. See also // RequestGroup::processCheckIntegrityEntry() to know why this is // needed. @@ -94,14 +97,14 @@ bool CheckIntegrityCommand::executeInternal() _e->setNoWait(true); return true; } else { - _e->commands.push_back(this); + _e->addCommand(this); return false; } } bool CheckIntegrityCommand::handleException(Exception& e) { - _e->_checkIntegrityMan->dropPickedEntry(); + _e->getCheckIntegrityMan()->dropPickedEntry(); logger->error(MSG_FILE_VALIDATION_FAILURE, e, util::itos(cuid).c_str()); logger->error(MSG_DOWNLOAD_NOT_COMPLETE, util::itos(cuid).c_str(), |
