summaryrefslogtreecommitdiff
path: root/src/CreateRequestCommand.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/CreateRequestCommand.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/CreateRequestCommand.cc')
-rw-r--r--src/CreateRequestCommand.cc8
1 files changed, 6 insertions, 2 deletions
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;
}