NetworkManagerQt

genericdevice.h
1/*
2 SPDX-FileCopyrightText: 2014 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_GENERICDEVICE_H
8#define NETWORKMANAGERQT_GENERICDEVICE_H
9
10#include <networkmanagerqt/networkmanagerqt_export.h>
11
12#include "device.h"
13
14namespace NetworkManager
15{
16class GenericDevicePrivate;
17
18/**
19 * A generic device interface
20 */
21class NETWORKMANAGERQT_EXPORT GenericDevice : public Device
22{
23 Q_OBJECT
24 Q_PROPERTY(QString hardwareAddress READ hardwareAddress)
25 Q_PROPERTY(QString typeDescription READ typeDescription)
26
27public:
29 typedef QList<Ptr> List;
30 explicit GenericDevice(const QString &path, QObject *parent = nullptr);
31 ~GenericDevice() override;
32 /**
33 * Return the type
34 */
35 Type type() const override;
36 /**
37 * Active hardware address of the device
38 */
39 QString hardwareAddress() const;
40 /**
41 * A (non-localized) description of the interface type, if known.
42 */
43 QString typeDescription() const;
44
45Q_SIGNALS:
46 /**
47 * Emitted when the hardware address of this device has changed
48 */
49 void hardwareAddressChanged(const QString &hwAddress);
50 /**
51 * Emitted when the type description this device has changed
52 */
53 void permanentHardwareAddressChanged(const QString &permHwAddress);
54
55private:
56 Q_DECLARE_PRIVATE(GenericDevice)
57};
58
59}
60
61#endif // NETWORKMANAGERQT_GENERICDEVICE_H
This class represents a common device interface.
Definition device.h:34
Type
Device type.
Definition device.h:191
A generic device interface.
void permanentHardwareAddressChanged(const QString &permHwAddress)
Emitted when the type description this device has changed.
void hardwareAddressChanged(const QString &hwAddress)
Emitted when the hardware address of this device has changed.
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.