NetworkManagerQt

vethdevice.h
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:
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
This class represents a common device interface.
Definition device.h:34
Type
Device type.
Definition device.h:191
A veth device interface.
Definition vethdevice.h:22
This class allows querying the underlying system to discover the available network interfaces and rea...
Definition accesspoint.h:21
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.