diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-06-07 18:04:31 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-06-15 14:40:39 -0400 |
| commit | 26786da96d37914ca91eff633de751acf1a3b9d8 (patch) | |
| tree | 7c8690ccf3fa6f371dc18d7576312f2d660a43ba /src/executableslist.h | |
| parent | 4f01b94f01180989abbdf0407cdf95483970dba8 (diff) | |
moved store/load to ExecutablesList
Diffstat (limited to 'src/executableslist.h')
| -rw-r--r-- | src/executableslist.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/executableslist.h b/src/executableslist.h index b8e4cf77..136f70bf 100644 --- a/src/executableslist.h +++ b/src/executableslist.h @@ -103,9 +103,14 @@ public: bool empty() const;
/**
- * @brief add the executables preconfigured for this game
- **/
- void addFromPlugin(MOBase::IPluginGame const *game);
+ * @brief initializes the list from the settings and the given plugin
+ */
+ void load(const MOBase::IPluginGame* game, QSettings& settings);
+
+ /**
+ * @brief writes the current list to the settings
+ */
+ void store(QSettings& settings);
/**
* @brief get an executable by name
@@ -195,14 +200,16 @@ public: void remove(const QString &title);
private:
+ std::vector<Executable> m_Executables;
+
void addExecutableInternal(const QString &title, const QString &executableName, const QString &arguments,
const QString &workingDirectory,
const QString &steamAppID);
-private:
-
- std::vector<Executable> m_Executables;
-
+ /**
+ * @brief add the executables preconfigured for this game
+ **/
+ void addFromPlugin(MOBase::IPluginGame const *game);
};
Q_DECLARE_OPERATORS_FOR_FLAGS(Executable::Flags)
|
