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/HttpServerResponseCommand.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/HttpServerResponseCommand.cc') diff --git a/src/HttpServerResponseCommand.cc b/src/HttpServerResponseCommand.cc index e3a163f5..dd464a97 100644 --- a/src/HttpServerResponseCommand.cc +++ b/src/HttpServerResponseCommand.cc @@ -43,6 +43,9 @@ #include "FileEntry.h" #include "wallclock.h" #include "util.h" +#include "ServerStatMan.h" +#include "FileAllocationEntry.h" +#include "CheckIntegrityEntry.h" namespace aria2 { @@ -67,7 +70,7 @@ HttpServerResponseCommand::~HttpServerResponseCommand() bool HttpServerResponseCommand::execute() { - if(_e->_requestGroupMan->downloadFinished() || _e->isHaltRequested()) { + if(_e->getRequestGroupMan()->downloadFinished() || _e->isHaltRequested()) { return true; } try { @@ -88,8 +91,7 @@ bool HttpServerResponseCommand::execute() if(logger->info()) { logger->info("CUID#%s - Persist connection.", util::itos(cuid).c_str()); } - _e->commands.push_back - (new HttpServerCommand(cuid, _httpServer, _e, _socket)); + _e->addCommand(new HttpServerCommand(cuid, _httpServer, _e, _socket)); } return true; } else { @@ -100,7 +102,7 @@ bool HttpServerResponseCommand::execute() } return true; } else { - _e->commands.push_back(this); + _e->addCommand(this); return false; } } -- cgit