1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__zigbeemanager/responseClasses.h

39 lines
841 B
C
Raw Permalink Normal View History

2023-04-20 13:42:00 +02:00
#ifndef RESPONSECLASSES_H
#define RESPONSECLASSES_H
#include <QByteArray>
#include <QString>
#include <QVariant>
#include <QMap>
#include <QList>
2023-04-24 21:57:35 +02:00
#include <QHash>
2023-04-20 13:42:00 +02:00
2023-04-24 21:57:35 +02:00
//void (*propertyManager)(QByteArray);
class Response
2023-04-20 13:42:00 +02:00
{
public:
QByteArray code;
QByteArray datas;
QString description;
2023-04-24 21:57:35 +02:00
void manager(Response *);
2023-04-20 13:42:00 +02:00
};
2023-04-24 21:57:35 +02:00
class ResponseProperties
2023-04-20 13:42:00 +02:00
{
public:
QByteArray code;
QByteArray datas;
QString description;
2023-04-24 21:57:35 +02:00
QMap <uint, QList<QVariant>> properties;
QMap <uint, QMap<uint,QString>> propertyDetail;
QHash <uint, void (*)(QByteArray)> propertyManagerList;
void (*manager)(Response *);
2023-04-20 13:42:00 +02:00
};
2023-04-24 21:57:35 +02:00
void infoOutput(Response *);
void defaultManager(Response *);
//void (*manager)(Response *);
void macCapabilityManager(QByteArray);
2023-04-20 13:42:00 +02:00
#endif // RESPONSECLASSES_H