File indexing completed on 2024-12-01 04:36:52

0001 /*
0002    SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QWidget>
0010 
0011 #include "libruqolawidgets_private_export.h"
0012 class QPushButton;
0013 class RocketChatAccount;
0014 class PasswordConfirmWidget;
0015 class LIBRUQOLAWIDGETS_TESTS_EXPORT MyAccount2e2ConfigureWidget : public QWidget
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit MyAccount2e2ConfigureWidget(RocketChatAccount *account, QWidget *parent = nullptr);
0020     ~MyAccount2e2ConfigureWidget() override;
0021 
0022     void save();
0023     void load();
0024 
0025 private:
0026     LIBRUQOLAWIDGETS_NO_EXPORT void slotReset2E2KeyDone(const QJsonObject &replyObject);
0027     LIBRUQOLAWIDGETS_NO_EXPORT void slotResetE2EKey();
0028     QPushButton *const mResetE2eKey;
0029     RocketChatAccount *const mRocketChatAccount;
0030     PasswordConfirmWidget *const mPasswordConfirmWidget;
0031 };