41 lines
541 B
C++
41 lines
541 B
C++
#ifndef UNITMONITOR_H
|
|
#define UNITMONITOR_H
|
|
|
|
#include <QObject>
|
|
|
|
class UnitMonitor: public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit UnitMonitor(QObject *parent = 0);
|
|
|
|
enum deviceID
|
|
{
|
|
u_error=-1,
|
|
u_none=0,
|
|
u_psm,
|
|
u_pps,
|
|
u_lcu
|
|
};
|
|
|
|
int checkMessage(const QByteArray& data, int* index=0);
|
|
|
|
signals:
|
|
//void psmCommand(const QString& cmd);
|
|
|
|
public slots:
|
|
//void pmsGo(bool go);
|
|
|
|
|
|
public:
|
|
QByteArray pendingMessage;
|
|
QByteArray accumulator;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // UNITMONITOR_H
|