File indexing completed on 2025-03-23 12:49:49
0001 /* 0002 SPDX-FileCopyrightText: 2008, 2009 Will Stephenson <wstephenson@kde.org> 0003 SPDX-FileCopyrightText: 2011-2013 Lamarque V. Souza <lamarque@kde.org> 0004 SPDX-FileCopyrightText: 2013-2014 Jan Grulich <jgrulich@redhat.com> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef NETWORKMANAGERQT_SETTINGS_CONNECTION_P_H 0010 #define NETWORKMANAGERQT_SETTINGS_CONNECTION_P_H 0011 0012 #include "connection.h" 0013 #include "connectioninterface.h" 0014 #include "device.h" 0015 #include "generictypes.h" 0016 #include "manager_p.h" 0017 0018 class QDBusPendingCallWatcher; 0019 0020 namespace NetworkManager 0021 { 0022 class ConnectionPrivate : public QObject 0023 { 0024 Q_OBJECT 0025 public: 0026 ConnectionPrivate(const QString &path, Connection *q); 0027 0028 void updateSettings(const NMVariantMapMap &newSettings = NMVariantMapMap()); 0029 bool unsaved; 0030 QString uuid; 0031 QString id; 0032 NMVariantMapMap settings; 0033 ConnectionSettings::Ptr connection; 0034 QString path; 0035 OrgFreedesktopNetworkManagerSettingsConnectionInterface iface; 0036 0037 Q_DECLARE_PUBLIC(Connection) 0038 Connection *q_ptr; 0039 private Q_SLOTS: 0040 void onConnectionUpdated(); 0041 void onConnectionRemoved(); 0042 void dbusPropertiesChanged(const QString &interfaceName, const QVariantMap &properties, const QStringList &invalidatedProperties); 0043 void onPropertiesChanged(const QVariantMap &properties); 0044 }; 0045 0046 } 0047 0048 #endif