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