File indexing completed on 2024-11-03 13:45:37
0001 /* 0002 SPDX-FileCopyrightText: 2009 Will Stephenson <wstephenson@kde.org> 0003 SPDX-FileCopyrightText: 2010 Maurus Rohrer <maurus.rohrer@gmail.com> 0004 SPDX-FileCopyrightText: 2013 Lukas Tinkl <ltinkl@redhat.com> 0005 0006 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0007 */ 0008 0009 #ifndef STRONGSWANWIDGET_H 0010 #define STRONGSWANWIDGET_H 0011 0012 #include "passwordfield.h" 0013 #include "settingwidget.h" 0014 0015 #include <NetworkManagerQt/VpnSetting> 0016 0017 class StrongswanSettingWidgetPrivate; 0018 0019 class StrongswanSettingWidget : public SettingWidget 0020 { 0021 Q_OBJECT 0022 Q_DECLARE_PRIVATE(StrongswanSettingWidget) 0023 public: 0024 explicit StrongswanSettingWidget(const NetworkManager::VpnSetting::Ptr &setting, QWidget *parent = nullptr); 0025 ~StrongswanSettingWidget() override; 0026 0027 void loadConfig(const NetworkManager::Setting::Ptr &setting) override; 0028 void loadSecrets(const NetworkManager::Setting::Ptr &setting) override; 0029 0030 QVariantMap setting() const override; 0031 0032 bool isValid() const override; 0033 0034 private: 0035 StrongswanSettingWidgetPrivate *const d_ptr; 0036 }; 0037 0038 #endif // STRONGSWANWIDGET_H