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/CreateRequestCommand.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/CreateRequestCommand.cc') diff --git a/src/CreateRequestCommand.cc b/src/CreateRequestCommand.cc index bcac77aa..15dd3431 100644 --- a/src/CreateRequestCommand.cc +++ b/src/CreateRequestCommand.cc @@ -47,6 +47,10 @@ #include "SleepCommand.h" #include "Logger.h" #include "util.h" +#include "RequestGroupMan.h" +#include "FileAllocationEntry.h" +#include "CheckIntegrityEntry.h" +#include "ServerStatMan.h" namespace aria2 { @@ -95,7 +99,7 @@ bool CreateRequestCommand::executeInternal() InitiateConnectionCommandFactory::createInitiateConnectionCommand (cuid, req, _fileEntry, _requestGroup, e); e->setNoWait(true); - e->commands.push_back(command); + e->addCommand(command); return true; } @@ -117,7 +121,7 @@ bool CreateRequestCommand::prepareForRetry(time_t wait) util::itos(cuid).c_str()); } SleepCommand* scom = new SleepCommand(cuid, e, _requestGroup, this, wait); - e->commands.push_back(scom); + e->addCommand(scom); return false; } -- cgit