fix networkmanager device type
This commit is contained in:
parent
28f6263ec0
commit
feed7ac396
6
debian/control
vendored
6
debian/control
vendored
@ -58,7 +58,9 @@ Depends: libqt5network5,
|
||||
libguh1 (= ${binary:Version}),
|
||||
${shlibs:Depends},
|
||||
${misc:Depends}
|
||||
Recommends: guh-webinterface, guh-cli
|
||||
Recommends: guh-webinterface,
|
||||
guh-cli,
|
||||
network-manager
|
||||
Description: An open source IoT server - daemon
|
||||
The guh daemon is a plugin based IoT (Internet of Things) server. The
|
||||
server works like a translator for devices, things and services and
|
||||
@ -120,7 +122,7 @@ Architecture: any
|
||||
Depends: guh (= ${binary:Version}),
|
||||
${shlibs:Depends},
|
||||
${misc:Depends}
|
||||
Description:Tests and mock plugin for the guh daemon - tests
|
||||
Description: Tests and mock plugin for the guh daemon - tests
|
||||
The guh daemon is a plugin based IoT (Internet of Things) server. The
|
||||
server works like a translator for devices, things and services and
|
||||
allows them to interact.
|
||||
|
||||
@ -57,7 +57,7 @@ NetworkDevice::NetworkDevice(const QDBusObjectPath &objectPath, QObject *parent)
|
||||
m_autoconnect = m_networkDeviceInterface->property("Autoconnect").toBool();
|
||||
|
||||
m_deviceState = NetworkDeviceState(m_networkDeviceInterface->property("State").toUInt());
|
||||
m_deviceType = NetworkDeviceType(m_networkDeviceInterface->property("NetworkDeviceType").toUInt());
|
||||
m_deviceType = NetworkDeviceType(m_networkDeviceInterface->property("DeviceType").toUInt());
|
||||
|
||||
m_activeConnection = qdbus_cast<QDBusObjectPath>(m_networkDeviceInterface->property("ActiveConnection"));
|
||||
m_ip4Config = qdbus_cast<QDBusObjectPath>(m_networkDeviceInterface->property("Ip4Config"));
|
||||
|
||||
@ -317,7 +317,7 @@ void NetworkManager::onDeviceAdded(const QDBusObjectPath &deviceObjectPath)
|
||||
}
|
||||
|
||||
// Create object
|
||||
NetworkDevice::NetworkDeviceType deviceType = NetworkDevice::NetworkDeviceType(networkDeviceInterface.property("NetworkDeviceType").toUInt());
|
||||
NetworkDevice::NetworkDeviceType deviceType = NetworkDevice::NetworkDeviceType(networkDeviceInterface.property("DeviceType").toUInt());
|
||||
switch (deviceType) {
|
||||
case NetworkDevice::NetworkDeviceTypeWifi: {
|
||||
WirelessNetworkDevice *wirelessNetworkDevice = new WirelessNetworkDevice(deviceObjectPath, this);
|
||||
|
||||
Reference in New Issue
Block a user