@brief Get 'config' column of settings entry as QString @param[in] type The settings type @return The QString
| 71 | /// @return The QString |
| 72 | /// |
| 73 | QString SettingsTable::getSettingsRecordString(const QString& type) const |
| 74 | { |
| 75 | QVariantMap results; |
| 76 | VectorPair cond; |
| 77 | cond.append(CPair("type", type)); |
| 78 | // when a setting is not global we are searching also for the instance |
| 79 | if (!isSettingGlobal(type)) |
| 80 | cond.append(CPair("AND " + INSTANCE_COLUMN, _instance)); |
| 81 | getRecord(cond, results, QStringList("config")); |
| 82 | return results["config"].toString(); |
| 83 | } |
| 84 | |
| 85 | bool SettingsTable::deleteSettingsRecordString(const QString& type) const |
| 86 | { |