File indexing completed on 2024-11-03 13:45:37
0001 /* 0002 SPDX-FileCopyrightText: 2011 Ilia Kats <ilia-kats@gmx.net> 0003 SPDX-FileCopyrightText: 2013 Lukas Tinkl <ltinkl@redhat.com> 0004 0005 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0006 */ 0007 0008 #ifndef STRONGSWANAUTH_H 0009 #define STRONGSWANAUTH_H 0010 0011 #include "settingwidget.h" 0012 0013 #include <NetworkManagerQt/VpnSetting> 0014 0015 class StrongswanAuthWidgetPrivate; 0016 0017 class StrongswanAuthWidget : public SettingWidget 0018 { 0019 Q_OBJECT 0020 Q_DECLARE_PRIVATE(StrongswanAuthWidget) 0021 public: 0022 explicit StrongswanAuthWidget(const NetworkManager::VpnSetting::Ptr &setting, const QStringList &hints, QWidget *parent = nullptr); 0023 ~StrongswanAuthWidget() override; 0024 0025 virtual void readSecrets(); 0026 0027 QVariantMap setting() const override; 0028 0029 public Q_SLOTS: 0030 void setVisible(bool) override; 0031 0032 private: 0033 StrongswanAuthWidgetPrivate *const d_ptr; 0034 void acceptDialog(); 0035 }; 0036 0037 #endif // STRONGSWANAUTH_H