diff options
author | Callum Brown <callum@calcuode.com> | 2021-06-03 14:52:41 +0100 |
---|---|---|
committer | Callum Brown <callum@calcuode.com> | 2021-06-03 14:52:41 +0100 |
commit | 78607a7e59b15edc6b203d7f9226bedfa5dfcf3b (patch) | |
tree | a258785dce4d13a9f1ed0c65bba9ab09c6221e28 /src/RegisterPage.h | |
parent | Give registration server input its own error label (diff) | |
download | nheko-78607a7e59b15edc6b203d7f9226bedfa5dfcf3b.tar.xz |
Do a .well-known lookup during registration
Diffstat (limited to 'src/RegisterPage.h')
-rw-r--r-- | src/RegisterPage.h | 5 |
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_; |