Changeset View
Changeset View
Standalone View
Standalone View
vpn/l2tp/l2tpipsecwidget.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 | ||
Context not available. | |||||
33 | class L2tpIpsecWidget : public QDialog | 34 | class L2tpIpsecWidget : public QDialog | ||
34 | { | 35 | { | ||
35 | Q_OBJECT | 36 | Q_OBJECT | ||
37 | | ||||
38 | enum AuthType {PSK = 0, TLS}; | ||||
39 | enum IpsecDaemonType {NoIpsecDaemon, Libreswan, Strongswan, Openswan, UnknownIpsecDaemon}; | ||||
40 | | ||||
36 | public: | 41 | public: | ||
37 | explicit L2tpIpsecWidget(const NetworkManager::VpnSetting::Ptr &setting, QWidget *parent = nullptr); | 42 | explicit L2tpIpsecWidget(const NetworkManager::VpnSetting::Ptr &setting, QWidget *parent = nullptr); | ||
38 | ~L2tpIpsecWidget() override; | 43 | ~L2tpIpsecWidget() override; | ||
39 | 44 | | |||
40 | NMStringMap setting() const; | 45 | NMStringMap setting() const; | ||
46 | NMStringMap secrets() const; | ||||
47 | | ||||
48 | static bool hasIpsecDaemon(); | ||||
49 | | ||||
50 | private Q_SLOTS: | ||||
51 | void updateStartDirUrl(const QUrl &); | ||||
52 | void setDefaultIkelifetime(bool isChecked); | ||||
53 | void setDefaultSalifetime(bool isChecked); | ||||
54 | void resizeStackedWidget(int currentIndex); | ||||
41 | 55 | | |||
42 | private: | 56 | private: | ||
43 | void loadConfig(const NetworkManager::VpnSetting::Ptr &setting); | 57 | void loadConfig(const NetworkManager::VpnSetting::Ptr &setting); | ||
44 | Ui::L2tpIpsecWidget * m_ui; | 58 | Ui::L2tpIpsecWidget * m_ui; | ||
59 | static IpsecDaemonType m_ipsecDaemonType; | ||||
45 | }; | 60 | }; | ||
46 | 61 | | |||
47 | #endif // PLASMA_NM_L2TP_IPSEC_WIDGET_H | 62 | #endif // PLASMA_NM_L2TP_IPSEC_WIDGET_H | ||
Context not available. |