diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2018-12-04 19:09:22 -0600 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2018-12-05 19:17:16 -0600 |
| commit | 849d00521a9797620c019991fda47f3ccffaca60 (patch) | |
| tree | b5bbdad9bf866dd2f6d1e0e80602f77bd0307c34 /src/profile.h | |
| parent | deb3c5ca21f8baa68204302d0cc5c4ef4d9c1a14 (diff) | |
Transition profile settings to settings.ini
Diffstat (limited to 'src/profile.h')
| -rw-r--r-- | src/profile.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/profile.h b/src/profile.h index 9ddd5b89..a9d68062 100644 --- a/src/profile.h +++ b/src/profile.h @@ -79,6 +79,13 @@ public: ~Profile(); /** + * Determines the default settings for the profile based on the current state of the profile's + * files. This function should remain backwards compatible as much as possible. + **/ + + void findProfileSettings(void); + + /** * @return true if this profile (still) exists on disc */ bool exists() const; @@ -230,7 +237,7 @@ public: * retrieve the number of mods for which this object has status information. * This is usually the same as ModInfo::getNumMods() except between * calls to ModInfo::updateFromDisc() and the Profile::refreshModStatus() - * + * * @return number of mods for which the profile has status information **/ size_t numMods() const { return m_ModStatus.size(); } @@ -287,12 +294,14 @@ public: void dumpModStatus() const; - QVariant setting(const QString §ion, const QString &name, - const QVariant &fallback = QVariant()); + QVariant setting(const QString §ion, const QString &name = QString(), + const QVariant &fallback = QVariant()) const; void storeSetting(const QString §ion, const QString &name, const QVariant &value); - void removeSetting(const QString §ion, const QString &name); + void storeSetting(const QString &name, const QVariant &value); + void removeSetting(const QString §ion, const QString &name = QString()); + void removeSetting(const QString &name); int getPriorityMinimum() const; |
