/* SPDX-FileCopyrightText: 2015 Jan Grulich SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #ifndef SSTP_WIDGET_H #define SSTP_WIDGET_H #include "passwordfield.h" #include "settingwidget.h" #include class SstpSettingWidgetPrivate; class SstpSettingWidget : public SettingWidget { Q_OBJECT Q_DECLARE_PRIVATE(SstpSettingWidget) public: explicit SstpSettingWidget(const NetworkManager::VpnSetting::Ptr &setting, QWidget *parent = nullptr); ~SstpSettingWidget() 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; private Q_SLOTS: void doAdvancedDialog(); private: SstpSettingWidgetPrivate *const d_ptr; void fillOnePasswordCombo(PasswordField *, NetworkManager::Setting::SecretFlags); void handleOnePasswordType(const PasswordField *, const QString &, NMStringMap &) const; }; #endif // SSTP_WIDGET_H