From 2d84223ad6ab6082fbb919987abdf97468efb1b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Sun, 13 Apr 2014 23:00:45 +0200 Subject: [PATCH] openweathermap search works now --- .../openweathermap/devicepluginopenweathermap.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/deviceplugins/openweathermap/devicepluginopenweathermap.cpp b/plugins/deviceplugins/openweathermap/devicepluginopenweathermap.cpp index 5453c8cb..ebd01b51 100644 --- a/plugins/deviceplugins/openweathermap/devicepluginopenweathermap.cpp +++ b/plugins/deviceplugins/openweathermap/devicepluginopenweathermap.cpp @@ -171,7 +171,7 @@ QList DevicePluginOpenweathermap::supportedDevices() const DeviceClass deviceClassOpenweathermap(pluginId(), openweathermapVendorId, DeviceClassId("985195aa-17ad-4530-88a4-cdd753d747d7")); deviceClassOpenweathermap.setName("Weather from openweathermap"); - //deviceClassOpenweathermap.setCreateMethod(DeviceClass::CreateMethodDiscovery); + deviceClassOpenweathermap.setCreateMethod(DeviceClass::CreateMethodDiscovery); // Params QVariantList params; @@ -292,7 +292,7 @@ QList DevicePluginOpenweathermap::supportedDevices() const DeviceManager::DeviceError DevicePluginOpenweathermap::discoverDevices(const DeviceClassId &deviceClassId, const QVariantMap ¶ms) const { qDebug() << "should discover divces for" << deviceClassId << params; -// m_openweaher-> + m_openweaher->search(params.value("location").toString()); return DeviceManager::DeviceErrorNoError; } @@ -313,7 +313,6 @@ PluginId DevicePluginOpenweathermap::pluginId() const void DevicePluginOpenweathermap::guhTimer() { - m_openweaher->search("Vie"); }