Add active connection UUID to device

pull/16/head
Timothy Pearson 12 years ago
parent 86febbf351
commit fe3dbd6e6f

@ -1268,6 +1268,18 @@ TDENetworkDeviceInformation TDENetworkConnectionManager_BackendNM::deviceInforma
ret.firmwareMissing = d->m_networkDeviceProxy->getFirmwareMissing(error); ret.firmwareMissing = d->m_networkDeviceProxy->getFirmwareMissing(error);
ret.deviceType = nmDeviceTypeToTDEDeviceType(d->m_networkDeviceProxy->getDeviceType(error)); ret.deviceType = nmDeviceTypeToTDEDeviceType(d->m_networkDeviceProxy->getDeviceType(error));
// FIXME wiFiInfo is not filled in // FIXME wiFiInfo is not filled in
// Get active connection UUID
TQT_DBusObjectPath connectionPath = d->m_networkDeviceProxy->getActiveConnection(error);
if (!error.isValid()) {
DBus::ActiveConnectionProxy activeConnection(NM_DBUS_SERVICE, connectionPath);
activeConnection.setConnection(TQT_DBusConnection::systemBus());
ret.activeConnectionUUID = activeConnection.getUuid(error);
if (!error.isValid()) {
ret.activeConnectionUUID = TQString::null;
}
}
ret.valid = true; ret.valid = true;
} }

@ -721,6 +721,7 @@ class TDECORE_EXPORT TDENetworkDeviceInformation
bool autoConnect; bool autoConnect;
bool firmwareMissing; bool firmwareMissing;
TDENetworkDeviceType::TDENetworkDeviceType deviceType; TDENetworkDeviceType::TDENetworkDeviceType deviceType;
TQString activeConnectionUUID;
TDENetworkWiFiDeviceInfo wiFiInfo; TDENetworkWiFiDeviceInfo wiFiInfo;
}; };

Loading…
Cancel
Save