Fixed GPS/manual states when logging in
[situare] / src / ui / mainwindow.h
index 9e37b6a..c8b1231 100644 (file)
@@ -36,7 +36,6 @@ class QWebView;
 
 class FacebookAuthentication;
 class FriendListPanel;
-class LoginDialog;
 class MapScene;
 class MapView;
 class SituareService;
@@ -130,13 +129,6 @@ public:
     const QString username();
 
 public slots:
-    /**
-    * @brief Slot to intercept signal when user has pressed connect button from loginDialog
-    *
-    * @param email E-mail
-    * @param password Password
-    */
-    void loginDialogDone(const QString &email, const QString &password);
 
     /**
     * @brief Slot to intercept signal when login has failed (loginFailure signal)
@@ -163,13 +155,6 @@ public slots:
     void setUsername(const QString &username);
 
     /**
-    * @brief
-    *
-    * @param show
-    */
-    void showPanels(bool show);
-
-    /**
     * @brief Public slot to intercept signal when old cerdentials are invalid or credentials
     *        doesn't exist yet
     *
@@ -184,6 +169,13 @@ public slots:
     */
     void toggleProgressIndicator(bool state);
 
+    /**
+    * @brief Shows / hides Situare related UI items
+    *
+    * @param show
+    */
+    void updateItemVisibility(bool show);
+
 private:
     /**
       * @brief Build friend list panel and connect slots
@@ -191,12 +183,6 @@ private:
     void buildFriendListPanel();
 
     /**
-    * @brief Build login dialog and connect slots
-    *
-    */
-    void buildLoginDialog();
-
-    /**
       * @brief Build manual location setting cross hair and connect slots
       */
     void buildManualLocationCrosshair();
@@ -487,7 +473,6 @@ private:
     QWebView *m_webView;                    ///< Shows facebook login page
 
     FriendListPanel *m_friendsListPanel;    ///< Instance of friends list panel
-    LoginDialog *m_loginDialog;             ///< Login dialog
     MapView *m_mapView;                     ///< Instance of the map view
     NetworkCookieJar *m_cookieJar;          ///< Placeholder for QNetworkCookies
     PanelSideBar *m_userPanelSidebar;       ///< User panel side bar