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);
|
||||
}
|
||||
|
||||
QVariantMap GenericCore::getSettings(QString group) const {
|
||||
return SettingsHandler::getSettings(group);
|
||||
}
|
||||
|
||||
void GenericCore::applySettings(QVariantMap settingMap, QString group) {
|
||||
SettingsHandler::saveSettings(settingMap, group);
|
||||
|
||||
|
||||
@ -33,6 +33,7 @@ class GenericCore : public QObject {
|
||||
void importCSVFile(const QString& filePath);
|
||||
bool exportCSVFile(const QString& filePath);
|
||||
|
||||
QVariantMap getSettings(QString group = "") const;
|
||||
void applySettings(QVariantMap settingMap, QString group = "");
|
||||
bool isSyncServerSetup() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user