nymea-zigbee/zigbee-cli/core.h

34 lines
601 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 int &channel, QObject *parent = nullptr);
private:
ZigbeeNetworkManager *m_manager = nullptr;
QTimer *m_testTimer = nullptr;
QList<TerminalCommand> m_commands;
signals:
private slots:
void onTimeout();
void onCommandReceived(const QStringList &tokens);
};
#endif // CORE_H