added missing files
This commit is contained in:
parent
9d60f7f2ba
commit
bd7f0013ff
23
server/deviceplugins/rfswitch/rfswitch.cpp
Normal file
23
server/deviceplugins/rfswitch/rfswitch.cpp
Normal 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;
|
||||||
|
}
|
||||||
20
server/deviceplugins/rfswitch/rfswitch.h
Normal file
20
server/deviceplugins/rfswitch/rfswitch.h
Normal 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
|
||||||
Reference in New Issue
Block a user