diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-12-02 15:29:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-02 15:29:23 -0500 |
| commit | d5a4077a4396058a9f79339dba0c29c4b742b60f (patch) | |
| tree | a8f32d4aa0ec39600c32788c9022ea4559d408b6 /src/processrunner.h | |
| parent | eabca00c35d7af3b6822bb7857ef1e073807ca0a (diff) | |
| parent | 3b78e436dbee043e4a3f81e5bfa09695c2a708c4 (diff) | |
Merge pull request #915 from isanae/lock-hook-shell
Lock, hook, shell
Diffstat (limited to 'src/processrunner.h')
| -rw-r--r-- | src/processrunner.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/processrunner.h b/src/processrunner.h index c61d6b70..d576216a 100644 --- a/src/processrunner.h +++ b/src/processrunner.h @@ -42,8 +42,9 @@ public: // the ui will be refreshed once the process has completed Refresh = 0x01, - // the process will be waited for even if locking is disabled - ForceWait = 0x02 + // the process will be waited for even if locking is disabled or the + // process is not hooked + ForceWait = 0x02, }; using WaitFlags = QFlags<WaitFlag>; @@ -67,10 +68,14 @@ public: ProcessRunner& setWaitForCompletion( WaitFlags flags=NoFlags, UILocker::Reasons reason=UILocker::LockUI); - // if the target is an executable file, runs that; for anything else, calls - // ShellExecute() on it + // - if the target is an executable file, runs it hooked + // - if the target is a file: + // - if forceHook is false, calls ShellExecute() on it + // - if forceHook is true, gets the executable associated with the file + // and runs that hooked by passing the file as an argument // - ProcessRunner& setFromFile(QWidget* parent, const QFileInfo& targetInfo); + ProcessRunner& setFromFile( + QWidget* parent, const QFileInfo& targetInfo, bool forceHook = false); ProcessRunner& setFromExecutable(const Executable& exe); ProcessRunner& setFromShortcut(const MOShortcut& shortcut); |
