8#ifndef NETWORKMANAGERQT_CONNECTION_SETTINGS_H
9#define NETWORKMANAGERQT_CONNECTION_SETTINGS_H
12#include <networkmanagerqt/networkmanagerqt_export.h>
15#include <libnm/NetworkManager.h>
16#define signals Q_SIGNALS
24class ConnectionSettingsPrivate;
31 Q_ENUMS(ConnectionType)
59 enum AutoconnectSlaves {
61 DoNotConnectSlaves = 0,
85 MdnsResolveAndRespond = 2
88 static ConnectionType typeFromString(
const QString &typeString);
89 static QString typeAsString(
const ConnectionType type);
93 explicit ConnectionSettings(ConnectionType type, NMBluetoothCapabilities bt_cap = NM_BT_CAPABILITY_DUN);
101 void fromMeCard(
const QVariantMap &map);
108 void setUuid(
const QString &uuid);
111 void setInterfaceName(
const QString &interfaceName);
114 void setConnectionType(ConnectionType type, NMBluetoothCapabilities bt_cap = NM_BT_CAPABILITY_DUN);
115 ConnectionType connectionType()
const;
121 void setAutoconnect(
bool autoconnect);
122 bool autoconnect()
const;
124 void setAutoconnectPriority(
int priority);
125 int autoconnectPriority()
const;
127 void setTimestamp(
const QDateTime ×tamp);
130 void setReadOnly(
bool readonly);
131 bool readOnly()
const;
133 void setZone(
const QString &zone);
136 bool isSlave()
const;
138 void setMaster(
const QString &master);
141 void setSlaveType(
const QString &type);
144 void setSecondaries(
const QStringList &secondaries);
147 void setGatewayPingTimeout(quint32 timeout);
148 quint32 gatewayPingTimeout()
const;
150 void setAutoconnectRetries(
int retries);
151 int autoconnectRetries()
const;
153 void setAutoconnectSlaves(AutoconnectSlaves autoconnectSlaves);
154 AutoconnectSlaves autoconnectSlaves()
const;
156 void setLldp(Lldp lldp);
159 void setMetered(Metered
metered);
162 void setMdns(Mdns mdns);
165 void setStableId(
const QString &stableId);
174 ConnectionSettingsPrivate *d_ptr;
Represents collection of all connection settings.
This class allows querying the underlying system to discover the available network interfaces and rea...
NETWORKMANAGERQT_EXPORT NetworkManager::Device::MeteredStatus metered()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:13 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.