1/*
2 SPDX-FileCopyrightText: 2011 Ilia Kats <ilia-kats@gmx.net>
3 SPDX-FileCopyrightText: 2013-2014 Jan Grulich <jgrulich@redhat.com>
4
5 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6*/
7
8#ifndef NETWORKMANAGERQT_VPNCONNECTION_P_H
9#define NETWORKMANAGERQT_VPNCONNECTION_P_H
10
11#include "activeconnection_p.h"
12#include "manager_p.h"
13#include "vpnconnection.h"
14
15#include "vpnconnectioninterface.h"
16
17namespace NetworkManager
18{
19class VpnConnectionPrivate : public ActiveConnectionPrivate
20{
21 Q_OBJECT
22public:
23 VpnConnectionPrivate(const QString &path, VpnConnection *q);
24
25 static NetworkManager::VpnConnection::State convertVpnConnectionState(uint state);
26 static NetworkManager::VpnConnection::StateChangeReason convertVpnConnectionStateReason(uint reason);
27
28 QString banner;
29 NetworkManager::VpnConnection::State state;
30 OrgFreedesktopNetworkManagerVPNConnectionInterface iface;
31
32 Q_DECLARE_PUBLIC(VpnConnection)
33 VpnConnection *q_ptr;
34
35protected:
36 /**
37 * When subclassing make sure to call the parent class method
38 * if the property was not useful to your new class
39 */
40 void propertyChanged(const QString &property, const QVariant &value) override;
41
42private Q_SLOTS:
43 void dbusPropertiesChanged(const QString &interfaceName, const QVariantMap &properties, const QStringList &invalidatedProperties);
44 void vpnStateChanged(uint new_state, uint reason);
45};
46
47}
48
49#endif // NETWORKMANAGERQT_VPNCONNECTION_P_H
50

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