Changeset View
Changeset View
Standalone View
Standalone View
vpn/l2tp/l2tp.cpp
Show All 16 Lines | 1 | /* | |||
---|---|---|---|---|---|
17 | You should have received a copy of the GNU Lesser General Public | 17 | You should have received a copy of the GNU Lesser General Public | ||
18 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | 18 | License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #include <KPluginFactory> | 21 | #include <KPluginFactory> | ||
22 | 22 | | |||
23 | #include <NetworkManagerQt/VpnSetting> | 23 | #include <NetworkManagerQt/VpnSetting> | ||
24 | 24 | | |||
25 | #include "nm-l2tp-service.h" | | |||
26 | #include "l2tp.h" | 25 | #include "l2tp.h" | ||
27 | #include "l2tpwidget.h" | 26 | #include "l2tpwidget.h" | ||
28 | #include "l2tpauth.h" | 27 | #include "l2tpauth.h" | ||
29 | 28 | | |||
30 | K_PLUGIN_CLASS_WITH_JSON(L2tpUiPlugin, "plasmanetworkmanagement_l2tpui.json") | 29 | K_PLUGIN_CLASS_WITH_JSON(L2tpUiPlugin, "plasmanetworkmanagement_l2tpui.json") | ||
31 | 30 | | |||
32 | L2tpUiPlugin::L2tpUiPlugin(QObject * parent, const QVariantList &) | 31 | L2tpUiPlugin::L2tpUiPlugin(QObject * parent, const QVariantList &) | ||
33 | : VpnUiPlugin(parent) | 32 | : VpnUiPlugin(parent) | ||
34 | { | 33 | { | ||
35 | } | 34 | } | ||
36 | 35 | | |||
37 | L2tpUiPlugin::~L2tpUiPlugin() | 36 | L2tpUiPlugin::~L2tpUiPlugin() | ||
38 | { | 37 | { | ||
39 | } | 38 | } | ||
40 | 39 | | |||
41 | SettingWidget * L2tpUiPlugin::widget(const NetworkManager::VpnSetting::Ptr &setting, QWidget * parent) | 40 | SettingWidget * L2tpUiPlugin::widget(const NetworkManager::VpnSetting::Ptr &setting, QWidget * parent) | ||
42 | { | 41 | { | ||
43 | return new L2tpWidget(setting, parent); | 42 | return new L2tpWidget(setting, parent); | ||
44 | } | 43 | } | ||
45 | 44 | | |||
46 | SettingWidget *L2tpUiPlugin::askUser(const NetworkManager::VpnSetting::Ptr &setting, QWidget * parent) | 45 | SettingWidget *L2tpUiPlugin::askUser(const NetworkManager::VpnSetting::Ptr &setting, QWidget * parent) | ||
47 | { | 46 | { | ||
48 | return new L2tpAuthDialog(setting, parent); | 47 | return new L2tpAuthWidget(setting, parent); | ||
49 | } | 48 | } | ||
50 | 49 | | |||
51 | QString L2tpUiPlugin::suggestedFileName(const NetworkManager::ConnectionSettings::Ptr &connection) const | 50 | QString L2tpUiPlugin::suggestedFileName(const NetworkManager::ConnectionSettings::Ptr &connection) const | ||
52 | { | 51 | { | ||
53 | Q_UNUSED(connection); | 52 | Q_UNUSED(connection); | ||
54 | return QString(); | 53 | return QString(); | ||
55 | } | 54 | } | ||
56 | 55 | | |||
Show All 21 Lines |