connect(m_ui, SIGNAL(error(int, int)),
this, SLOT(error(int, int)));
- 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)));
LoginDialog *loginDialog = qobject_cast<LoginDialog *>(dialog);
SearchDialog *searchDialog = qobject_cast<SearchDialog *>(dialog);
if(loginDialog) {
+ /// @todo Remove login related code
if(status != 0) {
buildWebView();
loginDialog->userInput(m_email, m_password);
urlParts.append(SITUARE_LOGIN_FAILURE);
urlParts.append(FACEBOOK_LOGIN_ENDING);
- emit saveUsername(m_email);
m_refresh = true;
m_webView->load(QUrl(urlParts.join(EMPTY)));
toggleProgressIndicator(true);
void routeToCursor();
/**
- * @brief Signal to save username to settings
- *
- * @param username Username
- */
- void saveUsername(const QString &username);
-
- /**
* @brief Signal for location search
*
* @param location QString location