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 <QDialog> 0012 0013 class RegisterUserWidget; 0014 class LIBRUQOLAWIDGETS_TESTS_EXPORT RegisterUserDialog : public QDialog 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit RegisterUserDialog(QWidget *parent = nullptr); 0019 ~RegisterUserDialog() override; 0020 [[nodiscard]] RocketChatRestApi::RegisterUserJob::RegisterUserInfo registerUserInfo() const; 0021 0022 Q_SIGNALS: 0023 void registerNewAccount(); 0024 0025 private: 0026 LIBRUQOLAWIDGETS_NO_EXPORT void readConfig(); 0027 LIBRUQOLAWIDGETS_NO_EXPORT void writeConfig(); 0028 RegisterUserWidget *const mRegisterUserWidget; 0029 };