File indexing completed on 2023-11-26 08:17:50
0001 /* 0002 SPDX-FileCopyrightText: 2020-2023 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "restauthenticationmanager.h" 0008 0009 #include "connection.h" 0010 0011 RESTAuthenticationManager::RESTAuthenticationManager(RocketChatRestApi::Connection *restApiConnection, QObject *parent) 0012 : QObject(parent) 0013 , mRestApiConnection(restApiConnection) 0014 { 0015 } 0016 0017 RESTAuthenticationManager::~RESTAuthenticationManager() = default; 0018 0019 void RESTAuthenticationManager::setAuthToken(const QString &authToken) 0020 { 0021 mAuthToken = authToken; 0022 } 0023 0024 void RESTAuthenticationManager::login() 0025 { 0026 mRestApiConnection->login(); 0027 } 0028 0029 void RESTAuthenticationManager::login(const QString &user, const QString &password) 0030 { 0031 } 0032 0033 void RESTAuthenticationManager::loginLDAP(const QString &user, const QString &password) 0034 { 0035 } 0036 0037 void RESTAuthenticationManager::loginOAuth(const QString &credentialToken, const QString &credentialSecret) 0038 { 0039 } 0040 0041 void RESTAuthenticationManager::sendOTP(const QString &otp) 0042 { 0043 } 0044 0045 void RESTAuthenticationManager::logout() 0046 { 0047 mRestApiConnection->logout(); 0048 } 0049 0050 #include "moc_restauthenticationmanager.cpp"