Added SituareEngine::refreshUserData slot.
authorJussi Laitinen <jupe@l3l7588.ixonos.local>
Mon, 3 May 2010 12:32:01 +0000 (15:32 +0300)
committerJussi Laitinen <jupe@l3l7588.ixonos.local>
Mon, 3 May 2010 12:32:01 +0000 (15:32 +0300)
src/engine/engine.cpp
src/engine/engine.h

index 466e7b3..28eea46 100644 (file)
@@ -49,7 +49,7 @@ SituareEngine::SituareEngine(QMainWindow *parent)
        connect(m_situareService, SIGNAL(error(QString)), this, SLOT(error(QString)));
     connect(m_situareService, SIGNAL(updateWasSuccessful()), this, SLOT(updateWasSuccessful()));
 
-    connect(m_ui, SIGNAL(refreshUserData()), this, SLOT(updateFriendsList()));
+    connect(m_ui, SIGNAL(refreshUserData()), this, SLOT(refreshUserData()));
 
     m_facebookAuthenticator->start();
 }
@@ -99,10 +99,13 @@ void SituareEngine::updateWasSuccessful()
     m_situareService->fetchLocations();
 }
 
-void SituareEngine::updateFriendsList()
+void SituareEngine::refreshUserData()
 {
     qDebug() << __PRETTY_FUNCTION__;
-    //code here
+
+    m_ui->toggleProgressIndicator(true);
+
+    m_situareService->fetchLocations();
 }
 
 void SituareEngine::userDataChanged(User *user, QList<User *> &friendsList)
index c7b3941..d1d2103 100644 (file)
@@ -77,7 +77,7 @@ public slots:
     */
     void requestAddress();
 
-       /**
+    /**
     * @brief Calls updateLocation from SituareService to send the location update to
     *        Situare server.
     *
@@ -87,11 +87,11 @@ public slots:
     void requestUpdateLocation(const QString &status, bool publish);
 
     /**
-    * @brief Slot to initiate update friends list function
+    * @brief Slot to refresh user data
     */
-    void updateFriendsList();
+    void refreshUserData();
 
-       /**
+    /**
     * @brief Slot to intercept signal from successful location update
     *
     */