connect(m_ui, SIGNAL(requestReverseGeo()), this, SLOT(requestAddress()));
connect(m_situareService, SIGNAL(reverseGeoReady(QString)), m_ui, SIGNAL(reverseGeoReady(QString)));
connect(m_ui, SIGNAL(statusUpdate(QString,bool)), this, SLOT(requestUpdateLocation(QString,bool)));
+ connect(m_situareService, SIGNAL(userDataChanged(User*,QList<User*>&)),
+ this, SLOT(userDataChanged(User*,QList<User*>&)));
+ connect(this, SIGNAL(userLocationReady(User*)), m_ui, SIGNAL(userLocationReady(User*)));
+ connect(this, SIGNAL(friendsLocationsReady(QList<User*>&)), m_ui, SIGNAL(friendsLocationsReady(QList<User*>&)));
start();
}
qDebug() << __PRETTY_FUNCTION__;
//code here
}
+
+void SituareEngine::userDataChanged(User *user, QList<User *> &friendList)
+{
+ qDebug() << __PRETTY_FUNCTION__;
+ emit userLocationReady(user);
+ qDebug() << friendList.at(0)->name();
+ emit friendsLocationsReady(friendList);
+}