NetworkManagerQt
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;
29class NETWORKMANAGERQT_EXPORT ConnectionSettings
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);
94 explicit ConnectionSettings(
const ConnectionSettings::Ptr &other);
95 explicit ConnectionSettings(
const NMVariantMapMap &map);
96 virtual ~ConnectionSettings();
100 void fromMap(
const NMVariantMapMap &map);
101 void fromMeCard(
const QVariantMap &map);
103 NMVariantMapMap toMap()
const;
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);
160 Metered metered()
const;
162 void setMdns(Mdns mdns);
165 void setStableId(
const QString &stableId);
168 Setting::Ptr setting(Setting::SettingType type)
const;
169 Setting::Ptr setting(
const QString &type)
const;
171 Setting::List settings()
const;
174 ConnectionSettingsPrivate *d_ptr;
177 Q_DECLARE_PRIVATE(ConnectionSettings)
Represents collection of all connection settings.
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:19 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.