File indexing completed on 2024-11-03 13:45:37
0001 /* 0002 SPDX-FileCopyrightText: 2009 Will Stephenson <wstephenson@kde.org> 0003 SPDX-FileCopyrightText: 2010 Maurus Rohrer <maurus.rohrer@gmail.com> 0004 SPDX-FileCopyrightText: 2013 Lukas Tinkl <ltinkl@redhat.com> 0005 0006 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0007 */ 0008 0009 #include "strongswan.h" 0010 #include "strongswanauth.h" 0011 #include "strongswanwidget.h" 0012 0013 #include <KPluginFactory> 0014 0015 K_PLUGIN_CLASS_WITH_JSON(StrongswanUiPlugin, "plasmanetworkmanagement_strongswanui.json") 0016 0017 StrongswanUiPlugin::StrongswanUiPlugin(QObject *parent, const QVariantList &) 0018 : VpnUiPlugin(parent) 0019 { 0020 } 0021 0022 StrongswanUiPlugin::~StrongswanUiPlugin() = default; 0023 0024 SettingWidget *StrongswanUiPlugin::widget(const NetworkManager::VpnSetting::Ptr &setting, QWidget *parent) 0025 { 0026 return new StrongswanSettingWidget(setting, parent); 0027 } 0028 0029 SettingWidget *StrongswanUiPlugin::askUser(const NetworkManager::VpnSetting::Ptr &setting, const QStringList &hints, QWidget *parent) 0030 { 0031 return new StrongswanAuthWidget(setting, hints, parent); 0032 } 0033 0034 QString StrongswanUiPlugin::suggestedFileName(const NetworkManager::ConnectionSettings::Ptr &connection) const 0035 { 0036 Q_UNUSED(connection); 0037 0038 // TODO : implement suggested file name 0039 return {}; 0040 } 0041 0042 #include "strongswan.moc" 0043 0044 // vim: sw=4 sts=4 et tw=100