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