/* SPDX-FileCopyrightText: 2011 Ilia Kats SPDX-FileCopyrightText: 2013 Lukas Tinkl SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef OPENCONNECTWIDGET_H #define OPENCONNECTWIDGET_H #include "settingwidget.h" #include class OpenconnectSettingWidgetPrivate; class OpenconnectSettingWidget : public SettingWidget { Q_OBJECT Q_DECLARE_PRIVATE(OpenconnectSettingWidget) public: explicit OpenconnectSettingWidget(const NetworkManager::VpnSetting::Ptr &setting, QWidget *parent = nullptr); ~OpenconnectSettingWidget() override; void loadConfig(const NetworkManager::Setting::Ptr &setting) override; void loadSecrets(const NetworkManager::Setting::Ptr &setting) override; QVariantMap setting() const override; bool isValid() const override; bool initTokenGroup(); private Q_SLOTS: void showTokens(); void handleTokenSecret(int index); void saveTokens(); void restoreTokens(); private: OpenconnectSettingWidgetPrivate *const d_ptr; }; #endif // OPENCONNECTWIDGET_H