NetworkManagerQt

bridgedevice.h
1/*
2 SPDX-FileCopyrightText: 2013 Jan Grulich <jgrulich@redhat.com>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef NETWORKMANAGERQT_BRIDGE_DEVICE_H
8#define NETWORKMANAGERQT_BRIDGE_DEVICE_H
9
10#include "device.h"
11#include <networkmanagerqt/networkmanagerqt_export.h>
12
13namespace NetworkManager
14{
15class BridgeDevicePrivate;
16
17/**
18 * A bridge device interface
19 */
20class NETWORKMANAGERQT_EXPORT BridgeDevice : public Device
21{
22 Q_OBJECT
23 Q_PROPERTY(bool carrier READ carrier NOTIFY carrierChanged)
24 Q_PROPERTY(QString hwAddress READ hwAddress NOTIFY hwAddressChanged)
25 Q_PROPERTY(QStringList slaves READ slaves NOTIFY slavesChanged)
26
27public:
29 typedef QList<Ptr> List;
30 explicit BridgeDevice(const QString &path, QObject *parent = nullptr);
31 ~BridgeDevice() override;
32
33 Type type() const override;
34
35 /**
36 * Indicates whether the physical carrier is found
37 */
38 bool carrier() const;
39 /**
40 * Hardware address of the device
41 */
42 QString hwAddress() const;
43 /**
44 * Array of object paths representing devices which are currently slaved to this device
45 */
46 QStringList slaves() const;
47
48Q_SIGNALS:
49 /**
50 * Emitted when the carrier of this device has changed
51 */
52 void carrierChanged(bool plugged);
53 /**
54 * Emitted when the hardware address of this device has changed
55 */
56 void hwAddressChanged(const QString &address);
57 /**
58 * Emitted when the slaves of this device have changed
59 */
60 void slavesChanged(const QStringList &slaves);
61
62private:
63 Q_DECLARE_PRIVATE(BridgeDevice)
64};
65
66}
67
68#endif
A bridge device interface.
void slavesChanged(const QStringList &slaves)
Emitted when the slaves of this device have changed.
void hwAddressChanged(const QString &address)
Emitted when the hardware address of this device has changed.
void carrierChanged(bool plugged)
Emitted when the carrier of this device has changed.
This class represents a common device interface.
Definition device.h:34
Type
Device type.
Definition device.h:191
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 Fri Nov 29 2024 11:46:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.