Changeset View
Changeset View
Standalone View
Standalone View
src/vethdevice.cpp
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | |||||
43 | { | 43 | { | ||
44 | Q_D(VethDevice); | 44 | Q_D(VethDevice); | ||
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, &OrgFreedesktopNetworkManagerDeviceVethInterface::PropertiesChanged, d, &VethDevicePrivate::propertiesChanged); | | |||
56 | #endif | | |||
57 | } | 53 | } | ||
58 | 54 | | |||
59 | NetworkManager::VethDevice::~VethDevice() | 55 | NetworkManager::VethDevice::~VethDevice() | ||
60 | { | 56 | { | ||
61 | } | 57 | } | ||
62 | 58 | | |||
63 | NetworkManager::Device::Type NetworkManager::VethDevice::type() const | 59 | NetworkManager::Device::Type NetworkManager::VethDevice::type() const | ||
64 | { | 60 | { | ||
Show All 20 Lines |