| 432 | } |
| 433 | |
| 434 | bool 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 | } |
| 457 | bool ManufacturerSpecificDB::updateMFSConfigFile |
| 458 | ( |
| 459 | Driver *driver |
no test coverage detected