File indexing completed on 2024-12-01 04:36:36
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "authenticationinfo.h" 0010 #include "libruqolawidgets_private_export.h" 0011 #include <QPushButton> 0012 0013 class LIBRUQOLAWIDGETS_TESTS_EXPORT AuthenticationButton : public QPushButton 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit AuthenticationButton(QWidget *parent = nullptr); 0018 ~AuthenticationButton() override; 0019 void setAuthenticationInfo(const AuthenticationInfo &info); 0020 0021 [[nodiscard]] AuthenticationInfo authenticationInfo() const; 0022 0023 Q_SIGNALS: 0024 void authentication(AuthenticationManager::AuthMethodType type); 0025 0026 private: 0027 AuthenticationInfo mAuthenticationInfo; 0028 };