File indexing completed on 2024-07-14 15:48:23

0001 /*
0002     SPDX-FileCopyrightText: 2016 Jan Grulich <jgrulich@redhat.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #include "iodine.h"
0008 #include "iodineauth.h"
0009 #include "iodinewidget.h"
0010 
0011 #include <KPluginFactory>
0012 
0013 K_PLUGIN_CLASS_WITH_JSON(IodineUiPlugin, "plasmanetworkmanagement_iodineui.json")
0014 
0015 IodineUiPlugin::IodineUiPlugin(QObject *parent, const QVariantList &)
0016     : VpnUiPlugin(parent)
0017 {
0018 }
0019 
0020 IodineUiPlugin::~IodineUiPlugin() = default;
0021 
0022 SettingWidget *IodineUiPlugin::widget(const NetworkManager::VpnSetting::Ptr &setting, QWidget *parent)
0023 {
0024     return new IodineWidget(setting, parent);
0025 }
0026 
0027 SettingWidget *IodineUiPlugin::askUser(const NetworkManager::VpnSetting::Ptr &setting, const QStringList &hints, QWidget *parent)
0028 {
0029     return new IodineAuthDialog(setting, hints, parent);
0030 }
0031 
0032 QString IodineUiPlugin::suggestedFileName(const NetworkManager::ConnectionSettings::Ptr &connection) const
0033 {
0034     Q_UNUSED(connection);
0035     return {};
0036 }
0037 
0038 #include "iodine.moc"