File indexing completed on 2024-05-05 17:42:50
0001 /* 0002 SPDX-FileCopyrightText: 2013 Jan Grulich <jgrulich@redhat.com> 0003 SPDX-FileCopyrightText: 2020 Douglas Kosovic <doug@uq.edu.au> 0004 0005 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0006 */ 0007 0008 #ifndef PLASMA_NM_L2TP_PPP_WIDGET_H 0009 #define PLASMA_NM_L2TP_PPP_WIDGET_H 0010 0011 #include <QDialog> 0012 0013 #include <NetworkManagerQt/VpnSetting> 0014 0015 namespace Ui 0016 { 0017 class L2tpPppWidget; 0018 } 0019 0020 class L2tpPPPWidget : public QDialog 0021 { 0022 Q_OBJECT 0023 public: 0024 explicit L2tpPPPWidget(const NetworkManager::VpnSetting::Ptr &setting, QWidget *parent = nullptr, bool need_peer_eap = false); 0025 ~L2tpPPPWidget() override; 0026 0027 NMStringMap setting() const; 0028 0029 private: 0030 void loadConfig(const NetworkManager::VpnSetting::Ptr &setting); 0031 Ui::L2tpPppWidget *const m_ui; 0032 const bool m_need_peer_eap; 0033 }; 0034 0035 #endif // PLASMA_NM_L2TP_PPP_WIDGET_H