Changeset View
Changeset View
Standalone View
Standalone View
vpn/l2tp/l2tpwidget.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 L2tpWidget : public SettingWidget | 34 | class L2tpWidget : public SettingWidget | ||
34 | { | 35 | { | ||
35 | Q_OBJECT | 36 | Q_OBJECT | ||
37 | | ||||
38 | enum AuthType {Password = 0, TLS}; | ||||
39 | | ||||
36 | public: | 40 | public: | ||
37 | explicit L2tpWidget(const NetworkManager::VpnSetting::Ptr &setting, QWidget* parent = nullptr, Qt::WindowFlags f = {}); | 41 | explicit L2tpWidget(const NetworkManager::VpnSetting::Ptr &setting, QWidget* parent = nullptr, Qt::WindowFlags f = {}); | ||
38 | ~L2tpWidget() override; | 42 | ~L2tpWidget() override; | ||
Context not available. | |||||
45 | bool isValid() const override; | 49 | bool isValid() const override; | ||
46 | 50 | | |||
47 | private Q_SLOTS: | 51 | private Q_SLOTS: | ||
48 | void userPasswordTypeChanged(int index); | 52 | void updateStartDirUrl(const QUrl &); | ||
49 | void showIpsec(); | 53 | void showIpsec(); | ||
50 | void showPpp(); | 54 | void showPpp(); | ||
51 | void certStateChanged(); | | |||
52 | 55 | | |||
53 | private: | 56 | private: | ||
54 | Ui::L2tpWidget * m_ui; | 57 | Ui::L2tpWidget * m_ui; | ||
Context not available. |