summaryrefslogtreecommitdiff
path: root/src/FileAllocationDispatcherCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-01-24 09:49:37 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-01-24 09:49:37 +0000
commita20aa3c7e544c0fc32fb1d8a5f04b24cfd026267 (patch)
tree6dd27346a525c639e02d27a7d27ec8012d1cb107 /src/FileAllocationDispatcherCommand.h
parent8ca9db9f3ee007d40b85339f81a39ea3c1a22616 (diff)
2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Rewritten FileAllocationDispatcherCommand using brand new SequentialDispatcherCommand. * src/DownloadEngineFactory.cc * src/FileAllocationCommand.cc * src/FileAllocationDispatcherCommand.cc * src/FileAllocationDispatcherCommand.h * src/Makefile.am * src/SequentialDispatcherCommand.h
Diffstat (limited to 'src/FileAllocationDispatcherCommand.h')
-rw-r--r--src/FileAllocationDispatcherCommand.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/FileAllocationDispatcherCommand.h b/src/FileAllocationDispatcherCommand.h
index f45cd2f5..beba1504 100644
--- a/src/FileAllocationDispatcherCommand.h
+++ b/src/FileAllocationDispatcherCommand.h
@@ -35,21 +35,23 @@
#ifndef _D_FILE_ALLOCATION_DISPATCHER_COMMAND_H_
#define _D_FILE_ALLOCATION_DISPATCHER_COMMAND_H_
-#include "Command.h"
+#include "SequentialDispatcherCommand.h"
+#include "FileAllocationMan.h"
namespace aria2 {
-class DownloadEngine;
+class FileAllocationEntry;
-class FileAllocationDispatcherCommand : public Command {
-private:
- DownloadEngine* _e;
+class FileAllocationDispatcherCommand :
+ public SequentialDispatcherCommand<FileAllocationEntry> {
public:
- FileAllocationDispatcherCommand(int32_t cuid, DownloadEngine* e);
-
- virtual ~FileAllocationDispatcherCommand();
-
- virtual bool execute();
+ FileAllocationDispatcherCommand
+ (int32_t cuid,
+ const SharedHandle<FileAllocationMan>& fileAllocMan,
+ DownloadEngine* e);
+protected:
+ virtual Command* createCommand
+ (const SharedHandle<FileAllocationEntry>& entry);
};
} // namespace aria2