8#include "dhcp6config_p.h"
12NetworkManager::Dhcp6ConfigPrivate::Dhcp6ConfigPrivate(
const QString &path, Dhcp6Config *q)
23NetworkManager::Dhcp6ConfigPrivate::~Dhcp6ConfigPrivate()
27NetworkManager::Dhcp6Config::Dhcp6Config(
const QString &path,
QObject *owner)
28 : d_ptr(new Dhcp6ConfigPrivate(
path, this))
35 NetworkManagerPrivate::FDO_DBUS_PROPERTIES,
40 d->options = d->dhcp6Iface.options();
43NetworkManager::Dhcp6Config::~Dhcp6Config()
48QString NetworkManager::Dhcp6Config::path()
const
50 Q_D(
const Dhcp6Config);
54QVariantMap NetworkManager::Dhcp6Config::options()
const
56 Q_D(
const Dhcp6Config);
60QString NetworkManager::Dhcp6Config::optionValue(
const QString &key)
const
62 Q_D(
const Dhcp6Config);
64 if (d->options.contains(key)) {
65 value = d->options.value(key).toString();
70void NetworkManager::Dhcp6ConfigPrivate::dbusPropertiesChanged(
const QString &interfaceName,
71 const QVariantMap &properties,
74 Q_UNUSED(invalidatedProperties);
75 if (interfaceName ==
QLatin1String(
"org.freedesktop.NetworkManager.DHCP6Config")) {
76 dhcp6PropertiesChanged(properties);
80void NetworkManager::Dhcp6ConfigPrivate::dhcp6PropertiesChanged(
const QVariantMap &properties)
84 QVariantMap::const_iterator it =
properties.constBegin();
86 const QString property = it.key();
88 options = it.value().toMap();
89 Q_EMIT q->optionsChanged(options);
91 qCWarning(NMQT) << Q_FUNC_INFO <<
"Unhandled property" << property;
97#include "moc_dhcp6config.cpp"
98#include "moc_dhcp6config_p.cpp"
QString path(const QString &relativePath)
bool connect(const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot)
QDBusConnection sessionBus()
QDBusConnection systemBus()