update plugin configuration
This commit is contained in:
parent
a40fc2b7af
commit
81629ec36d
@ -82,19 +82,10 @@ DeviceManager::HardwareResources DevicePluginAwattar::requiredHardware() const
|
|||||||
return DeviceManager::HardwareResourceNetworkManager | DeviceManager::HardwareResourceTimer;
|
return DeviceManager::HardwareResourceNetworkManager | DeviceManager::HardwareResourceTimer;
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<ParamType> DevicePluginAwattar::configurationDescription() const
|
|
||||||
{
|
|
||||||
QList<ParamType> params;
|
|
||||||
ParamType mockParam1("RPL Router address", QVariant::String, "");
|
|
||||||
params.append(mockParam1);
|
|
||||||
|
|
||||||
return params;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeviceManager::DeviceSetupStatus DevicePluginAwattar::setupDevice(Device *device)
|
DeviceManager::DeviceSetupStatus DevicePluginAwattar::setupDevice(Device *device)
|
||||||
{
|
{
|
||||||
QString token = device->paramValue("token").toString();
|
QString token = device->paramValue("token").toString();
|
||||||
qCDebug(dcAwattar) << "Setup device with token" << token;
|
qCDebug(dcAwattar) << "Setup device" << device->params();
|
||||||
|
|
||||||
QNetworkReply *reply = requestPriceData(token);
|
QNetworkReply *reply = requestPriceData(token);
|
||||||
m_asyncSetup.insert(reply, device);
|
m_asyncSetup.insert(reply, device);
|
||||||
|
|||||||
@ -37,10 +37,8 @@ public:
|
|||||||
explicit DevicePluginAwattar();
|
explicit DevicePluginAwattar();
|
||||||
|
|
||||||
DeviceManager::HardwareResources requiredHardware() const override;
|
DeviceManager::HardwareResources requiredHardware() const override;
|
||||||
QList<ParamType> configurationDescription() const override;
|
|
||||||
|
|
||||||
|
|
||||||
DeviceManager::DeviceSetupStatus setupDevice(Device *device) override;
|
DeviceManager::DeviceSetupStatus setupDevice(Device *device) override;
|
||||||
|
|
||||||
void deviceRemoved(Device *device) override;
|
void deviceRemoved(Device *device) override;
|
||||||
void networkManagerReplyReady(QNetworkReply *reply) override;
|
void networkManagerReplyReady(QNetworkReply *reply) override;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user