/* */ #include "StreamCheckIntegrityEntry.h" #include "RequestGroup.h" #include "DownloadEngine.h" #include "StreamFileAllocationEntry.h" #include "FileAllocationMan.h" #include "Request.h" namespace aria2 { StreamCheckIntegrityEntry::StreamCheckIntegrityEntry(const RequestHandle& currentRequest, RequestGroup* requestGroup, Command* nextCommand): PieceHashCheckIntegrityEntry(requestGroup, nextCommand), _currentRequest(currentRequest) {} StreamCheckIntegrityEntry::~StreamCheckIntegrityEntry() {} void StreamCheckIntegrityEntry::onDownloadIncomplete(std::deque& commands, DownloadEngine* e) { FileAllocationEntryHandle entry (new StreamFileAllocationEntry(_currentRequest, _requestGroup, popNextCommand())); if(_requestGroup->needsFileAllocation()) { e->_fileAllocationMan->pushEntry(entry); } else { entry->prepareForNextAction(commands, e); } } void StreamCheckIntegrityEntry::onDownloadFinished(std::deque& commands, DownloadEngine* e) {} } // namespace aria2