/* */ #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, std::unique_ptr nextCommand): PieceHashCheckIntegrityEntry(requestGroup, std::move(nextCommand)) {} StreamCheckIntegrityEntry::~StreamCheckIntegrityEntry() {} void StreamCheckIntegrityEntry::onDownloadIncomplete (std::vector>& commands, DownloadEngine* e) { const std::shared_ptr& ps = getRequestGroup()->getPieceStorage(); ps->onDownloadIncomplete(); if(getRequestGroup()->getOption()->getAsBool(PREF_HASH_CHECK_ONLY)) { return; } std::shared_ptr entry (new StreamFileAllocationEntry(getRequestGroup(), popNextCommand())); proceedFileAllocation(commands, entry, e); } void StreamCheckIntegrityEntry::onDownloadFinished (std::vector>& commands, DownloadEngine* e) {} } // namespace aria2