File indexing completed on 2024-05-12 05:36:29

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 "plasmanm_editor_export.h"
0011 
0012 #include "connectioneditortabwidget.h"
0013 
0014 #include <QDBusPendingCallWatcher>
0015 #include <QDialog>
0016 #include <QDialogButtonBox>
0017 
0018 class PLASMANM_EDITOR_EXPORT ConnectionEditorDialog : public QDialog
0019 {
0020     Q_OBJECT
0021 public:
0022     explicit ConnectionEditorDialog(const NetworkManager::ConnectionSettings::Ptr &connection,
0023                                     QWidget *parent = nullptr,
0024                                     Qt::WindowFlags f = Qt::WindowFlags());
0025     ~ConnectionEditorDialog() override;
0026 
0027     NMVariantMapMap setting() const;
0028 
0029 private Q_SLOTS:
0030     void onValidityChanged(bool valid);
0031 
0032 private:
0033     QDialogButtonBox *const m_buttonBox;
0034     ConnectionEditorTabWidget *const m_connectionEditorTabWidget;
0035 };
0036 
0037 #endif // PLASMA_NM_CONNECTION_EDITOR_BASE_H