/* */ #include "BtFileAllocationEntry.h" #include "BtSetup.h" #include "RequestGroup.h" #include "Command.h" #include "DownloadEngine.h" BtFileAllocationEntry::BtFileAllocationEntry(RequestGroup* requestGroup): FileAllocationEntry(requestGroup, 0) {} BtFileAllocationEntry::~BtFileAllocationEntry() {} Commands BtFileAllocationEntry::prepareForNextAction(DownloadEngine* e) { Commands commands = BtSetup().setup(_requestGroup, e, e->option); // TODO don't integerate http/ftp when multi-file torrent Commands streamCommands = _requestGroup->createNextCommandWithAdj(e, 0); copy(streamCommands.begin(), streamCommands.end(), back_inserter(commands)); return commands; }