nymea/plugins/deviceplugins/rfswitch/rfswitch.cpp

30 lines
583 B
C++

#include "rfswitch.h"
#include "devicemanager.h"
RfSwitch::RfSwitch()
{
}
QList<DeviceClass> RfSwitch::supportedDevices() const
{
// TODO: load list from config with static uuid
QList<DeviceClass> ret;
DeviceClass deviceClassRfRemote(QUuid::createUuid());
deviceClassRfRemote.setName("RF Remote");
ret.append(deviceClassRfRemote);
DeviceClass deviceClassRfSwitch(QUuid::createUuid());
deviceClassRfSwitch.setName("RF Switch");
ret.append(deviceClassRfSwitch);
return ret;
}
QString RfSwitch::pluginName() const
{
return "RF Switch";
}