qDebug() << __PRETTY_FUNCTION__;
if (m_facebookAuthenticator->isLoggedIn())
- m_facebookAuthenticator->logOut();
+ m_facebookAuthenticator->logOut(true);
else if (m_networkAccessManager->isConnected())
m_facebookAuthenticator->login();
else
qDebug() << __PRETTY_FUNCTION__;
m_ui->loggedIn(false);
-
- // signal to clear locationUpdateDialog's data
- connect(this, SIGNAL(clearUpdateLocationDialogData()),
- m_ui, SIGNAL(clearUpdateLocationDialogData()));
- emit clearUpdateLocationDialogData();
-
m_situareService->updateSession(""); // empty session string means logged out
-
m_automaticUpdateFirstStart = true;
}
connect(m_facebookAuthenticator, SIGNAL(error(int, int)),
this, SLOT(error(int, int)));
- connect(m_facebookAuthenticator, SIGNAL(loggedIn(QString)),
+ connect(m_facebookAuthenticator, SIGNAL(loggedIn(QString, bool)),
m_situareService, SLOT(updateSession(QString)));
- connect(m_facebookAuthenticator, SIGNAL(loggedIn(QString)),
+ connect(m_facebookAuthenticator, SIGNAL(loggedIn(QString, bool)),
this, SLOT(onLogin()));
connect(m_facebookAuthenticator, SIGNAL(loggedOut()), this, SLOT(onLogout()));
connect(m_ui, SIGNAL(requestReverseGeo()),
this, SLOT(requestAddress()));
- connect(m_ui, SIGNAL(statusUpdate(QString,bool)),
+ connect(m_ui, SIGNAL(locationUpdate(QString,bool)),
this, SLOT(requestUpdateLocation(QString,bool)));
connect(m_ui, SIGNAL(enableAutomaticLocationUpdate(bool, int)),
this, SLOT(updateWasSuccessful()));
connect(m_situareService, SIGNAL(updateWasSuccessful()),
- m_ui, SIGNAL(clearUpdateLocationDialogData()));
+ m_ui, SIGNAL(updateWasSuccessful()));
}
void SituareEngine::startAutomaticUpdate()