added base class for own and friend locations. added new class for
[situare] / src / ui / mapviewscreen.cpp
index b2e6b92..89e92b4 100644 (file)
@@ -78,3 +78,15 @@ void MapViewScreen::searchMap()
 
     mapEngine->setViewLocation(QPointF(lon, lat));
 }
+
+void MapViewScreen::userLocationReady(User *user)
+{
+    qDebug() << __PRETTY_FUNCTION__;
+    mapEngine->receiveOwnLocation(user);
+}
+
+void MapViewScreen::friendsLocationsReady(QList<User *> &friendsList)
+{
+    qDebug() << __PRETTY_FUNCTION__;
+    mapEngine->receiveFriendLocations(friendsList);
+}