File indexing completed on 2024-04-14 03:57:43

0001 /*
0002     SPDX-FileCopyrightText: 2017 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 NETWORKMANAGERQT_IPTUNNEL_DEVICE_P_H
0008 #define NETWORKMANAGERQT_IPTUNNEL_DEVICE_P_H
0009 
0010 #include "device_p.h"
0011 #include "iptunneldevice.h"
0012 #include "manager.h"
0013 #include "manager_p.h"
0014 
0015 #include "iptunneldeviceinterface.h"
0016 
0017 namespace NetworkManager
0018 {
0019 class IpTunnelDevicePrivate : public DevicePrivate
0020 {
0021     Q_OBJECT
0022 public:
0023     IpTunnelDevicePrivate(const QString &path, IpTunnelDevice *q);
0024     ~IpTunnelDevicePrivate() override;
0025 
0026     OrgFreedesktopNetworkManagerDeviceIPTunnelInterface iface;
0027     uchar encapsulationLimit;
0028     uint flowLabel;
0029     QString inputKey;
0030     QString local;
0031     uint mode;
0032     QString outputKey;
0033     QString parent;
0034     bool pathMtuDiscovery;
0035     QString remote;
0036     uchar tos;
0037     uchar ttl;
0038 
0039     Q_DECLARE_PUBLIC(IpTunnelDevice)
0040 protected:
0041     /**
0042      * When subclassing make sure to call the parent class method
0043      * if the property was not useful to your new class
0044      */
0045     void propertyChanged(const QString &property, const QVariant &value) override;
0046 };
0047 
0048 }
0049 
0050 #endif