From 079d2844ecde061d45c6884aa0ffee7fdc05de63 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 20 May 2007 13:57:56 +0000 Subject: New files --- src/FileAllocationCommand.h | 63 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 src/FileAllocationCommand.h (limited to 'src/FileAllocationCommand.h') diff --git a/src/FileAllocationCommand.h b/src/FileAllocationCommand.h new file mode 100644 index 00000000..0ca78937 --- /dev/null +++ b/src/FileAllocationCommand.h @@ -0,0 +1,63 @@ +/* */ +#ifndef _D_FILE_ALLOCATION_COMMAND_H_ +#define _D_FILE_ALLOCATION_COMMAND_H_ + +#include "Command.h" +#include "Request.h" +#include "RequestGroup.h" +#include "DownloadEngine.h" +#include "TimeA2.h" +#include "FileAllocationEntry.h" + +class FileAllocationCommand : public Command { +private: + RequestHandle _req; + RequestGroup* _requestGroup; + DownloadEngine* _e; + FileAllocationEntryHandle _fileAllocationEntry; + Time _timer; +public: + FileAllocationCommand(int cuid, const RequestHandle& req, RequestGroup* requestGroup, DownloadEngine* e, const FileAllocationEntryHandle& fileAllocationEntry): + Command(cuid), + _req(req), + _requestGroup(requestGroup), + _e(e), + _fileAllocationEntry(fileAllocationEntry) {} + + virtual bool execute(); +}; + +#endif // _D_FILE_ALLOCATION_COMMAND_H_ -- cgit