summaryrefslogtreecommitdiff
path: root/src/organizercore.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-05-25 02:12:11 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-05-25 02:12:11 -0400
commit9a014db4b3a64dc93450dff8afe980db3694c595 (patch)
tree587ce82229f3f7c5ce6ab61ec4d35946dbc33afb /src/organizercore.h
parentf5330efd0d2692eb14738d8ccbe4e269ce165b46 (diff)
moved GetFileExecutionContext() out of OrganizerCore, no reason for it to be there
added ExploreFile(), changed all mentions of ShellExecute() in MainWindow to use it
Diffstat (limited to 'src/organizercore.h')
-rw-r--r--src/organizercore.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/organizercore.h b/src/organizercore.h
index 94cfa5ae..103443eb 100644
--- a/src/organizercore.h
+++ b/src/organizercore.h
@@ -56,12 +56,21 @@ namespace MOBase {
class IPluginGame;
}
+
enum class FileExecutionTypes
{
executable = 1,
other = 2
};
+bool GetFileExecutionContext(
+ QWidget* parent, const QFileInfo &targetInfo,
+ QFileInfo &binaryInfo, QString &arguments, FileExecutionTypes& type);
+
+bool ExploreFile(const QString& path);
+bool ExploreFile(const QFileInfo& info);
+bool ExploreFile(const QDir& dir);
+
class OrganizerCore : public QObject, public MOBase::IPluginDiagnose
{
@@ -147,10 +156,6 @@ 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 = "",