File indexing completed on 2024-05-12 16:27:11
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 <QWidget> 0011 class TwoAuthenticationPasswordWidget; 0012 class RocketChatAccount; 0013 class LIBRUQOLAWIDGETS_TESTS_EXPORT AskTwoAuthenticationPasswordWidget : public QWidget 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit AskTwoAuthenticationPasswordWidget(QWidget *parent = nullptr); 0018 ~AskTwoAuthenticationPasswordWidget() override; 0019 [[nodiscard]] QString code() const; 0020 [[nodiscard]] RocketChatAccount *rocketChatAccount() const; 0021 void setRocketChatAccount(RocketChatAccount *newRocketChatAccount); 0022 Q_SIGNALS: 0023 void updateButtonOk(bool state); 0024 0025 private: 0026 TwoAuthenticationPasswordWidget *const mTwoFactorAuthenticationPasswordLineEdit; 0027 };