diff options
Diffstat (limited to 'src/organizercore.h')
| -rw-r--r-- | src/organizercore.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/organizercore.h b/src/organizercore.h index bfb72529..94cfa5ae 100644 --- a/src/organizercore.h +++ b/src/organizercore.h @@ -56,6 +56,13 @@ namespace MOBase { class IPluginGame;
}
+enum class FileExecutionTypes
+{
+ executable = 1,
+ other = 2
+};
+
+
class OrganizerCore : public QObject, public MOBase::IPluginDiagnose
{
@@ -140,6 +147,12 @@ public: void doAfterLogin(const std::function<void()> &function) { m_PostLoginTasks.append(function); }
+ static bool getFileExecutionContext(
+ QWidget* parent, const QFileInfo &targetInfo,
+ QFileInfo &binaryInfo, QString &arguments, FileExecutionTypes& type);
+
+ bool executeFile(QWidget* parent, const QFileInfo& targetInfo);
+
void spawnBinary(const QFileInfo &binary, const QString &arguments = "",
const QDir ¤tDirectory = QDir(),
const QString &steamAppID = "",
|
