1/*
2 SPDX-FileCopyrightText: 2013 Lukáš Tinkl <ltinkl@redhat.com>
3 SPDX-FileCopyrightText: 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_VETH_DEVICE_H
9#define NETWORKMANAGERQT_VETH_DEVICE_H
10
11#include "device.h"
12#include <networkmanagerqt/networkmanagerqt_export.h>
13
14namespace NetworkManager
15{
16class VethDevicePrivate;
17
18/**
19 * A veth device interface
20 */
21class NETWORKMANAGERQT_EXPORT VethDevice : public Device
22{
23 Q_OBJECT
24 Q_PROPERTY(QString peer READ peer NOTIFY peerChanged)
25
26public:
27 typedef QSharedPointer<VethDevice> Ptr;
28 typedef QList<Ptr> List;
29
30 explicit VethDevice(const QString &path, QObject *parent = nullptr);
31 ~VethDevice() override;
32
33 Type type() const override;
34
35 QString peer() const;
36
37Q_SIGNALS:
38 void peerChanged(const QString &peer);
39
40private:
41 Q_DECLARE_PRIVATE(VethDevice)
42};
43
44}
45
46#endif
47

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