Added GenericCore::getSettings(...) for the UIs (they don't need to use the NetworkHandler directly).
This commit is contained in:
@ -135,6 +135,10 @@ bool GenericCore::exportCSVFile(const QString& filePath) {
|
|||||||
return FileHandler::exportToCSVFile(itemsAsStringLists, filePath);
|
return FileHandler::exportToCSVFile(itemsAsStringLists, filePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QVariantMap GenericCore::getSettings(QString group) const {
|
||||||
|
return SettingsHandler::getSettings(group);
|
||||||
|
}
|
||||||
|
|
||||||
void GenericCore::applySettings(QVariantMap settingMap, QString group) {
|
void GenericCore::applySettings(QVariantMap settingMap, QString group) {
|
||||||
SettingsHandler::saveSettings(settingMap, group);
|
SettingsHandler::saveSettings(settingMap, group);
|
||||||
|
|
||||||
|
|||||||
@ -33,6 +33,7 @@ class GenericCore : public QObject {
|
|||||||
void importCSVFile(const QString& filePath);
|
void importCSVFile(const QString& filePath);
|
||||||
bool exportCSVFile(const QString& filePath);
|
bool exportCSVFile(const QString& filePath);
|
||||||
|
|
||||||
|
QVariantMap getSettings(QString group = "") const;
|
||||||
void applySettings(QVariantMap settingMap, QString group = "");
|
void applySettings(QVariantMap settingMap, QString group = "");
|
||||||
bool isSyncServerSetup() const;
|
bool isSyncServerSetup() const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user