Warning, file /network/ruqola/src/core/plugins/pluginauthenticationinterface.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
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 "libruqolacore_export.h" 0010 #include <QObject> 0011 class RocketChatAccount; 0012 class LIBRUQOLACORE_EXPORT PluginAuthenticationInterface : public QObject 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit PluginAuthenticationInterface(QObject *parent = nullptr); 0017 ~PluginAuthenticationInterface() override; 0018 0019 virtual void login() = 0; 0020 0021 [[nodiscard]] RocketChatAccount *account() const; 0022 void setAccount(RocketChatAccount *account); 0023 0024 Q_SIGNALS: 0025 void loginFailed(const QString &message); 0026 0027 protected: 0028 RocketChatAccount *mAccount = nullptr; 0029 };