File indexing completed on 2025-01-26 04:38:17
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "gitlabpluginauthentication.h" 0008 #include "gitlabauthenticationinterface.h" 0009 #include <KLocalizedString> 0010 #include <KPluginFactory> 0011 0012 K_PLUGIN_CLASS_WITH_JSON(GitLabPluginAuthentication, "ruqola_gitlabauthenticationplugin.json") 0013 0014 GitLabPluginAuthentication::GitLabPluginAuthentication(QObject *parent, const QVariantList &) 0015 : PluginAuthentication(parent) 0016 { 0017 } 0018 0019 GitLabPluginAuthentication::~GitLabPluginAuthentication() = default; 0020 0021 PluginAuthenticationInterface *GitLabPluginAuthentication::createInterface(QObject *parent) 0022 { 0023 return new GitLabAuthenticationInterface(parent); 0024 } 0025 0026 AuthenticationManager::AuthMethodType GitLabPluginAuthentication::type() const 0027 { 0028 return AuthenticationManager::AuthMethodType::GitLab; 0029 } 0030 0031 QString GitLabPluginAuthentication::name() const 0032 { 0033 return i18n("GitLab"); 0034 } 0035 0036 QString GitLabPluginAuthentication::iconName() const 0037 { 0038 return QStringLiteral("dialog-password"); 0039 } 0040 0041 #include "gitlabpluginauthentication.moc" 0042 #include "moc_gitlabpluginauthentication.cpp"