Clear user information only when logout initiated from logout button.
[situare] / src / facebookservice / facebookauthentication.h
index 28725bd..f6969a7 100644 (file)
@@ -63,16 +63,16 @@ public slots:
     /**
     * @brief Clears account information from settings
     *
-    * @param keepUsername keep = true, false otherwise
+    * @param clearUserInformation True if user information should be cleared
     */
-    void clearAccountInformation(bool keepUsername = false);
+    void clearAccountInformation(bool clearUserInformation = false);
 
     /**
       * @brief Is the user currently logged in
       *
       * @returns True if the user is logged in, otherwise false
       */
-    bool isLoggedIn();
+    bool isLoggedIn() const;
 
     /**
       * @brief Initiate login process
@@ -83,8 +83,10 @@ public slots:
 
     /**
       * @brief Log out
+      *
+      * @param clearUserInformation True if user information should be cleared
       */
-    void logOut();
+    void logOut(bool clearUserInformation = false);
 
 private:
     /**