1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/qqtserialport.h
tianduanrui 3f857669fc init
2016-12-29 16:49:18 +08:00

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