Commit ee7b88de authored by Nicolas Fella's avatar Nicolas Fella

[nextcloud] Remove unused noError property

parent 9d67a54a
......@@ -95,8 +95,6 @@ void NextcloudController::fileChecked(KJob* job)
// When url entered by user is wrong
void NextcloudController::wrongUrlDetected()
{
m_noError = false;
Q_EMIT noErrorChanged();
m_errorMessage = i18n("Unable to connect to Nextcloud at the given server URL. Please check the server URL.");
setWorking(false);
Q_EMIT errorMessageChanged();
......@@ -164,8 +162,6 @@ void NextcloudController::setWorking(bool start)
void NextcloudController::serverCheckResult()
{
m_noError = true;
Q_EMIT noErrorChanged();
m_errorMessage.clear();
m_json.clear();
......@@ -209,8 +205,6 @@ void NextcloudController::authCheckResult(KJob *job)
Q_EMIT errorMessageChanged();
m_noError = !kJob->isErrorPage();
Q_EMIT noErrorChanged();
setWorking(false);
}
......@@ -219,11 +213,6 @@ bool NextcloudController::isWorking()
return m_isWorking;
}
bool NextcloudController::noError()
{
return m_noError;
}
QString NextcloudController::errorMessage() const
{
return m_errorMessage;
......
......@@ -26,7 +26,6 @@ class NextcloudController : public QObject
{
Q_OBJECT
Q_PROPERTY(bool isWorking READ isWorking NOTIFY isWorkingChanged)
Q_PROPERTY(bool noError READ noError NOTIFY noErrorChanged)
Q_PROPERTY(bool isLoginComplete READ isLoginComplete NOTIFY isLoginCompleteChanged)
Q_PROPERTY(QString errorMessage READ errorMessage NOTIFY errorMessageChanged)
......@@ -37,13 +36,11 @@ public:
Q_INVOKABLE void checkServer(const QString &server);
Q_INVOKABLE void finish(bool contactsEnabled);
bool isWorking();
bool noError();
bool isLoginComplete();
QString errorMessage() const;
Q_SIGNALS:
void isWorkingChanged();
void noErrorChanged();
void errorMessageChanged();
void isLoginCompleteChanged();
void wizardFinished(const QString &username, const QString &password, const QVariantMap &data);
......@@ -71,7 +68,6 @@ private:
QWebEngineView * m_view = new QWebEngineView;
QStringList m_disabledServices;
bool m_isWorking = false;
bool m_noError = false;
bool m_isLoginComplete = false;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment