File indexing completed on 2024-05-19 05:04:01
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 <QDialog> 0011 class QPushButton; 0012 class AskTwoAuthenticationPasswordWidget; 0013 class RocketChatAccount; 0014 class LIBRUQOLAWIDGETS_TESTS_EXPORT AskTwoAuthenticationPasswordDialog : public QDialog 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit AskTwoAuthenticationPasswordDialog(QWidget *parent = nullptr); 0019 ~AskTwoAuthenticationPasswordDialog() override; 0020 [[nodiscard]] QString code() const; 0021 0022 [[nodiscard]] RocketChatAccount *rocketChatAccount() const; 0023 void setRocketChatAccount(RocketChatAccount *newRocketChatAccount); 0024 0025 private: 0026 AskTwoAuthenticationPasswordWidget *const mAskTwoAuthicationPasswordWidget; 0027 QPushButton *mOkButton = nullptr; 0028 };