Cleaning out old login code ongoing
[situare] / src / engine / engine.h
index 524bac4..145e3f2 100644 (file)
@@ -34,6 +34,7 @@
 class QTimer;
 
 class Application;
+class ContactManager;
 class FacebookAuthentication;
 class FacebookCredentials;
 class GeocodingService;
@@ -82,18 +83,14 @@ public slots:
     void error(const int context, const int error);
 
     /**
-    * @brief Slot to intercept signal when username is fetched from settings
-    *
-    */
-    void fetchUsernameFromSettings();
-
-    /**
     * @brief Slot to intercept signal when location search is issued
     *
     * @param location QString location
     */
     void locationSearch(QString location);
 
+    void login();
+
     /**
     * @brief Slot to intercept signal when Login/Logout action is pressed
     *
@@ -232,6 +229,8 @@ private slots:
     */
     void imageReady(User *user);
 
+    void loggedIn();
+
     /**
     * @brief Requests automatic update.
     *
@@ -257,6 +256,11 @@ private slots:
     void routeTo(const GeoCoordinate &endPointCoordinates);
 
     /**
+    * @brief Route to current cursor position
+    */
+    void routeToCursor();
+
+    /**
     * @brief Slot for setting auto centering state.
     *
     * Calls gps to send last known position
@@ -286,6 +290,14 @@ private slots:
     void setPowerSaving(bool enabled);
 
     /**
+    * @brief Shows contact dialog.
+    *
+    * Calls MainWindow showContactDialog with contact guid defined by contact's Facebook ID.
+    * @param facebookId contact's facebookId
+    */
+    void showContactDialog(const QString &facebookId);
+
+    /**
     * @brief Automatic update interval timer timeout.
     *
     * Requests update location if user has moved.
@@ -297,7 +309,7 @@ private slots:
     *
     * Does set power saving state.
     *
-    * @param mainWindowIsTopmost True if MainWindow is the topmost one
+    * @param isMainWindow True if MainWindow is the topmost one
     */
     void topmostWindowChanged(bool isMainWindow);
 
@@ -367,6 +379,7 @@ private:
 
     QTimer *m_automaticUpdateIntervalTimer; ///< Automatic update interval timer
 
+    ContactManager *m_contactManager;                ///< Instance of contact manager
     FacebookAuthentication *m_facebookAuthenticator; ///< Instance for facebook authenticator
     GeocodingService *m_geocodingService;            ///< Instance of the geocoding service
     GeoCoordinate m_lastUpdatedGPSPosition;          ///< Last updated GPS position