| 7476 | |
| 7477 | |
| 7478 | void Driver::processDownload |
| 7479 | ( |
| 7480 | HttpDownload *download |
| 7481 | ) |
| 7482 | { |
| 7483 | if (download->transferStatus == HttpDownload::Ok) { |
| 7484 | Log::Write(LogLevel_Info, "Download Finished: %s (Node: %d)", download->filename.c_str(), download->node); |
| 7485 | if (download->operation == HttpDownload::Config) { |
| 7486 | m_mfs->configDownloaded(this, download->filename, download->node); |
| 7487 | } else if (download->operation == HttpDownload::MFSConfig) { |
| 7488 | m_mfs->mfsConfigDownloaded(this, download->filename); |
| 7489 | } |
| 7490 | } else { |
| 7491 | Log::Write(LogLevel_Warning, "Download of %s Failed (Node: %d)", download->url.c_str(), download->node); |
| 7492 | if (download->operation == HttpDownload::Config) { |
| 7493 | m_mfs->configDownloaded(this, download->filename, download->node, false); |
| 7494 | } else if (download->operation == HttpDownload::MFSConfig) { |
| 7495 | m_mfs->mfsConfigDownloaded(this, download->filename, false); |
| 7496 | } |
| 7497 | Notification* notification = new Notification( Notification::Type_UserAlerts ); |
| 7498 | notification->SetUserAlertNofification(Notification::Alert_ConfigFileDownloadFailed); |
| 7499 | QueueNotification( notification ); |
| 7500 | } |
| 7501 | |
| 7502 | } |
| 7503 | |
| 7504 | bool Driver::downloadConfigRevision |
| 7505 | ( |
nothing calls this directly
no test coverage detected