/* */ #include "StreamCheckIntegrityEntry.h" #include "RequestGroup.h" #include "DownloadEngine.h" #include "StreamFileAllocationEntry.h" #include "prefs.h" #include "Option.h" #include "PieceStorage.h" namespace aria2 { StreamCheckIntegrityEntry::StreamCheckIntegrityEntry(RequestGroup* requestGroup, Command* nextCommand): PieceHashCheckIntegrityEntry(requestGroup, nextCommand) {} StreamCheckIntegrityEntry::~StreamCheckIntegrityEntry() {} void StreamCheckIntegrityEntry::onDownloadIncomplete (std::vector& commands, DownloadEngine* e) { const SharedHandle& ps = getRequestGroup()->getPieceStorage(); ps->onDownloadIncomplete(); if(getRequestGroup()->getOption()->getAsBool(PREF_HASH_CHECK_ONLY)) { return; } SharedHandle entry (new StreamFileAllocationEntry(getRequestGroup(), popNextCommand())); proceedFileAllocation(commands, entry, e); } void StreamCheckIntegrityEntry::onDownloadFinished (std::vector& commands, DownloadEngine* e) {} } // namespace aria2