| 455 | return ret; |
| 456 | } |
| 457 | bool 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 |
no test coverage detected