void LoginManager::tryLogin() { disconnect(this, SIGNAL(loginSuccess()), this, SLOT(tryLogin())); connect(this, SIGNAL(getUserSuccess()), this, SLOT(onTryLoginSuccess())); connect(this, SIGNAL(getUserError(QString)), this, SLOT(onTryLoginError(QString))); getUser(); }
void LoginManager::onTryLoginError(const QString& error) { Q_UNUSED(error); disconnect(this, SIGNAL(getUserSuccess()), this, SLOT(onTryLoginSuccess())); disconnect(this, SIGNAL(getUserError(QString)), this, SLOT(onTryLoginError(QString))); connect(this, SIGNAL(loginSuccess()), this, SLOT(tryLogin())); logout(); mscore->showLoginDialog(); }
void LoginManager::onTryLoginError(const QString& error) { Q_UNUSED(error); disconnect(this, SIGNAL(getUserSuccess()), this, SLOT(onTryLoginSuccess())); disconnect(this, SIGNAL(getUserError(QString)), this, SLOT(onTryLoginError(QString))); connect(this, SIGNAL(loginSuccess()), this, SLOT(tryLogin())); logout(); #ifdef USE_WEBENGINE loginInteractive(); #else mscore->showLoginDialog(); #endif }
void LoginManager::onTryLoginSuccess() { disconnect(this, SIGNAL(getUserSuccess()), this, SLOT(onTryLoginSuccess())); disconnect(this, SIGNAL(getUserError(QString)), this, SLOT(onTryLoginError(QString))); emit tryLoginSuccess(); }