| 542 | } |
| 543 | |
| 544 | int CManager::SaveSettings(const QString szFile) |
| 545 | { |
| 546 | if(!m_pParameterPlugin) { |
| 547 | qCritical(log) << "The m_pParameter is nullptr"; |
| 548 | Q_ASSERT_X(m_pParameterPlugin, "CManager", "The m_pParameter is nullptr"); |
| 549 | return -1; |
| 550 | } |
| 551 | |
| 552 | QString s = szFile; |
| 553 | if(s.isEmpty()) |
| 554 | s = m_szSettingsFile; |
| 555 | return m_pParameterPlugin->Save(s); |
| 556 | } |
| 557 | |
| 558 | CParameterGlobal* CManager::GetGlobalParameters() |
| 559 | { |
no test coverage detected