/* */ #include "CheckIntegrityDispatcherCommand.h" #include "CheckIntegrityEntry.h" #include "CheckIntegrityCommand.h" #include "message.h" #include "Logger.h" #include "FileEntry.h" #include "util.h" #include "ServerStatMan.h" #include "FileAllocationEntry.h" namespace aria2 { CheckIntegrityDispatcherCommand::CheckIntegrityDispatcherCommand (cuid_t cuid, const SharedHandle& fileAllocMan, DownloadEngine* e):SequentialDispatcherCommand (cuid, fileAllocMan, e) { setStatusRealtime(); } Command* CheckIntegrityDispatcherCommand::createCommand (const SharedHandle& entry) { cuid_t newCUID = _e->newCUID(); if(logger->info()) { logger->info("CUID#%s - Dispatching CheckIntegrityCommand CUID#%s.", util::itos(cuid).c_str(), util::itos(newCUID).c_str()); } return new CheckIntegrityCommand (newCUID, entry->getRequestGroup(), _e, entry); } } // namespace aria2