| 123456789101112131415161718192021222324252627282930 |
- #ifndef QTMSGQUEUE_H
- #define QTMSGQUEUE_H
- #include <QObject>
- #include <sys/msg.h>
- #include "pdu_ctrl.h"
- class qt_pdu_msgq : public QObject
- {
- Q_OBJECT
- public:
- explicit qt_pdu_msgq(QObject *parent = nullptr);
- signals:
- void newMessageReceived(int nCtrlType,const char* msg, int* nvalue,double* fvalue);
- public slots:
- void startListening();
- void stopListening();
- void sendResponse(MsgData* pMSGData);
- private:
- int msgid;
- bool running;
- };
- #endif // QTMSGQUEUE_H
|