1/*
2 SPDX-FileCopyrightText: 2008, 2009 Will Stephenson <wstephenson@kde.org>
3 SPDX-FileCopyrightText: 2011-2013 Lamarque V. Souza <lamarque@kde.org>
4 SPDX-FileCopyrightText: 2013-2014 Jan Grulich <jgrulich@redhat.com>
5
6 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7*/
8
9#ifndef NETWORKMANAGERQT_SETTINGS_CONNECTION_P_H
10#define NETWORKMANAGERQT_SETTINGS_CONNECTION_P_H
11
12#include "connection.h"
13#include "connectioninterface.h"
14#include "device.h"
15#include "generictypes.h"
16#include "manager_p.h"
17
18class QDBusPendingCallWatcher;
19
20namespace NetworkManager
21{
22class ConnectionPrivate : public QObject
23{
24 Q_OBJECT
25public:
26 ConnectionPrivate(const QString &path, Connection *q);
27
28 void updateSettings(const NMVariantMapMap &newSettings = NMVariantMapMap());
29 bool unsaved;
30 QString uuid;
31 QString id;
32 NMVariantMapMap settings;
33 ConnectionSettings::Ptr connection;
34 QString path;
35 OrgFreedesktopNetworkManagerSettingsConnectionInterface iface;
36
37 Q_DECLARE_PUBLIC(Connection)
38 Connection *q_ptr;
39private Q_SLOTS:
40 void onConnectionUpdated();
41 void onConnectionRemoved();
42 void dbusPropertiesChanged(const QString &interfaceName, const QVariantMap &properties, const QStringList &invalidatedProperties);
43 void onPropertiesChanged(const QVariantMap &properties);
44};
45
46}
47
48#endif
49

source code of networkmanager-qt/src/connection_p.h