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{
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
38 void peerChanged(const QString &peer);
39
40private:
41 Q_DECLARE_PRIVATE(VethDevice)
42};
43
44}
45
46#endif
Type
Device type.
Definition device.h:191
Device(const QString &path, QObject *parent=nullptr)
Creates a new device object.
Definition device.cpp:226
Type type() const override
Retrieves the interface type.
This class allows querying the underlying system to discover the available network interfaces and rea...
Definition accesspoint.h:21
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:20 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.