1/*
2 SPDX-FileCopyrightText: 2011 Ilia Kats <ilia-kats@gmx.net>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef NETWORKMANAGERQT_ACTIVECONNECTION_P_H
8#define NETWORKMANAGERQT_ACTIVECONNECTION_P_H
9
10#include "activeconnection.h"
11#include "activeconnectioninterface.h"
12
13namespace NetworkManager
14{
15class ActiveConnectionPrivate : public QObject
16{
17 Q_OBJECT
18public:
19 explicit ActiveConnectionPrivate(const QString &, ActiveConnection *q);
20 ~ActiveConnectionPrivate() override;
21 static NetworkManager::ActiveConnection::State convertActiveConnectionState(uint);
22 static NetworkManager::ActiveConnection::Reason convertActiveConnectionReason(uint);
23 NetworkManager::Connection::Ptr connection;
24 QString path;
25 bool default4;
26 bool default6;
27 QStringList devices;
28 OrgFreedesktopNetworkManagerConnectionActiveInterface iface;
29 mutable Dhcp4Config::Ptr dhcp4Config;
30 QString dhcp4ConfigPath;
31 mutable Dhcp6Config::Ptr dhcp6Config;
32 QString dhcp6ConfigPath;
33 mutable IpConfig ipV4Config;
34 QString ipV4ConfigPath;
35 mutable IpConfig ipV6Config;
36 QString ipV6ConfigPath;
37 QString id;
38 QString type;
39 QString specificObject;
40 ActiveConnection::State state;
41 bool vpn;
42 QString uuid;
43 QString master;
44
45 Q_DECLARE_PUBLIC(ActiveConnection)
46 ActiveConnection *q_ptr;
47
48public:
49 /**
50 * When subclassing make sure to call the parent class method
51 * if the property was not useful to your new class
52 */
53 virtual void propertyChanged(const QString &property, const QVariant &value);
54
55public Q_SLOTS:
56 void propertiesChanged(const QVariantMap &properties);
57 void stateChanged(uint state, uint reason);
58
59private Q_SLOTS:
60 void dbusPropertiesChanged(const QString &interfaceName, const QVariantMap &properties, const QStringList &invalidatedProperties);
61};
62
63}
64#endif
65

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