NetworkManagerQt

macvlandevice.h
1 /*
2  SPDX-FileCopyrightText: 2013 Jan Grulich <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #ifndef NETWORKMANAGERQT_MACVLAN_DEVICE_H
8 #define NETWORKMANAGERQT_MACVLAN_DEVICE_H
9 
10 #include "device.h"
11 #include <networkmanagerqt/networkmanagerqt_export.h>
12 
13 namespace NetworkManager
14 {
15 class MacVlanDevicePrivate;
16 
17 /**
18  * A macvlan device interface
19  */
20 class NETWORKMANAGERQT_EXPORT MacVlanDevice : public Device
21 {
22  Q_OBJECT
23  Q_PROPERTY(QString mode READ mode NOTIFY modeChanged)
24  Q_PROPERTY(bool noPromisc READ noPromisc NOTIFY noPromiscChanged)
25  Q_PROPERTY(QString parent READ parent NOTIFY parentChanged)
26 
27 public:
29  typedef QList<Ptr> List;
30  explicit MacVlanDevice(const QString &path, QObject *parent = nullptr);
31  ~MacVlanDevice() override;
32 
33  Type type() const override;
34 
35  QString mode() const;
36  bool noPromisc() const;
37  QString parent() const;
38 
39 Q_SIGNALS:
40  void modeChanged(const QString &mode);
41  void noPromiscChanged(bool noPromisc);
42  void parentChanged(const QString &parent);
43 
44 private:
45  Q_DECLARE_PRIVATE(MacVlanDevice)
46 };
47 
48 }
49 
50 #endif
A macvlan device interface.
Definition: macvlandevice.h:20
This class represents a common device interface.
Definition: device.h:33
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.