diff options
author | Itay Grudev <itay+git2020@grudev.com> | 2020-03-03 01:22:54 +0000 |
---|---|---|
committer | Itay Grudev <itay+89bf5c@grudev.com> | 2020-03-03 01:24:55 +0000 |
commit | 81cc2719beab0317b52764e8cf56afd8f56b0c89 (patch) | |
tree | 596bf4f020748b45b7bf1f262281bb477077ac79 /singleapplication.h | |
parent | Merge pull request #94 from itay-grudev/qwertysam (diff) | |
download | singleapplication-81cc2719beab0317b52764e8cf56afd8f56b0c89.tar.xz |
v3.1.0a Added primaryUser()
Closes #95
Diffstat (limited to 'singleapplication.h')
-rw-r--r-- | singleapplication.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/singleapplication.h b/singleapplication.h index cb50597..f91e3a2 100644 --- a/singleapplication.h +++ b/singleapplication.h @@ -113,6 +113,12 @@ public: qint64 primaryPid(); /** + * @brief Returns the username of the user running the primary instance + * @returns {QString} + */ + QString primaryUser(); + + /** * @brief Sends a message to the primary instance. Returns true on success. * @param {int} timeout - Timeout for connecting * @returns {bool} |