diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-02 23:24:27 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-08-04 06:09:47 -0400 |
| commit | b6b01a52db1877b16531137289641fb9be9833aa (patch) | |
| tree | 4822150ac91a22ec68fd8f63f29df296691c8f81 /src/settings.h | |
| parent | a7df11a31d684cfc341fc401dc3a9449f2538084 (diff) | |
removed mentions of QSettings from main.cpp
added necessary member functions in Settings
Diffstat (limited to 'src/settings.h')
| -rw-r--r-- | src/settings.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/settings.h b/src/settings.h index 63718089..f06aece9 100644 --- a/src/settings.h +++ b/src/settings.h @@ -40,7 +40,7 @@ class Settings : public QObject Q_OBJECT public: - Settings(const QSettings &settingsSource); + Settings(const QString& path); ~Settings(); static Settings &instance(); @@ -123,6 +123,24 @@ public: * retrieve the directory where the managed game is stored (with native separators) **/ QString getManagedGameDirectory() const; + void setManagedGameDirectory(const QString& path); + + QString getManagedGameName() const; + void setManagedGameName(const QString& name); + + QString getManagedGameEdition() const; + void setManagedGameEdition(const QString& name); + + QString getSelectedProfileName() const; + + // returns -1 if not set + // + int getMainWindowMonitor() const; + + QString getStyleName() const; + void setStyleName(const QString& name); + + bool isCategoryListVisible() const; /** * retrieve the directory where profiles stored (with native separators) @@ -370,6 +388,8 @@ public: MOBase::IPluginGame const *gamePlugin() { return m_GamePlugin; } const LoadMechanism& loadMechanism() const { return m_LoadMechanism; } + void dump() const; + // temp QMap<QString, QVariantMap> m_PluginSettings; QMap<QString, QVariantMap> m_PluginDescriptions; |
