From 78607a7e59b15edc6b203d7f9226bedfa5dfcf3b Mon Sep 17 00:00:00 2001 From: Callum Brown Date: Thu, 3 Jun 2021 14:52:41 +0100 Subject: Do a .well-known lookup during registration --- src/RegisterPage.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/RegisterPage.h') 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_; -- cgit 1.4.1