File indexing completed on 2024-05-12 16:27:25

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 "ownuser/ownuser.h"
0011 #include <QWidget>
0012 class QLineEdit;
0013 class QPushButton;
0014 class PasswordConfirmWidget;
0015 class MyAccountProfileConfigureAvatarWidget;
0016 class RocketChatAccount;
0017 class QLabel;
0018 class LIBRUQOLAWIDGETS_TESTS_EXPORT MyAccountProfileConfigureWidget : public QWidget
0019 {
0020     Q_OBJECT
0021 public:
0022     explicit MyAccountProfileConfigureWidget(RocketChatAccount *account, QWidget *parent = nullptr);
0023     ~MyAccountProfileConfigureWidget() override;
0024     void load();
0025     void save();
0026     void initialize();
0027 
0028 private:
0029     LIBRUQOLAWIDGETS_NO_EXPORT void slotLogoutFromOtherLocation();
0030     LIBRUQOLAWIDGETS_NO_EXPORT void slotDeleteMyAccount();
0031     QLineEdit *const mEmail;
0032     QLabel *const mEmailInfo;
0033     QLineEdit *const mName;
0034     QLineEdit *const mUserName;
0035     QLineEdit *const mNickName;
0036     QLineEdit *const mStatusText;
0037     QPushButton *const mDeleteMyAccount;
0038     QPushButton *const mLogoutFromOtherLocation;
0039     PasswordConfirmWidget *const mPasswordConfirmWidget;
0040     MyAccountProfileConfigureAvatarWidget *const mConfigureAvatarWidget;
0041     RocketChatAccount *const mRocketChatAccount;
0042     OwnUser mOwnUser;
0043 };