Moved creating the FacebookLoginBrowser to FacebookAuthentication.
[situare] / src / ui / mainwindow.h
index 6225bab..14f11fa 100644 (file)
@@ -33,6 +33,7 @@
 
 #include "network/networkcookiejar.h"
 
+class QDialog;
 class QGraphicsScene;
 class QLabel;
 class QMessageBox;
@@ -40,7 +41,6 @@ class QNetworkReply;
 class QToolButton;
 class QWebView;
 
-class FacebookAuthentication;
 class FacebookLoginBrowser;
 class FriendListPanel;
 class FullScreenButton;
@@ -94,6 +94,8 @@ private:
  * MEMBER FUNCTIONS AND SLOTS
  ******************************************************************************/
 public:
+    void buildLoginDialog(FacebookLoginBrowser *browser);
+
     /**
      * @brief
      *
@@ -151,10 +153,6 @@ public:
     const QString username();
 
 public slots:
-    void buildFacebookLoginBrowser();
-
-    void destroyFacebookLoginBrowser();
-
     /**
      * @brief Builds information box with message.
      *
@@ -163,6 +161,8 @@ public slots:
      */
     void buildInformationBox(const QString &message, bool modal=false);
 
+    void destroyLoginDialog();
+
     /**
      * @brief Slot for failed login
      */
@@ -500,8 +500,6 @@ signals:
      */
     void loginActionPressed();
 
-    void loginBrowserCreated(FacebookLoginBrowser *);
-
     /**
      * @brief MapView has been resized
      *
@@ -651,6 +649,8 @@ private:
     QAction *m_loginAct;                    ///< Action to Login/Logout
     QAction *m_toSettingsAct;               ///< Action to trigger switch to settings dialog
 
+    QDialog *m_loginDialog;                 ///< Login dialog
+
     QLabel *m_crosshair;                    ///< Label for center point crosshair
     QLabel *m_osmLicense;                   ///< Label for Open Street Map license
 
@@ -665,7 +665,6 @@ private:
     QString m_email;                        ///< Placeholder for email
     QString m_password;                     ///< Placeholder for password
 
-    FacebookLoginBrowser *m_facebookLoginBrowser;
     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