Changeset View
Changeset View
Standalone View
Standalone View
vpn/l2tp/l2tppppwidget.h
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | Copyright 2013 Jan Grulich <jgrulich@redhat.com> | 2 | Copyright 2013 Jan Grulich <jgrulich@redhat.com> | ||
3 | Copyright 2020 Douglas Kosovic <doug@uq.edu.au> | ||||
3 | 4 | | |||
4 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or | ||
5 | modify it under the terms of the GNU Lesser General Public | 6 | modify it under the terms of the GNU Lesser General Public | ||
6 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either | ||
7 | version 2.1 of the License, or (at your option) version 3, or any | 8 | version 2.1 of the License, or (at your option) version 3, or any | ||
8 | later version accepted by the membership of KDE e.V. (or its | 9 | later version accepted by the membership of KDE e.V. (or its | ||
9 | successor approved by the membership of KDE e.V.), which shall | 10 | successor approved by the membership of KDE e.V.), which shall | ||
10 | act as a proxy defined in Section 6 of version 3 of the license. | 11 | act as a proxy defined in Section 6 of version 3 of the license. | ||
Show All 18 Lines | |||||
29 | { | 30 | { | ||
30 | class L2tpPppWidget; | 31 | class L2tpPppWidget; | ||
31 | } | 32 | } | ||
32 | 33 | | |||
33 | class L2tpPPPWidget : public QDialog | 34 | class L2tpPPPWidget : public QDialog | ||
34 | { | 35 | { | ||
35 | Q_OBJECT | 36 | Q_OBJECT | ||
36 | public: | 37 | public: | ||
37 | explicit L2tpPPPWidget(const NetworkManager::VpnSetting::Ptr &setting, QWidget *parent = nullptr); | 38 | explicit L2tpPPPWidget(const NetworkManager::VpnSetting::Ptr &setting, QWidget *parent = nullptr, bool need_peer_eap = false); | ||
38 | ~L2tpPPPWidget() override; | 39 | ~L2tpPPPWidget() override; | ||
39 | 40 | | |||
40 | NMStringMap setting() const; | 41 | NMStringMap setting() const; | ||
41 | 42 | | |||
42 | private: | 43 | private: | ||
43 | void loadConfig(const NetworkManager::VpnSetting::Ptr &setting); | 44 | void loadConfig(const NetworkManager::VpnSetting::Ptr &setting); | ||
44 | Ui::L2tpPppWidget * m_ui; | 45 | Ui::L2tpPppWidget * m_ui; | ||
46 | bool m_need_peer_eap; | ||||
45 | }; | 47 | }; | ||
46 | 48 | | |||
47 | #endif // PLASMA_NM_L2TP_PPP_WIDGET_H | 49 | #endif // PLASMA_NM_L2TP_PPP_WIDGET_H |