summaryrefslogtreecommitdiff
path: root/src/spawn.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-29 11:34:06 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-06 07:44:55 -0500
commit4d269c2e1a625e6d50b7e6272b4f474a921c6bfa (patch)
treecd43db6b19152e98dd219de3350f8dbe6911662d /src/spawn.h
parent8c72077febaea485200adcf1e9f615902e930def (diff)
split to processrunner
added IUserInterface::qtWidget() put back IUserInterface in OrganizerCore now that there's a way to get the widget
Diffstat (limited to 'src/spawn.h')
-rw-r--r--src/spawn.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/spawn.h b/src/spawn.h
index ad50bde6..0464ffd6 100644
--- a/src/spawn.h
+++ b/src/spawn.h
@@ -73,39 +73,6 @@ bool checkBlacklist(
HANDLE startBinary(QWidget* parent, const SpawnParameters& sp);
-class SpawnedProcess
-{
-public:
- SpawnedProcess(HANDLE handle, SpawnParameters sp);
-
- SpawnedProcess(const SpawnedProcess&) = delete;
- SpawnedProcess& operator=(const SpawnedProcess&) = delete;
- SpawnedProcess(SpawnedProcess&& other);
- SpawnedProcess& operator=(SpawnedProcess&& other);
- ~SpawnedProcess();
-
- HANDLE releaseHandle();
- void wait();
-
-private:
- HANDLE m_handle;
- SpawnParameters m_parameters;
-
- void destroy();
-};
-
-
-class Spawner
-{
-public:
- SpawnedProcess spawn(
- QWidget* parent, const MOBase::IPluginGame* game,
- SpawnParameters sp, Settings& settings);
-
-private:
-};
-
-
enum class FileExecutionTypes
{
Executable = 1,
@@ -124,21 +91,6 @@ QString findJavaInstallation(const QString& jarFile);
FileExecutionContext getFileExecutionContext(
QWidget* parent, const QFileInfo& target);
-
-enum class WaitResults
-{
- Completed = 1,
- Error,
- Cancelled
-};
-
-WaitResults waitForProcess(
- HANDLE handle, DWORD* exitCode, std::function<bool ()> progress);
-
-WaitResults waitForProcesses(
- const std::vector<HANDLE>& handles, std::vector<DWORD>& exitCodes,
- std::function<bool ()> progress);
-
} // namespace