1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/src/network/qqtserialport.h

28 lines
532 B
C
Raw Normal View History

2016-12-29 16:49:18 +08:00
#ifndef QQTSERIALPORT_H
#define QQTSERIALPORT_H
#include <QSerialPort>
2017-09-05 18:07:05 +08:00
#include "qqtcore.h"
2016-12-29 16:49:18 +08:00
#include "qqtprotocol.h"
2017-09-17 08:46:57 +08:00
#include <qqt.h>
2016-12-29 16:49:18 +08:00
2017-09-17 08:46:57 +08:00
class QQTSHARED_EXPORT QQTSerialPort : public QSerialPort
2016-12-29 16:49:18 +08:00
{
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