m_loggedIn = true;
m_ui->loggedIn(m_loggedIn);
- if(!m_ui->username().isEmpty())
- m_facebookAuthenticator->saveUsername(m_ui->username());
-
m_ui->show();
m_situareService->fetchLocations(); // request user locations
}
{
qDebug() << __PRETTY_FUNCTION__;
+ connect(m_ui, SIGNAL(fetchUsernameFromSettings()),
+ this, SLOT(fetchUsernameFromSettings()));
+
connect(m_ui, SIGNAL(loginActionPressed()),
this, SLOT(loginActionPressed()));
+ connect(m_ui, SIGNAL(saveUsername(QString)),
+ m_facebookAuthenticator, SLOT(saveUsername(QString)));
+
connect(m_ui, SIGNAL(updateCredentials(QUrl)),
m_facebookAuthenticator, SLOT(updateCredentials(QUrl)));
- connect(m_ui, SIGNAL(fetchUsernameFromSettings()),
- this, SLOT(fetchUsernameFromSettings()));
-
// signals from map view
connect(m_ui, SIGNAL(mapViewScrolled(QPoint)),
m_mapEngine, SLOT(setLocation(QPoint)));
void reverseGeoReady(const QString &address);
/**
+ * @brief Signal to save username to settings
+ *
+ * @param username Username
+ */
+ void saveUsername(const QString &username);
+
+ /**
* @brief Signal for requestLocationUpdate from SituareEngine
*
* @param status Status message