File indexing completed on 2024-12-08 04:34:10

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 "authenticationmanager.h"
0011 #include "libruqolawidgets_private_export.h"
0012 #include <QWidget>
0013 
0014 class RocketChatAccount;
0015 class QVBoxLayout;
0016 class LIBRUQOLAWIDGETS_TESTS_EXPORT AuthenticationOauthWidget : public QWidget
0017 {
0018     Q_OBJECT
0019 public:
0020     explicit AuthenticationOauthWidget(QWidget *parent = nullptr);
0021     ~AuthenticationOauthWidget() override;
0022 
0023     void addAuthenticationMethod(const AuthenticationInfo &info);
0024 
0025 Q_SIGNALS:
0026     void authentication(AuthenticationManager::AuthMethodType type);
0027 
0028 private:
0029     QVBoxLayout *const mMainLayout;
0030 };