From d81a003696d09e4d498775b2b7d3b2002bb2dbb0 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Tue, 31 Dec 2013 02:57:52 +0100 Subject: [PATCH] fix bug in supporteddevices list --- libhive/devicemanager.cpp | 1 + plugins/deviceplugins/rfremotemumbi/rfremotemumbi.cpp | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libhive/devicemanager.cpp b/libhive/devicemanager.cpp index 56623b01..0c3ee210 100644 --- a/libhive/devicemanager.cpp +++ b/libhive/devicemanager.cpp @@ -40,6 +40,7 @@ DeviceManager::DeviceError DeviceManager::addConfiguredDevice(const QUuid &devic qWarning() << "Missing parameter when creating device:" << param.toMap().value("name").toString(); return DeviceErrorMissingParameter; } + // TODO: Check if parameter type matches } Device *device = new Device(deviceClassId, this); diff --git a/plugins/deviceplugins/rfremotemumbi/rfremotemumbi.cpp b/plugins/deviceplugins/rfremotemumbi/rfremotemumbi.cpp index 6aea37ef..a06bbee0 100644 --- a/plugins/deviceplugins/rfremotemumbi/rfremotemumbi.cpp +++ b/plugins/deviceplugins/rfremotemumbi/rfremotemumbi.cpp @@ -28,14 +28,18 @@ QList RfRemoteMumbi::supportedDevices() const QVariantList deviceParams; QVariantMap channelParam; - channelParam.insert("name", "channel"); - channelParam.insert("type", "string"); + channelParam.insert("name", "channel1"); + channelParam.insert("type", "bool"); + deviceParams.append(channelParam); channelParam.insert("name", "channel2"); channelParam.insert("type", "bool"); + deviceParams.append(channelParam); channelParam.insert("name", "channel3"); channelParam.insert("type", "bool"); + deviceParams.append(channelParam); channelParam.insert("name", "channel4"); channelParam.insert("type", "bool"); + deviceParams.append(channelParam); channelParam.insert("name", "channel5"); channelParam.insert("type", "bool"); deviceParams.append(channelParam);