diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-05-26 06:18:11 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-05-26 06:18:11 -0400 |
| commit | 21185182c6551d053cccdcf087e0c219a3785cf8 (patch) | |
| tree | 6994b9a2436f23b2765c557f133387c8e6b82d5e /src/organizercore.h | |
| parent | 0439e18fe4cd2500c4ab6b3ff219c53153cf2175 (diff) | |
moved getFileExecutionContext() and its enum into OrganizerCore
Diffstat (limited to 'src/organizercore.h')
| -rw-r--r-- | src/organizercore.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/organizercore.h b/src/organizercore.h index 6f9defc2..9c4e3ae2 100644 --- a/src/organizercore.h +++ b/src/organizercore.h @@ -57,16 +57,6 @@ namespace MOBase { }
-enum class FileExecutionTypes
-{
- Executable = 1,
- Other = 2
-};
-
-bool GetFileExecutionContext(
- QWidget* parent, const QFileInfo &targetInfo,
- QFileInfo &binaryInfo, QString &arguments, FileExecutionTypes& type);
-
namespace shell
{
bool ExploreFile(const QFileInfo& info);
@@ -111,6 +101,12 @@ private: typedef boost::signals2::signal<void (const QString&)> SignalModInstalled;
public:
+ enum class FileExecutionTypes
+ {
+ Executable = 1,
+ Other = 2
+ };
+
static bool isNxmLink(const QString &link) { return link.startsWith("nxm://", Qt::CaseInsensitive); }
OrganizerCore(const QSettings &initSettings);
@@ -164,6 +160,10 @@ 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 executeFileVirtualized(QWidget* parent, const QFileInfo& targetInfo);
bool previewFileWithAlternatives(QWidget* parent, QString filename);
bool previewFile(QWidget* parent, const QString& originName, const QString& path);
|
