NetworkManagerQt
activeconnection.cpp
20NetworkManager::ActiveConnectionPrivate::ActiveConnectionPrivate(const QString &dbusPath, ActiveConnection *q)
38NetworkManager::ActiveConnection::State NetworkManager::ActiveConnectionPrivate::convertActiveConnectionState(uint state)
43NetworkManager::ActiveConnection::Reason NetworkManager::ActiveConnectionPrivate::convertActiveConnectionReason(uint reason)
70 connect(&d->iface, &OrgFreedesktopNetworkManagerConnectionActiveInterface::PropertiesChanged, d, &ActiveConnectionPrivate::propertiesChanged);
71 connect(&d->iface, &OrgFreedesktopNetworkManagerConnectionActiveInterface::StateChanged, d, &ActiveConnectionPrivate::stateChanged);
75 QVariantMap initialProperties = NetworkManagerPrivate::retrieveInitialProperties(d->iface.staticInterfaceName(), path);
103 connect(&d->iface, &OrgFreedesktopNetworkManagerConnectionActiveInterface::PropertiesChanged, d, &ActiveConnectionPrivate::propertiesChanged);
104 connect(&d->iface, &OrgFreedesktopNetworkManagerConnectionActiveInterface::StateChanged, d, &ActiveConnectionPrivate::stateChanged);
147 d->dhcp4Config = NetworkManager::Dhcp4Config::Ptr(new Dhcp4Config(d->dhcp4ConfigPath), &QObject::deleteLater);
156 d->dhcp6Config = NetworkManager::Dhcp6Config::Ptr(new Dhcp6Config(d->dhcp6ConfigPath), &QObject::deleteLater);
185NetworkManager::ConnectionSettings::ConnectionType NetworkManager::ActiveConnection::type() const
227void NetworkManager::ActiveConnectionPrivate::dbusPropertiesChanged(const QString &interfaceName,
253 Q_EMIT q->stateChangedReason(convertActiveConnectionState(state), convertActiveConnectionReason(reason));
256void NetworkManager::ActiveConnectionPrivate::propertyChanged(const QString &property, const QVariant &value)
266 const QString tmpType = connection->settings()->typeAsString(connection->settings()->connectionType());
303 if (ip4ConfigObjectPathTmp.path().isNull() || ip4ConfigObjectPathTmp.path() == QLatin1String("/")) {
312 if (ip6ConfigObjectPathTmp.path().isNull() || ip6ConfigObjectPathTmp.path() == QLatin1String("/")) {
bool isValid() const
Returns true is this object holds a valid connection.
Definition activeconnection.cpp:113
NetworkManager::ConnectionSettings::ConnectionType type() const
The type of the connection.
Definition activeconnection.cpp:185
NetworkManager::ActiveConnection::State state() const
The current state of the connection.
Definition activeconnection.cpp:203
QString specificObject() const
The path of the specific object associated with the connection.
Definition activeconnection.cpp:197
Dhcp4Config::Ptr dhcp4Config() const
The Dhcp4Config object describing the DHCP options returned by the DHCP server (assuming the connecti...
Definition activeconnection.cpp:143
Connection::Ptr connection() const
Returns a valid NetworkManager::Connection object.
Definition activeconnection.cpp:119
bool default4() const
Whether this connection has the default IPv4 route.
Definition activeconnection.cpp:131
void stateChanged(NetworkManager::ActiveConnection::State state)
The state changed.
QString master() const
Returns the uni of master device if the connection is a slave.
Definition activeconnection.cpp:191
Dhcp6Config::Ptr dhcp6Config() const
The Dhcp6Config object describing the DHCP options returned by the DHCP server (assuming the connecti...
Definition activeconnection.cpp:152
QStringList devices() const
List of devices UNIs which are part of this connection.
Definition activeconnection.cpp:221
IpConfig ipV4Config() const
The Ip4Config object describing the configuration of the connection.
Definition activeconnection.cpp:161
ActiveConnection(const QString &path, QObject *parent=nullptr)
Creates a new ActiveConnection object.
Definition activeconnection.cpp:48
bool default6() const
Whether this connection has the default IPv6 route.
Definition activeconnection.cpp:137
IpConfig ipV6Config() const
The Ip6Config object describing the configuration of the connection.
Definition activeconnection.cpp:170
Type type(const QSqlDatabase &db)
QString path(const QString &relativePath)
KGuiItem properties()
NETWORKMANAGERQT_EXPORT NetworkManager::Connection::Ptr findConnection(const QString &path)
Retrieves the connection for the given path, returns null if not found.
Definition settings.cpp:225
bool connect(const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot)
QDBusConnection sessionBus()
QDBusConnection systemBus()
QString path() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void deleteLater()
bool isNull() const const
bool toBool() const const
QString toString() const const
uint toUInt(bool *ok) const const
Q_D(Todo)
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
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.