From 5fff2202b513f00e553e1ec955909db5815a189f Mon Sep 17 00:00:00 2001 From: Leander Schulten Date: Fri, 27 Mar 2020 08:00:14 +0100 Subject: Add SingleApplication::currentUser() --- singleapplication.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'singleapplication.h') diff --git a/singleapplication.h b/singleapplication.h index f91e3a2..14c9615 100644 --- a/singleapplication.h +++ b/singleapplication.h @@ -118,6 +118,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 -- cgit v1.2.1