aboutsummaryrefslogtreecommitdiff
path: root/singleapplication.h
diff options
context:
space:
mode:
authorItay Grudev <itay+git2020@grudev.com>2020-03-03 01:22:54 +0000
committerItay Grudev <itay+89bf5c@grudev.com>2020-03-03 01:24:55 +0000
commit81cc2719beab0317b52764e8cf56afd8f56b0c89 (patch)
tree596bf4f020748b45b7bf1f262281bb477077ac79 /singleapplication.h
parentMerge pull request #94 from itay-grudev/qwertysam (diff)
downloadsingleapplication-81cc2719beab0317b52764e8cf56afd8f56b0c89.tar.xz
v3.1.0a Added primaryUser()
Closes #95
Diffstat (limited to 'singleapplication.h')
-rw-r--r--singleapplication.h6
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}