/* SPDX-FileCopyrightText: 2009 Will Stephenson SPDX-FileCopyrightText: 2013 Lukáš Tinkl SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #ifndef PPTPWIDGET_H #define PPTPWIDGET_H #include "passwordfield.h" #include "settingwidget.h" #include class PptpSettingWidgetPrivate; class PptpSettingWidget : public SettingWidget { Q_OBJECT Q_DECLARE_PRIVATE(PptpSettingWidget) public: explicit PptpSettingWidget(const NetworkManager::VpnSetting::Ptr &setting, QWidget *parent = nullptr); ~PptpSettingWidget() 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: PptpSettingWidgetPrivate *const d_ptr; void fillOnePasswordCombo(PasswordField *, NetworkManager::Setting::SecretFlags); void handleOnePasswordType(const PasswordField *, const QString &, NMStringMap &) const; }; #endif // PPTPWIDGET_H