summaryrefslogtreecommitdiff
path: root/src/processrunner.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-31 05:33:53 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-06 07:45:00 -0500
commit7db5f938841933fb4846441448dafefc414ed5e7 (patch)
tree86dc2345f3b85f67f76262a041f59996fd1b7407 /src/processrunner.h
parent7ebd4debeef2cfdf268679e7b680021d3dc20687 (diff)
removed unused SpawnedProcess
lock widget now interprets closing the dialog as a forced unlock
Diffstat (limited to 'src/processrunner.h')
-rw-r--r--src/processrunner.h25
1 files changed, 3 insertions, 22 deletions
diff --git a/src/processrunner.h b/src/processrunner.h
index 41c0f12c..0fb3f59a 100644
--- a/src/processrunner.h
+++ b/src/processrunner.h
@@ -11,28 +11,9 @@ class IUserInterface;
class Executable;
class MOShortcut;
-class SpawnedProcess
-{
-public:
- SpawnedProcess(HANDLE handle, spawn::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;
- spawn::SpawnParameters m_parameters;
-
- void destroy();
-};
-
-
+// handles spawning a process and waiting for it, including setting up the lock
+// widget if required
+//
class ProcessRunner
{
public: