summaryrefslogtreecommitdiff
path: root/src/executableslist.h
diff options
context:
space:
mode:
authorTom Tanner <thosrtanner2@users.sourceforge.net>2015-08-13 21:48:33 +0100
committerTom Tanner <thosrtanner2@users.sourceforge.net>2015-08-13 21:48:33 +0100
commit716dbcc97d306115df4bcd32cef717e616190ce4 (patch)
tree72ee314c91077c6843087f531cb646c122ef99e6 /src/executableslist.h
parent69a8a40b9993b791d99097549b13dee2fad0f222 (diff)
parent8e7ac4e064c51cf8bdba7b036a027bdec1f8468f (diff)
Merge
Diffstat (limited to 'src/executableslist.h')
-rw-r--r--src/executableslist.h32
1 files changed, 24 insertions, 8 deletions
diff --git a/src/executableslist.h b/src/executableslist.h
index 907b37aa..b8e2afe6 100644
--- a/src/executableslist.h
+++ b/src/executableslist.h
@@ -127,20 +127,36 @@ public:
void addExecutable(const Executable &executable);
/**
- * @brief add a new executable to the list
+ * @brief update an existing executable or add a new one to the list
+ *
+ * @param title name displayed in the UI
+ * @param executableName the actual filename to execute
+ * @param arguments arguments to pass to the executable
+ * @param closeMO if true, MO will be closed when the binary is started
+ **/
+ void updateOrAddExecutable(const QString &title,
+ const QString &executableName,
+ const QString &arguments,
+ const QString &workingDirectory,
+ MOBase::ExecutableInfo::CloseMOStyle closeMO,
+ const QString &steamAppID,
+ bool usesApplicationIcon);
+
+ /**
+ * @brief U[date executable list with configured settings
*
* @param title name displayed in the UI
* @param executableName the actual filename to execute
* @param arguments arguments to pass to the executable
* @param closeMO if true, MO will be closed when the binary is started
**/
- void addExecutable(const QString &title,
- const QString &executableName,
- const QString &arguments,
- const QString &workingDirectory,
- MOBase::ExecutableInfo::CloseMOStyle closeMO,
- const QString &steamAppID,
- Executable::Flags flags);
+ void configureExecutable(const QString &title,
+ const QString &executableName,
+ const QString &arguments,
+ const QString &workingDirectory,
+ MOBase::ExecutableInfo::CloseMOStyle closeMO,
+ const QString &steamAppID,
+ Executable::Flags flags);
/**
* @brief remove the executable with the specified file name. This needs to be an absolute file path