summaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-03-09 12:34:34 +0100
committerTannin <devnull@localhost>2015-03-09 12:34:34 +0100
commit7a1ae9b0f1560c9eda32e032796fbb3fd56ff236 (patch)
treedea71435ac1042cb008fcd9f7b1ec57e6ea91227 /src/settings.h
parentd45ebf134819e1559718681becca9c4139fb7151 (diff)
parentdb2954e8eb41da715b9e7d79a72e225797401413 (diff)
Merge with branch1.2
Diffstat (limited to 'src/settings.h')
-rw-r--r--src/settings.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/settings.h b/src/settings.h
index 5d398f49..51e109c4 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -29,6 +29,11 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include <QComboBox>
+namespace MOBase {
+ class IPluginGame;
+}
+
+
/**
* manages the settings for Mod Organizer. The settings are not cached
* inside the class but read/written directly from/to disc
@@ -43,7 +48,7 @@ public:
/**
* @brief constructor
**/
- Settings();
+ Settings(const QSettings &settingsSource);
virtual ~Settings();
@@ -272,6 +277,11 @@ public:
* even if the user said earlier not to
*/
void registerAsNXMHandler(bool force);
+
+public slots:
+
+ void managedGameChanged(MOBase::IPluginGame *gamePlugin);
+
private:
QString obfuscate(const QString &password) const;
@@ -281,6 +291,7 @@ private:
void addStyles(QComboBox *styleBox);
void readPluginBlacklist();
void writePluginBlacklist();
+ QString getConfigurablePath(const QString &key, const QString &def) const;
private slots:
@@ -295,6 +306,8 @@ private:
static Settings *s_Instance;
+ MOBase::IPluginGame *m_GamePlugin;
+
QSettings m_Settings;
LoadMechanism m_LoadMechanism;