Changeset View
Changeset View
Standalone View
Standalone View
src/accesspoint.cpp
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | 66 | { | |||
---|---|---|---|---|---|
67 | Q_D(AccessPoint); | 67 | Q_D(AccessPoint); | ||
68 | 68 | | |||
69 | // Get all AccessPoint's properties at once | 69 | // Get all AccessPoint's properties at once | ||
70 | QVariantMap initialProperties = NetworkManagerPrivate::retrieveInitialProperties(d->iface.staticInterfaceName(), path); | 70 | QVariantMap initialProperties = NetworkManagerPrivate::retrieveInitialProperties(d->iface.staticInterfaceName(), path); | ||
71 | if (!initialProperties.isEmpty()) { | 71 | if (!initialProperties.isEmpty()) { | ||
72 | d->propertiesChanged(initialProperties); | 72 | d->propertiesChanged(initialProperties); | ||
73 | } | 73 | } | ||
74 | 74 | | |||
75 | #if NM_CHECK_VERSION(1, 4, 0) | | |||
76 | QDBusConnection::systemBus().connect(NetworkManagerPrivate::DBUS_SERVICE, d->uni, NetworkManagerPrivate::FDO_DBUS_PROPERTIES, | 75 | QDBusConnection::systemBus().connect(NetworkManagerPrivate::DBUS_SERVICE, d->uni, NetworkManagerPrivate::FDO_DBUS_PROPERTIES, | ||
77 | QLatin1String("PropertiesChanged"), d, SLOT(dbusPropertiesChanged(QString,QVariantMap,QStringList))); | 76 | QLatin1String("PropertiesChanged"), d, SLOT(dbusPropertiesChanged(QString,QVariantMap,QStringList))); | ||
78 | #else | | |||
79 | QObject::connect(&d->iface, &OrgFreedesktopNetworkManagerAccessPointInterface::PropertiesChanged, d, &AccessPointPrivate::propertiesChanged); | | |||
80 | #endif | | |||
81 | } | 77 | } | ||
82 | 78 | | |||
83 | NetworkManager::AccessPoint::~AccessPoint() | 79 | NetworkManager::AccessPoint::~AccessPoint() | ||
84 | { | 80 | { | ||
85 | Q_D(AccessPoint); | 81 | Q_D(AccessPoint); | ||
86 | delete d; | 82 | delete d; | ||
87 | } | 83 | } | ||
88 | 84 | | |||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |