Changeset View
Changeset View
Standalone View
Standalone View
src/dhcp4config.cpp
Show All 38 Lines | |||||
39 | { | 39 | { | ||
40 | } | 40 | } | ||
41 | 41 | | |||
42 | NetworkManager::Dhcp4Config::Dhcp4Config(const QString &path, QObject *owner) | 42 | NetworkManager::Dhcp4Config::Dhcp4Config(const QString &path, QObject *owner) | ||
43 | : d_ptr(new Dhcp4ConfigPrivate(path, this)) | 43 | : d_ptr(new Dhcp4ConfigPrivate(path, this)) | ||
44 | { | 44 | { | ||
45 | Q_D(Dhcp4Config); | 45 | Q_D(Dhcp4Config); | ||
46 | Q_UNUSED(owner); | 46 | Q_UNUSED(owner); | ||
47 | #if NM_CHECK_VERSION(1, 4, 0) | 47 | | ||
48 | QDBusConnection::systemBus().connect(NetworkManagerPrivate::DBUS_SERVICE, d->myPath, NetworkManagerPrivate::FDO_DBUS_PROPERTIES, | 48 | QDBusConnection::systemBus().connect(NetworkManagerPrivate::DBUS_SERVICE, d->myPath, NetworkManagerPrivate::FDO_DBUS_PROPERTIES, | ||
49 | QLatin1String("PropertiesChanged"), d, SLOT(dbusPropertiesChanged(QString,QVariantMap,QStringList))); | 49 | QLatin1String("PropertiesChanged"), d, SLOT(dbusPropertiesChanged(QString,QVariantMap,QStringList))); | ||
50 | #else | | |||
51 | connect(&d->dhcp4Iface, &OrgFreedesktopNetworkManagerDHCP4ConfigInterface::PropertiesChanged, d, &Dhcp4ConfigPrivate::dhcp4PropertiesChanged); | | |||
52 | #endif | | |||
53 | d->options = d->dhcp4Iface.options(); | 50 | d->options = d->dhcp4Iface.options(); | ||
54 | } | 51 | } | ||
55 | 52 | | |||
56 | NetworkManager::Dhcp4Config::~Dhcp4Config() | 53 | NetworkManager::Dhcp4Config::~Dhcp4Config() | ||
57 | { | 54 | { | ||
58 | delete d_ptr; | 55 | delete d_ptr; | ||
59 | } | 56 | } | ||
60 | 57 | | |||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |