File indexing completed on 2024-04-28 16:52:46
0001 /* 0002 SPDX-FileCopyrightText: 2017 Jan Grulich <jgrulich@redhat.com> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef PLASMA_NM_FORTISSLVPN_WIDGET_H 0008 #define PLASMA_NM_FORTISSLVPN_WIDGET_H 0009 0010 #include <NetworkManagerQt/VpnSetting> 0011 0012 #include "settingwidget.h" 0013 0014 class FortisslvpnWidgetPrivate; 0015 0016 class FortisslvpnWidget : public SettingWidget 0017 { 0018 Q_OBJECT 0019 Q_DECLARE_PRIVATE(FortisslvpnWidget) 0020 public: 0021 explicit FortisslvpnWidget(const NetworkManager::VpnSetting::Ptr &setting, QWidget *parent = nullptr, Qt::WindowFlags f = {}); 0022 ~FortisslvpnWidget() override; 0023 0024 void loadConfig(const NetworkManager::Setting::Ptr &setting) override; 0025 void loadSecrets(const NetworkManager::Setting::Ptr &setting) override; 0026 QVariantMap setting() const override; 0027 bool isValid() const override; 0028 0029 private Q_SLOTS: 0030 void showAdvanced(); 0031 0032 private: 0033 FortisslvpnWidgetPrivate *const d_ptr; 0034 }; 0035 0036 #endif // PLASMA_NM_FORTISSLVPN_WIDGET_H