connect(m_situareService, SIGNAL(userDataChanged(User*,QList<User*>&)), m_ui,
SIGNAL(userDataChanged(User*,QList<User*>&)));
++ connect(m_situareService, SIGNAL(userDataChanged(User*,QList<User*>&)), m_ui,
++ SLOT(userDataReceived(User*,QList<User*>&)));
++
connect(m_ui, SIGNAL(refreshUserData()), this, SLOT(refreshUserData()));
start();
{
qDebug() << __PRETTY_FUNCTION__;
++ m_ui->toggleProgressIndicator(true);
++
m_situareService->fetchLocations();
}
++
++void SituareEngine::userDataReceived(User *user,QList<User*> &friends)
++{
++ qDebug() << __PRETTY_FUNCTION__;
++
++ m_ui->toggleProgressIndicator(false);
++}
void refreshUserData();
++ void userDataReceived(User *user,QList<User*> &friends);
++
/*******************************************************************************
* SIGNALS
******************************************************************************/
* MEMBER FUNCTIONS AND SLOTS
******************************************************************************/
public slots:
+ /**
- * @brief Slot to open Location update dialog
- */
- void updateMessage();
-
- /**
+ * @brief Slot for new user and friend data.
+ *
+ * @param user User object
+ * @param friends list of User objects
+ */
void userDataChanged(User* user,QList<User*>& friends);
signals:
+ /**
+ * @brief Signal for progress bar indicator toggling.
+ *
+ * @param state true if progress bar should be shown, false otherwise
+ */
void toggleProgressIndicator(bool state);
+ /**
+ * @brief Forwarding signal from InfoTab to parent to open update dialog
+ */
+ void launchUpdateDialog();
+ /**
+ * @brief Forwarding signal from InfoTab to parent to update friends list data
+ */
+ void updateFriendsData();
/*******************************************************************************
* DATA MEMBERS
*/
void toMapView();
++ void toggleProgressIndicator(bool state);
++
private:
/**
* @brief Private method to create the Menu items
*/
void openLocationUpdateDialog();
/*******************************************************************************
* SIGNALS
******************************************************************************/
--signals:
++ signals:
/**
* @brief Signal for requesting reverseGeo from SituareEngine
*
*/
void statusUpdate(const QString &status, const bool &publish);
-- void userDataChanged(User*,QList<User*>&);
--
void refreshUserData();
++ void userDataChanged(User*,QList<User*>&);
++
/*******************************************************************************
* DATA MEMBERS
******************************************************************************/