NetworkManagerQt
7#ifndef NETWORKMANAGERQT_WIRED_SETTING_H
8#define NETWORKMANAGERQT_WIRED_SETTING_H
11#include <networkmanagerqt/networkmanagerqt_export.h>
17class WiredSettingPrivate;
22class NETWORKMANAGERQT_EXPORT WiredSetting :
public Setting
36 UnknownDuplexType = 0,
49 WakeOnLanPhy = 1 << 1,
50 WakeOnLanUnicast = 1 << 2,
51 WakeOnLanMulticast = 1 << 3,
52 WakeOnLanBroadcast = 1 << 4,
53 WakeOnLanArp = 1 << 5,
54 WakeOnLanMagic = 1 << 6,
56 WakeOnLanDefault = 1 << 0,
57 WakeOnLanIgnore = 1 << 15,
59 Q_DECLARE_FLAGS(WakeOnLanFlags, WakeOnLanFlag)
60 Q_FLAGS(WakeOnLanFlag)
63 explicit WiredSetting(
const Ptr &other);
64 ~WiredSetting()
override;
68 void setPort(PortType port);
69 PortType port()
const;
71 void setSpeed(quint32 speed);
72 quint32 speed()
const;
74 void setDuplexType(DuplexType type);
75 DuplexType duplexType()
const;
77 void setAutoNegotiate(
bool autoNegotiate);
78 bool autoNegotiate()
const;
80 QString generateMacAddressMask()
const;
81 void setGenerateMacAddressMask(
const QString &mask);
86 void setClonedMacAddress(
const QByteArray &address);
89 void setMacAddressBlacklist(
const QStringList &list);
92 void setMtu(quint32 mtu);
95 void setS390Subchannels(
const QStringList &channels);
98 void setS390NetType(S390Nettype type);
99 S390Nettype s390NetType()
const;
104 WakeOnLanFlags wakeOnLan()
const;
105 void setWakeOnLan(WakeOnLanFlags wol);
107 QString wakeOnLanPassword()
const;
108 void setWakeOnLanPassword(
const QString &password);
110 QString assignedMacAddress()
const;
111 void setAssignedMacAddress(
const QString &assignedMacAddress);
113 void fromMap(
const QVariantMap &setting)
override;
115 QVariantMap
toMap()
const override;
118 WiredSettingPrivate *d_ptr;
121 Q_DECLARE_PRIVATE(WiredSetting)
126Q_DECLARE_OPERATORS_FOR_FLAGS(WiredSetting::WakeOnLanFlags)
Represents wired setting.
QString name() const override
Must be reimplemented, default implementationd does nothing.
QVariantMap toMap() const override
Must be reimplemented, default implementationd does nothing.
void fromMap(const QVariantMap &setting) override
Must be reimplemented, default implementation does nothing.
This class allows querying the underlying system to discover the available network interfaces and rea...
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:20 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.