NetworkManagerQt

fakenetwork/wireddevice.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_FAKE_NETWORK_WIRED_DEVICE_H
8#define NETWORKMANAGERQT_FAKE_NETWORK_WIRED_DEVICE_H
9
10#include <QObject>
11
12#include "../device.h"
13#include "../generictypes.h"
14
15#include "device.h"
16
17class WiredDevice : public Device
18{
20 Q_CLASSINFO("D-Bus Interface", "org.kde.fakenetwork.Device.Wired")
21public:
22 explicit WiredDevice(QObject *parent = nullptr);
23 ~WiredDevice() override;
24
25 Q_PROPERTY(bool Carrier READ carrier)
26 Q_PROPERTY(QString HwAddress READ hwAddress)
27 Q_PROPERTY(QString PermHwAddress READ permHwAddress)
28 Q_PROPERTY(uint Speed READ speed)
29
30 bool carrier() const;
31 QString hwAddress() const;
32 QString permHwAddress() const;
33 uint speed() const;
34
35 /* Not part of DBus interface */
36 void setCarrier(bool carrier);
37 void setHwAddress(const QString &hwAddress);
38 void setPermanentHwAddress(const QString &permanentHwAddress);
39 void setSpeed(uint speed);
40 void setState(uint state) override;
41
43 Q_SCRIPTABLE void PropertiesChanged(const QVariantMap &properties);
44
45private:
46 bool m_carrier;
47 QString m_hwAddress;
48 QString m_permHwAddress;
49 uint m_speed;
50};
51
52#endif
Q_CLASSINFO(Name, Value)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:46:16 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.