diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-10-24 04:27:22 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-11-06 07:44:53 -0500 |
| commit | 4e8dcc5157706e1478396179f5dc11305532b159 (patch) | |
| tree | c1594fb21b9f377562cd6be020f55626e361216f /src/spawn.h | |
| parent | b60f2aa786cf748e1839f4320604030863279032 (diff) | |
moved findJavaInstallation() and getFileExecutionContext() to spawn
fixed env::get() returning garbage after value
Diffstat (limited to 'src/spawn.h')
| -rw-r--r-- | src/spawn.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/spawn.h b/src/spawn.h index d2853cd5..866e1795 100644 --- a/src/spawn.h +++ b/src/spawn.h @@ -103,6 +103,25 @@ public: private:
};
+
+enum class FileExecutionTypes
+{
+ Executable = 1,
+ Other
+};
+
+struct FileExecutionContext
+{
+ QFileInfo binary;
+ QString arguments;
+ FileExecutionTypes type;
+};
+
+QString findJavaInstallation(const QString& jarFile);
+
+FileExecutionContext getFileExecutionContext(
+ QWidget* parent, const QFileInfo& target);
+
} // namespace
|
