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(error(QString)), this, SLOT(error(QString)));
+ connect(m_situareService, SIGNAL(updateWasSuccessful()), this, SLOT(updateWasSuccessful()));
start();
}
{
qDebug() << __PRETTY_FUNCTION__;
- QPointF coordinates(65, 25.5); // this will be get from somewhere, map etc...
+ QPointF coordinates(65.0109, 25.5092); // this will be get from somewhere, map etc...
m_situareService->reverseGeo(coordinates);
}
{
qDebug() << __PRETTY_FUNCTION__;
- QPointF coordinates(65, 25.5); // this will be get from somewhere, map etc...
+ QPointF coordinates(65.0109, 25.5092); // this will be get from somewhere, map etc...
m_situareService->updateLocation(coordinates, status, publish);
}
qDebug() << __PRETTY_FUNCTION__;
//code here
}
+
+void SituareEngine::updateWasSuccessful()
+{
+ qDebug() << __PRETTY_FUNCTION__;
+
+ m_situareService->fetchLocations();
+}