NetworkManagerQt

vethdevice.h
1 /*
2  SPDX-FileCopyrightText: 2013 Lukáš Tinkl <[email protected]>
3  SPDX-FileCopyrightText: 2014 Jan Grulich <[email protected]>
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 
14 namespace NetworkManager
15 {
16 class VethDevicePrivate;
17 
18 /**
19  * A veth device interface
20  */
21 class NETWORKMANAGERQT_EXPORT VethDevice : public Device
22 {
23  Q_OBJECT
24  Q_PROPERTY(QString peer READ peer NOTIFY peerChanged)
25 
26 public:
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 
37 Q_SIGNALS:
38  void peerChanged(const QString &peer);
39 
40 private:
41  Q_DECLARE_PRIVATE(VethDevice)
42 };
43 
44 }
45 
46 #endif
This class represents a common device interface.
Definition: device.h:33
A veth device interface.
Definition: vethdevice.h:21
This class allows querying the underlying system to discover the available network interfaces and rea...
Definition: accesspoint.h:20
Type
Device type.
Definition: device.h:177
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 03:57:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.