Changeset View
Changeset View
Standalone View
Standalone View
src/gredevice.cpp
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | { | 42 | { | ||
43 | Q_D(GreDevice); | 43 | Q_D(GreDevice); | ||
44 | 44 | | |||
45 | QVariantMap initialProperties = NetworkManagerPrivate::retrieveInitialProperties(d->iface.staticInterfaceName(), path); | 45 | QVariantMap initialProperties = NetworkManagerPrivate::retrieveInitialProperties(d->iface.staticInterfaceName(), path); | ||
46 | if (!initialProperties.isEmpty()) { | 46 | if (!initialProperties.isEmpty()) { | ||
47 | d->propertiesChanged(initialProperties); | 47 | d->propertiesChanged(initialProperties); | ||
48 | } | 48 | } | ||
49 | 49 | | |||
50 | #if NM_CHECK_VERSION(1, 4, 0) | | |||
51 | QDBusConnection::systemBus().connect(NetworkManagerPrivate::DBUS_SERVICE, d->uni, NetworkManagerPrivate::FDO_DBUS_PROPERTIES, | 50 | QDBusConnection::systemBus().connect(NetworkManagerPrivate::DBUS_SERVICE, d->uni, NetworkManagerPrivate::FDO_DBUS_PROPERTIES, | ||
52 | QLatin1String("PropertiesChanged"), d, SLOT(dbusPropertiesChanged(QString,QVariantMap,QStringList))); | 51 | QLatin1String("PropertiesChanged"), d, SLOT(dbusPropertiesChanged(QString,QVariantMap,QStringList))); | ||
53 | #else | | |||
54 | QObject::connect(&d->iface, &OrgFreedesktopNetworkManagerDeviceGreInterface::PropertiesChanged, d, &GreDevicePrivate::propertiesChanged); | | |||
55 | #endif | | |||
56 | } | 52 | } | ||
57 | 53 | | |||
58 | NetworkManager::GreDevice::~GreDevice() | 54 | NetworkManager::GreDevice::~GreDevice() | ||
59 | { | 55 | { | ||
60 | } | 56 | } | ||
61 | 57 | | |||
62 | NetworkManager::Device::Type NetworkManager::GreDevice::type() const | 58 | NetworkManager::Device::Type NetworkManager::GreDevice::type() const | ||
63 | { | 59 | { | ||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |