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

Method updateMFSConfigFile

cpp/src/ManufacturerSpecificDB.cpp:457–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455 return ret;
456}
457bool ManufacturerSpecificDB::updateMFSConfigFile
458(
459 Driver *driver
460)
461{
462 bool ret = false;
463 string configPath;
464 Options::Get()->GetOptionAsString( "ConfigPath", &configPath );
465 string path = configPath + "manufacturer_specific.xml";
466
467 if (driver->startMFSDownload(path)) {
468 m_downloading.push_back(path);
469 ret = true;
470 } else {
471 Log::Write(LogLevel_Warning, "Can't download ManufacturerSpecifix.xml Config file");
472 Notification* notification = new Notification( Notification::Type_UserAlerts );
473 notification->SetUserAlertNofification(Notification::Alert_ConfigFileDownloadFailed);
474 driver->QueueNotification( notification );
475 }
476
477 checkInitialized();
478 return ret;
479}
480

Callers 2

processConfigRevisionMethod · 0.80
downloadMFSRevisionMethod · 0.80

Calls 5

WriteFunction · 0.85
GetOptionAsStringMethod · 0.80
startMFSDownloadMethod · 0.80
QueueNotificationMethod · 0.80
GetFunction · 0.70

Tested by

no test coverage detected