aboutsummaryrefslogtreecommitdiff
path: root/singleapplication.h
diff options
context:
space:
mode:
authorLeander Schulten <Leander.Schulten@rwth-aachen.de>2020-03-27 08:00:14 +0100
committerLeander Schulten <Leander.Schulten@rwth-aachen.de>2020-03-27 08:00:14 +0100
commit5fff2202b513f00e553e1ec955909db5815a189f (patch)
treee13f97f297a99b3609def98073fa3a65bdd8d252 /singleapplication.h
parentThe codec for string from qgetenv and pw->pw_name is not necessarily utf8. So... (diff)
downloadsingleapplication-5fff2202b513f00e553e1ec955909db5815a189f.tar.xz
Add SingleApplication::currentUser()
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 f91e3a2..14c9615 100644
--- a/singleapplication.h
+++ b/singleapplication.h
@@ -119,6 +119,12 @@ public:
QString primaryUser();
/**
+ * @brief Returns the username of the current user
+ * @returns {QString}
+ */
+ QString currentUser();
+
+ /**
* @brief Sends a message to the primary instance. Returns true on success.
* @param {int} timeout - Timeout for connecting
* @returns {bool}