convert the remaining param lists
This commit is contained in:
parent
913f08edd8
commit
431322199b
@ -98,3 +98,9 @@ void ParamList::setParamValue(const QString ¶mName, const QVariant &value)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ParamList ParamList::operator<<(const Param ¶m)
|
||||
{
|
||||
this->append(param);
|
||||
return *this;
|
||||
}
|
||||
|
||||
@ -53,12 +53,4 @@ public:
|
||||
};
|
||||
QDebug operator<<(QDebug dbg, const ParamList ¶ms);
|
||||
|
||||
class ParamList: public QList<Param>
|
||||
{
|
||||
public:
|
||||
bool hasParam(const QString ¶mName) const;
|
||||
QVariant paramValue(const QString ¶mName) const;
|
||||
void setParamValue(const QString ¶mName, const QVariant &value);
|
||||
};
|
||||
|
||||
#endif // PARAM_H
|
||||
|
||||
@ -239,17 +239,6 @@ QPair<DeviceManager::DeviceSetupStatus, QString> DevicePluginPhilipsHue::setupDe
|
||||
return reportDeviceSetup(DeviceManager::DeviceSetupStatusAsync);
|
||||
}
|
||||
|
||||
void DevicePluginPhilipsHue::deviceRemoved(Device *device)
|
||||
{
|
||||
if (!m_lights.values().contains(device)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Light *light = m_lights.key(device);
|
||||
m_lights.remove(light);
|
||||
m_unconfiguredLights.append(light);
|
||||
}
|
||||
|
||||
QPair<DeviceManager::DeviceSetupStatus, QString> DevicePluginPhilipsHue::confirmPairing(const QUuid &pairingTransactionId, const DeviceClassId &deviceClassId, const ParamList ¶ms)
|
||||
{
|
||||
Param ipParam;
|
||||
|
||||
Reference in New Issue
Block a user