mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
28 lines
530 B
C++
Executable File
28 lines
530 B
C++
Executable File
#ifndef QQTSERIALPORT_H
|
|
#define QQTSERIALPORT_H
|
|
|
|
#include <QSerialPort>
|
|
#include "qqtdefine.h"
|
|
#include "qqtprotocol.h"
|
|
#include "qqtserialmessage.h"
|
|
|
|
class QQTSerialPort : public QSerialPort
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit QQTSerialPort(QObject *parent = 0);
|
|
~QQTSerialPort();
|
|
|
|
void installProtocol(QQTProtocol* stack);
|
|
void uninstallProtocol(QQTProtocol* stack);
|
|
QQTProtocol* installedProtocol();
|
|
|
|
private slots:
|
|
void readyReadData();
|
|
|
|
private:
|
|
QQTProtocol* m_protocol;
|
|
};
|
|
|
|
#endif // QQTSERIALPORT_H
|