MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / processDownload

Method processDownload

cpp/src/Driver.cpp:7478–7502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7476
7477
7478void 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
7504bool Driver::downloadConfigRevision
7505(

Callers

nothing calls this directly

Calls 4

WriteFunction · 0.85
configDownloadedMethod · 0.80
mfsConfigDownloadedMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected