From a20aa3c7e544c0fc32fb1d8a5f04b24cfd026267 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 24 Jan 2009 09:49:37 +0000 Subject: 2009-01-24 Tatsuhiro Tsujikawa Rewritten FileAllocationDispatcherCommand using brand new SequentialDispatcherCommand. * src/DownloadEngineFactory.cc * src/FileAllocationCommand.cc * src/FileAllocationDispatcherCommand.cc * src/FileAllocationDispatcherCommand.h * src/Makefile.am * src/SequentialDispatcherCommand.h --- src/FileAllocationDispatcherCommand.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'src/FileAllocationDispatcherCommand.h') 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 { public: - FileAllocationDispatcherCommand(int32_t cuid, DownloadEngine* e); - - virtual ~FileAllocationDispatcherCommand(); - - virtual bool execute(); + FileAllocationDispatcherCommand + (int32_t cuid, + const SharedHandle& fileAllocMan, + DownloadEngine* e); +protected: + virtual Command* createCommand + (const SharedHandle& entry); }; } // namespace aria2 -- cgit