File indexing completed on 2024-04-28 16:52:52

0001 /*
0002     SPDX-FileCopyrightText: 2015 Jan Grulich <jgrulich@redhat.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 #include "sstp.h"
0008 #include "sstpauth.h"
0009 #include "sstpwidget.h"
0010 
0011 #include <KPluginFactory>
0012 
0013 K_PLUGIN_CLASS_WITH_JSON(SstpUiPlugin, "plasmanetworkmanagement_sstpui.json")
0014 
0015 SstpUiPlugin::SstpUiPlugin(QObject *parent, const QVariantList &)
0016     : VpnUiPlugin(parent)
0017 {
0018 }
0019 
0020 SstpUiPlugin::~SstpUiPlugin() = default;
0021 
0022 SettingWidget *SstpUiPlugin::widget(const NetworkManager::VpnSetting::Ptr &setting, QWidget *parent)
0023 {
0024     return new SstpSettingWidget(setting, parent);
0025 }
0026 
0027 SettingWidget *SstpUiPlugin::askUser(const NetworkManager::VpnSetting::Ptr &setting, const QStringList &hints, QWidget *parent)
0028 {
0029     return new SstpAuthWidget(setting, hints, parent);
0030 }
0031 
0032 QString SstpUiPlugin::suggestedFileName(const NetworkManager::ConnectionSettings::Ptr &connection) const
0033 {
0034     Q_UNUSED(connection);
0035 
0036     // TODO : implement suggested file name
0037     return {};
0038 }
0039 
0040 #include "sstp.moc"