From 7cd9b21937c42606354610c7ae85a0857b474cf5 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 8 Jun 2010 14:11:36 +0000 Subject: 2010-06-08 Tatsuhiro Tsujikawa Made public member variables of DownloadEngine private. Added accessor funcs. --- src/CheckIntegrityCommand.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/CheckIntegrityCommand.cc') 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(), -- cgit