Changeset View
Changeset View
Standalone View
Standalone View
src/wireddevice.cpp
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 47 | { | |||
---|---|---|---|---|---|
49 | 49 | | |||
50 | // Get all WiredDevices's properties at once | 50 | // Get all WiredDevices's properties at once | ||
51 | QVariantMap initialProperties = NetworkManagerPrivate::retrieveInitialProperties(d->wiredIface.staticInterfaceName(), path); | 51 | QVariantMap initialProperties = NetworkManagerPrivate::retrieveInitialProperties(d->wiredIface.staticInterfaceName(), path); | ||
52 | if (!initialProperties.isEmpty()) { | 52 | if (!initialProperties.isEmpty()) { | ||
53 | d->propertiesChanged(initialProperties); | 53 | d->propertiesChanged(initialProperties); | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | #ifndef NMQT_STATIC | 56 | #ifndef NMQT_STATIC | ||
57 | #if NM_CHECK_VERSION(1, 4, 0) | | |||
58 | QDBusConnection::systemBus().connect(NetworkManagerPrivate::DBUS_SERVICE, d->uni, NetworkManagerPrivate::FDO_DBUS_PROPERTIES, | 57 | QDBusConnection::systemBus().connect(NetworkManagerPrivate::DBUS_SERVICE, d->uni, NetworkManagerPrivate::FDO_DBUS_PROPERTIES, | ||
59 | QLatin1String("PropertiesChanged"), d, SLOT(dbusPropertiesChanged(QString,QVariantMap,QStringList))); | 58 | QLatin1String("PropertiesChanged"), d, SLOT(dbusPropertiesChanged(QString,QVariantMap,QStringList))); | ||
60 | #else | | |||
61 | connect(&d->wiredIface, &OrgFreedesktopNetworkManagerDeviceWiredInterface::PropertiesChanged, d, &WiredDevicePrivate::propertiesChanged); | | |||
62 | #endif | | |||
63 | #endif | 59 | #endif | ||
64 | 60 | | |||
65 | #ifdef NMQT_STATIC | 61 | #ifdef NMQT_STATIC | ||
66 | connect(&d->wiredIface, &OrgFreedesktopNetworkManagerDeviceWiredInterface::PropertiesChanged, d, &WiredDevicePrivate::propertiesChanged); | 62 | connect(&d->wiredIface, &OrgFreedesktopNetworkManagerDeviceWiredInterface::PropertiesChanged, d, &WiredDevicePrivate::propertiesChanged); | ||
67 | #endif | 63 | #endif | ||
68 | } | 64 | } | ||
69 | 65 | | |||
70 | NetworkManager::WiredDevice::~WiredDevice() | 66 | NetworkManager::WiredDevice::~WiredDevice() | ||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |