mobile-widgets: make verifyCredentials() an internal function

Move verifyCredentials() from public slots to private, eliminating
the need to MOC and making the C++/QML interface on function less
complicated.

Signed-off-by: Jan Iversen <jan@casacondor.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
jan Iversen 2019-12-27 14:05:47 +01:00 committed by Dirk Hohndel
parent 096f9773f0
commit 3155b03917

View file

@ -168,7 +168,6 @@ public slots:
void appInitialized(); void appInitialized();
void applicationStateChanged(Qt::ApplicationState state); void applicationStateChanged(Qt::ApplicationState state);
void saveCloudCredentials(const QString &email, const QString &password, const QString &pin); void saveCloudCredentials(const QString &email, const QString &password, const QString &pin);
bool verifyCredentials(QString email, QString password, QString pin);
void tryRetrieveDataFromBackend(); void tryRetrieveDataFromBackend();
void handleError(QNetworkReply::NetworkError nError); void handleError(QNetworkReply::NetworkError nError);
void handleSslErrors(const QList<QSslError> &errors); void handleSslErrors(const QList<QSslError> &errors);
@ -267,6 +266,8 @@ private:
struct dive *m_copyPasteDive = NULL; struct dive *m_copyPasteDive = NULL;
struct dive_components what; struct dive_components what;
bool verifyCredentials(QString email, QString password, QString pin);
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS) #if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
QString appLogFileName; QString appLogFileName;
QFile appLogFile; QFile appLogFile;