summaryrefslogtreecommitdiff
path: root/src/FileAllocationDispatcherCommand.h
diff options
context:
space:
mode:
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