File indexing completed on 2024-07-14 15:48:16

0001 /*
0002     SPDX-FileCopyrightText: 2016 Jan Grulich <jgrulich@redhat.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef PLASMA_NM_CONNECTION_EDITOR_DIALOG_H
0008 #define PLASMA_NM_CONNECTION_EDITOR_DIALOG_H
0009 
0010 #include "connectioneditortabwidget.h"
0011 
0012 #include <QDBusPendingCallWatcher>
0013 #include <QDialog>
0014 #include <QDialogButtonBox>
0015 
0016 class Q_DECL_EXPORT ConnectionEditorDialog : public QDialog
0017 {
0018     Q_OBJECT
0019 public:
0020     explicit ConnectionEditorDialog(const NetworkManager::ConnectionSettings::Ptr &connection,
0021                                     QWidget *parent = nullptr,
0022                                     Qt::WindowFlags f = Qt::WindowFlags());
0023     ~ConnectionEditorDialog() override;
0024 
0025     NMVariantMapMap setting() const;
0026 
0027 private Q_SLOTS:
0028     void onValidityChanged(bool valid);
0029 
0030 private:
0031     QDialogButtonBox *const m_buttonBox;
0032     ConnectionEditorTabWidget *const m_connectionEditorTabWidget;
0033 };
0034 
0035 #endif // PLASMA_NM_CONNECTION_EDITOR_BASE_H