NetworkManagerQt

fakenetwork/wireddevice.cpp
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#include "wireddevice.h"
8
9WiredDevice::WiredDevice(QObject *parent)
10 : Device(parent)
11{
12}
13
14WiredDevice::~WiredDevice()
15{
16 QVariantMap map;
18 Q_EMIT PropertiesChanged(map);
19}
20
21bool WiredDevice::carrier() const
22{
23 return m_carrier;
24}
25
26QString WiredDevice::hwAddress() const
27{
28 return m_hwAddress;
29}
30
31QString WiredDevice::permHwAddress() const
32{
33 return m_permHwAddress;
34}
35
36uint WiredDevice::speed() const
37{
38 return m_speed;
39}
40
41void WiredDevice::setCarrier(bool carrier)
42{
43 m_carrier = carrier;
44}
45
46void WiredDevice::setHwAddress(const QString &hwAddress)
47{
48 m_hwAddress = hwAddress;
49}
50
51void WiredDevice::setPermanentHwAddress(const QString &permanentHwAddress)
52{
53 m_permHwAddress = permanentHwAddress;
54}
55
56void WiredDevice::setSpeed(uint speed)
57{
58 m_speed = speed;
59}
60
61void WiredDevice::setState(uint state)
62{
63 Device::setState(state);
64 // set speed
65}
66
67#include "moc_wireddevice.cpp"
Q_EMITQ_EMIT
QFuture< void > map(Iterator begin, Iterator end, MapFunctor &&function)
QVariant fromValue(T &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:21 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.