Changes to logout prosess and login state storing, logout bug fix
[situare] / src / ui / mainwindow.h
index f9a1a13..f7e508b 100644 (file)
@@ -108,13 +108,6 @@ public:
     void loggedIn(bool logged);
 
     /**
-     * @brief Gets the login state (logged in/logged out)
-     *
-     * @return bool Login state
-     */
-    bool loginState();
-
-    /**
      * @brief Reads automatic location update settings.
      */
     void readAutomaticLocationUpdateSettings();
@@ -149,13 +142,6 @@ public:
      */
     void showEnableAutomaticUpdateLocationDialog(const QString &text);
 
-    /**
-     * @brief Gets the username from member variable for saving purposes
-     *
-     * @return QString Username
-     */
-    const QString username();
-
 public slots:
     /**
      * @brief Builds information box with message.
@@ -171,11 +157,6 @@ public slots:
     void destroyLoginDialog();
 
     /**
-     * @brief Slot for failed login
-     */
-    void loginFailed();
-
-    /**
      * @brief Public slot, which open settings dialog
      */
     void openSettingsDialog();
@@ -196,12 +177,6 @@ public slots:
     void showContactDialog(const QString &guid);
 
     /**
-     * @brief Public slot to intercept signal when old cerdentials are invalid or credentials
-     *        doesn't exist yet
-     */
-    void startLoginProcess();
-
-    /**
      * @brief Toggle progress indicator.
      *
      * @param state true if progress indicator should be shown, false otherwise
@@ -209,10 +184,11 @@ public slots:
     void toggleProgressIndicator(bool state);
 
     /**
-     * @brief Shows / hides Situare related UI items
+     * @brief Shows / hides Situare related UI items based on login state
      *
+     * @param loggedIn Is the user currently logged in
      */
-    void updateItemVisibility();
+    void updateItemVisibility(bool loggedIn);
 
 private:
     /**
@@ -402,12 +378,6 @@ signals:
     void autoCenteringTriggered(bool enabled);
 
     /**
-     * @brief Signal that indicates when user has cancelled login process
-     *
-     */
-    void cancelLoginProcess();
-
-    /**
      * @brief Signal for centering to coordinates.
      *
      * @param coordinates geo coordinates to center to.
@@ -453,12 +423,6 @@ signals:
     void error(const int context, const int error);
 
     /**
-     * @brief Signal for requesting username from settings
-     *
-     */
-    void fetchUsernameFromSettings();
-
-    /**
      * @brief Signals when friend's profile image is ready
      *
      * @param user Friend
@@ -669,9 +633,6 @@ private:
 
     QMessageBox *m_automaticUpdateLocationDialog;   ///< Automatic update location dialog
 
-    QString m_email;                        ///< Placeholder for email
-    QString m_password;                     ///< Placeholder for password
-
     FriendListPanel *m_friendsListPanel;    ///< Instance of friends list panel
     FullScreenButton *m_fullScreenButton;   ///< Instance of the fullscreen toggle button
     IndicatorButtonPanel *m_indicatorButtonPanel;   ///< Instance of direction indicator button