From 4d269c2e1a625e6d50b7e6272b4f474a921c6bfa Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Tue, 29 Oct 2019 11:34:06 -0400 Subject: split to processrunner added IUserInterface::qtWidget() put back IUserInterface in OrganizerCore now that there's a way to get the widget --- src/spawn.h | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) (limited to 'src/spawn.h') 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 progress); - -WaitResults waitForProcesses( - const std::vector& handles, std::vector& exitCodes, - std::function progress); - } // namespace -- cgit v1.3.1