diff options
author | Itay Grudev <itay+github.com@grudev.com> | 2020-03-03 01:29:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-03 01:29:50 +0000 |
commit | 4abe20afbfa5695ac7a9bce1298943b645aeffe9 (patch) | |
tree | 596bf4f020748b45b7bf1f262281bb477077ac79 /singleapplication.h | |
parent | Merge pull request #94 from itay-grudev/qwertysam (diff) | |
parent | v3.1.0a Added primaryUser() (diff) | |
download | singleapplication-4abe20afbfa5695ac7a9bce1298943b645aeffe9.tar.xz |
Merge pull request #96 from itay-grudev/primary_userv3.1.0a
v3.1.0a Added primaryUser()
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} |