Add basic zigbee node class
This commit is contained in:
parent
8367ec71a6
commit
47c41204ff
@ -23,6 +23,7 @@ SOURCES += \
|
||||
$$PWD/appdata.cpp \
|
||||
$$PWD/models/scriptsproxymodel.cpp \
|
||||
$$PWD/tagwatcher.cpp \
|
||||
$$PWD/zigbee/zigbeenode.cpp \
|
||||
$${PWD}/logging.cpp \
|
||||
$${PWD}/applogcontroller.cpp \
|
||||
$${PWD}/wifisetup/btwifisetup.cpp \
|
||||
@ -177,6 +178,7 @@ HEADERS += \
|
||||
$$PWD/appdata.h \
|
||||
$$PWD/models/scriptsproxymodel.h \
|
||||
$$PWD/tagwatcher.h \
|
||||
$$PWD/zigbee/zigbeenode.h \
|
||||
$${PWD}/logging.h \
|
||||
$${PWD}/applogcontroller.h \
|
||||
$${PWD}/wifisetup/btwifisetup.h \
|
||||
|
||||
13
libnymea-app/zigbee/zigbeenode.cpp
Normal file
13
libnymea-app/zigbee/zigbeenode.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include "zigbeenode.h"
|
||||
|
||||
ZigbeeNode::ZigbeeNode(QUuid networkUuid, QObject *parent) :
|
||||
QObject(parent),
|
||||
m_networkUuid(networkUuid)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QUuid ZigbeeNode::networkUuid() const
|
||||
{
|
||||
return m_networkUuid;
|
||||
}
|
||||
28
libnymea-app/zigbee/zigbeenode.h
Normal file
28
libnymea-app/zigbee/zigbeenode.h
Normal file
@ -0,0 +1,28 @@
|
||||
#ifndef ZIGBEENODE_H
|
||||
#define ZIGBEENODE_H
|
||||
|
||||
#include <QUuid>
|
||||
#include <QObject>
|
||||
|
||||
class ZigbeeNode : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QUuid networkUuid READ networkUuid CONSTANT)
|
||||
|
||||
|
||||
public:
|
||||
explicit ZigbeeNode(QUuid networkUuid, QObject *parent = nullptr);
|
||||
|
||||
QUuid networkUuid() const;
|
||||
|
||||
QString ieeeAddress() const;
|
||||
void setIeeeAddress(const QString &ieeeAddress);
|
||||
|
||||
signals:
|
||||
|
||||
private:
|
||||
QUuid m_networkUuid;
|
||||
QString m_ieeeAddress;
|
||||
};
|
||||
|
||||
#endif // ZIGBEENODE_H
|
||||
Reference in New Issue
Block a user