mirror of https://github.com/nymea/nymea.git
Merge branch 'master' of https://github.com/HiveFive/Hive
commit
7b1a9cb19d
|
|
@ -52,3 +52,13 @@ void Device::setParams(const QVariantMap ¶ms)
|
|||
{
|
||||
m_params = params;
|
||||
}
|
||||
|
||||
QList<State> Device::states() const
|
||||
{
|
||||
return m_states;
|
||||
}
|
||||
|
||||
void Device::setStates(const QList<State> &states)
|
||||
{
|
||||
m_states = states;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
#ifndef DEVICE_H
|
||||
#define DEVICE_H
|
||||
|
||||
#include "trigger.h"
|
||||
#include "action.h"
|
||||
#include "state.h"
|
||||
|
||||
#include <QObject>
|
||||
#include <QUuid>
|
||||
|
|
@ -25,6 +24,9 @@ public:
|
|||
QVariantMap params() const;
|
||||
void setParams(const QVariantMap ¶ms);
|
||||
|
||||
QList<State> states() const;
|
||||
void setStates(const QList<State> &states);
|
||||
|
||||
private:
|
||||
Device(const QUuid &pluginId, const QUuid &id, const QUuid &deviceClassId, QObject *parent = 0);
|
||||
Device(const QUuid &pluginId, const QUuid &deviceClassId, QObject *parent = 0);
|
||||
|
|
@ -35,6 +37,7 @@ private:
|
|||
QUuid m_pluginId;
|
||||
QString m_name;
|
||||
QVariantMap m_params;
|
||||
QList<State> m_states;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@
|
|||
|
||||
#include <QDebug>
|
||||
|
||||
DevicePlugin::DevicePlugin()
|
||||
DevicePlugin::DevicePlugin():
|
||||
m_deviceManager(0)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue