File indexing completed on 2024-12-08 04:34:27
0001 /* 0002 SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "libruqolawidgets_private_export.h" 0010 #include "users/registeruserjob.h" 0011 #include <QWidget> 0012 class QLineEdit; 0013 class KPasswordLineEdit; 0014 class QPushButton; 0015 class LIBRUQOLAWIDGETS_TESTS_EXPORT RegisterUserWidget : public QWidget 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit RegisterUserWidget(QWidget *parent = nullptr); 0020 ~RegisterUserWidget() override; 0021 0022 [[nodiscard]] RocketChatRestApi::RegisterUserJob::RegisterUserInfo registerUserInfo() const; 0023 0024 Q_SIGNALS: 0025 void updateOkButton(bool b); 0026 void registerNewAccount(); 0027 0028 private: 0029 LIBRUQOLAWIDGETS_NO_EXPORT void slotRegisterNewUser(); 0030 LIBRUQOLAWIDGETS_NO_EXPORT void slotUpdateRegisterButton(); 0031 QPushButton *const mRegisterButton; 0032 QLineEdit *const mUserName; 0033 QLineEdit *const mEmail; 0034 KPasswordLineEdit *const mPasswordLineEdit; 0035 KPasswordLineEdit *const mConfirmPasswordLineEdit; 0036 };