File indexing completed on 2024-11-03 13:45:34

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: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0006 */
0007 
0008 #ifndef OPENCONNECT_UI_H
0009 #define OPENCONNECT_UI_H
0010 
0011 #include "vpnuiplugin.h"
0012 
0013 #include <QDialog>
0014 #include <QVariant>
0015 
0016 class Q_DECL_EXPORT OpenconnectUiPlugin : public VpnUiPlugin
0017 {
0018     Q_OBJECT
0019 public:
0020     explicit OpenconnectUiPlugin(QObject *parent = nullptr, const QVariantList & = QVariantList());
0021     ~OpenconnectUiPlugin() override;
0022     SettingWidget *widget(const NetworkManager::VpnSetting::Ptr &setting, QWidget *parent) override;
0023     SettingWidget *askUser(const NetworkManager::VpnSetting::Ptr &setting, const QStringList &hints, QWidget *parent) override;
0024 
0025     QString suggestedFileName(const NetworkManager::ConnectionSettings::Ptr &connection) const override;
0026     QMessageBox::StandardButtons suggestedAuthDialogButtons() const override;
0027 };
0028 
0029 #endif //  OPENCONNECT_UI_H