summary refs log tree commit diff
path: root/src/RegisterPage.h
diff options
context:
space:
mode:
authorCallum Brown <callum@calcuode.com>2021-06-03 14:52:41 +0100
committerCallum Brown <callum@calcuode.com>2021-06-03 14:52:41 +0100
commit78607a7e59b15edc6b203d7f9226bedfa5dfcf3b (patch)
treea258785dce4d13a9f1ed0c65bba9ab09c6221e28 /src/RegisterPage.h
parentGive registration server input its own error label (diff)
downloadnheko-78607a7e59b15edc6b203d7f9226bedfa5dfcf3b.tar.xz
Do a .well-known lookup during registration
Diffstat (limited to 'src/RegisterPage.h')
-rw-r--r--src/RegisterPage.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/RegisterPage.h b/src/RegisterPage.h
index 75d524c9..0e4a45d0 100644
--- a/src/RegisterPage.h
+++ b/src/RegisterPage.h
@@ -31,6 +31,10 @@ protected:
 signals:
         void backButtonClicked();
         void errorOccurred();
+
+        //! Used to trigger the corresponding slot outside of the main thread.
+        void versionErrorCb(const QString &err);
+
         void registering();
         void registerOk();
         void registerErrorCb(const QString &msg);
@@ -52,6 +56,7 @@ private:
         bool checkOneField(QLabel *label, const TextField *t_field, const QString &msg);
         bool checkFields();
         void showError(QLabel *label, const QString &msg);
+        void checkVersionAndRegister(const std::string &username, const std::string &password);
         QVBoxLayout *top_layout_;
 
         QHBoxLayout *back_layout_;