File indexing completed on 2024-11-03 10:42:03
0001 /* 0002 SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "authenticationmanager.h" 0010 #include "libruqolacore_export.h" 0011 #include <QObject> 0012 0013 class PluginAuthenticationInterface; 0014 0015 class LIBRUQOLACORE_EXPORT PluginAuthentication : public QObject 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit PluginAuthentication(QObject *parent = nullptr); 0020 ~PluginAuthentication() override; 0021 0022 virtual PluginAuthenticationInterface *createInterface(QObject *parent) = 0; 0023 0024 [[nodiscard]] virtual AuthenticationManager::AuthMethodType type() const = 0; 0025 0026 [[nodiscard]] virtual QString name() const = 0; 0027 [[nodiscard]] virtual QString iconName() const = 0; 0028 };