37 lines
725 B
C++
37 lines
725 B
C++
#ifndef CORE_H
|
|
#define CORE_H
|
|
|
|
#include <QObject>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
#include <readline/readline.h>
|
|
|
|
#include "terminalcommander.h"
|
|
#include "zigbeenetworkmanager.h"
|
|
|
|
class Core : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit Core(const QString &serialPort, qint32 baudrate, const int &channel, QObject *parent = nullptr);
|
|
|
|
private:
|
|
ZigbeeNetwork *m_network = nullptr;
|
|
QList<TerminalCommand> m_commands;
|
|
QString m_serialPort;
|
|
qint32 m_baudRate;
|
|
quint32 m_channelMask = 0;
|
|
|
|
ZigbeeNode *findNode(const QString &shortAddressString);
|
|
|
|
signals:
|
|
|
|
private slots:
|
|
//void onCommandReceived(const QStringList &tokens);
|
|
|
|
};
|
|
|
|
#endif // CORE_H
|