File indexing completed on 2024-09-01 14:38:50
0001 /* 0002 SPDX-FileCopyrightText: 2016 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_IODINE_WIDGET_H 0008 #define PLASMA_NM_IODINE_WIDGET_H 0009 0010 #include <NetworkManagerQt/VpnSetting> 0011 0012 #include "settingwidget.h" 0013 0014 namespace Ui 0015 { 0016 class IodineWidget; 0017 } 0018 0019 class IodineWidget : public SettingWidget 0020 { 0021 Q_OBJECT 0022 public: 0023 explicit IodineWidget(const NetworkManager::VpnSetting::Ptr &setting, QWidget *parent = nullptr, Qt::WindowFlags f = {}); 0024 ~IodineWidget() override; 0025 0026 void loadConfig(const NetworkManager::Setting::Ptr &setting) override; 0027 void loadSecrets(const NetworkManager::Setting::Ptr &setting) override; 0028 QVariantMap setting() const override; 0029 bool isValid() const override; 0030 0031 private: 0032 Ui::IodineWidget *const m_ui; 0033 NetworkManager::VpnSetting::Ptr m_setting; 0034 }; 0035 0036 #endif // PLASMA_NM_IODINE_WIDGET_H