File indexing completed on 2024-12-01 04:36:51
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 KPasswordLineEdit; 0012 class QPushButton; 0013 class LIBRUQOLAWIDGETS_TESTS_EXPORT PasswordLineEditWidget : public QWidget 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit PasswordLineEditWidget(QWidget *parent = nullptr); 0018 ~PasswordLineEditWidget() override; 0019 [[nodiscard]] KPasswordLineEdit *passwordLineEdit() const; 0020 0021 void setAllowPasswordReset(bool allowPassword); 0022 0023 Q_SIGNALS: 0024 void resetPasswordRequested(const QString &email); 0025 0026 private: 0027 LIBRUQOLAWIDGETS_NO_EXPORT void slotResetPasswordButton(); 0028 KPasswordLineEdit *const mPasswordLineEdit; 0029 QPushButton *const mResetPasswordButton; 0030 };