summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-27 14:05:47 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-28 08:34:56 -0800
commit3155b039175436f3d32f5c1719a56f99dadf2f5f (patch)
tree6ed60ef3b8bd924b63cd303c0c8d6562eda42df1 /mobile-widgets/qmlmanager.h
parent096f9773f0812d9713292ac2e2e1d4dc9f88ecde (diff)
downloadsubsurface-3155b039175436f3d32f5c1719a56f99dadf2f5f.tar.gz
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>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r--mobile-widgets/qmlmanager.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h
index 12a8496e8..281d20778 100644
--- a/mobile-widgets/qmlmanager.h
+++ b/mobile-widgets/qmlmanager.h
@@ -168,7 +168,6 @@ public slots:
void appInitialized();
void applicationStateChanged(Qt::ApplicationState state);
void saveCloudCredentials(const QString &email, const QString &password, const QString &pin);
- bool verifyCredentials(QString email, QString password, QString pin);
void tryRetrieveDataFromBackend();
void handleError(QNetworkReply::NetworkError nError);
void handleSslErrors(const QList<QSslError> &errors);
@@ -267,6 +266,8 @@ private:
struct dive *m_copyPasteDive = NULL;
struct dive_components what;
+ bool verifyCredentials(QString email, QString password, QString pin);
+
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
QString appLogFileName;
QFile appLogFile;