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

Method updateConfigFile

cpp/src/ManufacturerSpecificDB.cpp:434–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432}
433
434bool ManufacturerSpecificDB::updateConfigFile
435(
436 Driver *driver,
437 Node *node
438)
439{
440 string configPath;
441 bool ret = false;
442 Options::Get()->GetOptionAsString( "ConfigPath", &configPath );
443 string path = configPath + node->getConfigPath();
444
445 if (driver->startConfigDownload(node->GetManufacturerId(), node->GetProductType(), node->GetProductId(), path, node->GetNodeId())) {
446 m_downloading.push_back(path);
447 ret = true;
448 } else {
449 Log::Write(LogLevel_Warning, "Can't download Config file %s", node->getConfigPath().c_str());
450 Notification* notification = new Notification( Notification::Type_UserAlerts );
451 notification->SetUserAlertNofification(Notification::Alert_ConfigFileDownloadFailed);
452 driver->QueueNotification( notification );
453 }
454 checkInitialized();
455 return ret;
456}
457bool ManufacturerSpecificDB::updateMFSConfigFile
458(
459 Driver *driver

Callers 2

processConfigRevisionMethod · 0.80

Calls 11

WriteFunction · 0.85
GetOptionAsStringMethod · 0.80
getConfigPathMethod · 0.80
startConfigDownloadMethod · 0.80
GetNodeIdMethod · 0.80
QueueNotificationMethod · 0.80
GetFunction · 0.70
GetManufacturerIdMethod · 0.45
GetProductTypeMethod · 0.45
GetProductIdMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected