src/lib/src/models/site.cpp
/**
 * Called when the login try is finished.
 */
Called when the login try is finished.
Called when the login try is finished .
void Site::loginFinished(Login::Result result)
{
	const bool ok = result == Login::Result::Success;
	m_loggedIn = ok ? LoginStatus::LoggedIn : LoginStatus::LoggedOut;
	log(QStringLiteral("[%1] Login finished: %2.").arg(m_url, ok ? "success" : "failure"));
	emit loggedIn(this, ok ? LoginResult::Success : LoginResult::Error);
}
void Site :: loginFinished ( Login :: Result result ) { const bool ok = result == Login :: Result :: Success ; m_loggedIn = ok ? LoginStatus :: LoggedIn : LoginStatus :: LoggedOut ; log ( QStringLiteral ( " " ) . arg ( m_url , ok ? " " : " " ) ) ; emit loggedIn ( this , ok ? LoginResult :: Success : LoginResult :: Error ) ; }
Called when the login try is finished.
Called when the login try is finished .