diff options
Diffstat (limited to 'src/helpers')
| -rw-r--r-- | src/helpers/AsyncDialogBox.cpp | 4 | ||||
| -rw-r--r-- | src/helpers/AsyncDialogBox.hpp | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/helpers/AsyncDialogBox.cpp b/src/helpers/AsyncDialogBox.cpp index 6257dcb0..b3688680 100644 --- a/src/helpers/AsyncDialogBox.cpp +++ b/src/helpers/AsyncDialogBox.cpp @@ -147,6 +147,10 @@ bool CAsyncDialogBox::isRunning() const { return m_readEventSource; } +pid_t CAsyncDialogBox::getPID() const { + return m_dialogPid; +} + SP<CAsyncDialogBox> CAsyncDialogBox::lockSelf() { return m_selfWeakReference.lock(); } diff --git a/src/helpers/AsyncDialogBox.hpp b/src/helpers/AsyncDialogBox.hpp index 5f94be0d..8db516ce 100644 --- a/src/helpers/AsyncDialogBox.hpp +++ b/src/helpers/AsyncDialogBox.hpp @@ -26,6 +26,7 @@ class CAsyncDialogBox { SP<CPromise<std::string>> open(); void kill(); bool isRunning() const; + pid_t getPID() const; SP<CAsyncDialogBox> lockSelf(); @@ -51,4 +52,4 @@ class CAsyncDialogBox { // WARNING: cyclic reference. This will be removed once the event source is removed to avoid dangling pointers SP<CAsyncDialogBox> m_selfReference; WP<CAsyncDialogBox> m_selfWeakReference; -};
\ No newline at end of file +}; |
