mirror of https://github.com/nymea/nymea.git
added missing files
parent
9d60f7f2ba
commit
bd7f0013ff
|
|
@ -0,0 +1,23 @@
|
|||
#include "rfswitch.h"
|
||||
|
||||
RfSwitch::RfSwitch(QObject *parent) :
|
||||
DevicePlugin(parent)
|
||||
{
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef RFSWITCH_H
|
||||
#define RFSWITCH_H
|
||||
|
||||
#include "deviceplugin.h"
|
||||
|
||||
class RfSwitch : public DevicePlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit RfSwitch(QObject *parent = 0);
|
||||
|
||||
QList<DeviceClass> supportedDevices() const override;
|
||||
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
||||
};
|
||||
|
||||
#endif // RFSWITCH_H
|
||||
Loading…
Reference in New Issue