summaryrefslogtreecommitdiff
path: root/src/HttpServerResponseCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-08 14:11:36 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-08 14:11:36 +0000
commit7cd9b21937c42606354610c7ae85a0857b474cf5 (patch)
tree21edec9e14d7bde8cfa705840a6e9756b732e1e5 /src/HttpServerResponseCommand.cc
parent2dc4bf01ad3b9be3de22696128e8007cf81a5345 (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/HttpServerResponseCommand.cc')
-rw-r--r--src/HttpServerResponseCommand.cc10
1 files changed, 6 insertions, 4 deletions
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;
}
}