added missing files

pull/1/head
Michael Zanetti 2013-12-30 20:15:59 +01:00
parent 9d60f7f2ba
commit bd7f0013ff
2 changed files with 43 additions and 0 deletions

View File

@ -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;
}

View File

@ -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