SituareEngine::SituareEngine(QMainWindow *parent)
: QObject(parent)
{
+ qDebug() << __PRETTY_FUNCTION__;
m_ui = new MainWindow;
- m_networkManager = new QNetworkAccessManager;
- m_situareService = new SituareService(this, m_networkManager);
+ m_situareService = new SituareService(this);
m_facebookAuthenticator = new FacebookAuthentication();
this, SLOT(loginOk()));
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(reverseGeoReady(QString)),
+ m_ui, SIGNAL(reverseGeoReady(QString)));
+ connect(m_ui, SIGNAL(statusUpdate(QString,bool)),
+ this, SLOT(requestUpdateLocation(QString,bool)));
m_facebookAuthenticator->start();
}
m_situareService->reverseGeo(coordinates);
}
-void SituareEngine::requestUpdateLocation(const QString &status, const bool &publish)
+void SituareEngine::requestUpdateLocation(const QString &status, bool publish)
{
qDebug() << __PRETTY_FUNCTION__;
QPointF coordinates(65, 25.5); // this will be get from somewhere, map etc...