File indexing completed on 2024-04-28 16:52:51
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 "ssh.h" 0008 #include "sshauth.h" 0009 #include "sshwidget.h" 0010 0011 #include <KPluginFactory> 0012 0013 K_PLUGIN_CLASS_WITH_JSON(SshUiPlugin, "plasmanetworkmanagement_sshui.json") 0014 0015 SshUiPlugin::SshUiPlugin(QObject *parent, const QVariantList &) 0016 : VpnUiPlugin(parent) 0017 { 0018 } 0019 0020 SshUiPlugin::~SshUiPlugin() = default; 0021 0022 SettingWidget *SshUiPlugin::widget(const NetworkManager::VpnSetting::Ptr &setting, QWidget *parent) 0023 { 0024 return new SshSettingWidget(setting, parent); 0025 } 0026 0027 SettingWidget *SshUiPlugin::askUser(const NetworkManager::VpnSetting::Ptr &setting, const QStringList &hints, QWidget *parent) 0028 { 0029 return new SshAuthWidget(setting, hints, parent); 0030 } 0031 0032 QString SshUiPlugin::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 "ssh.moc"