?? portlistener.h
字號:
/**
* @file PortListener.h
* @brief Port Listener.
* @see PortListener
*/
#ifndef PORTLISTENER_H_
#define PORTLISTENER_H_
#include <QObject>
class QextSerialPort;
/**
* Port Listener.
*/
class PortListener : public QObject
{
Q_OBJECT
QextSerialPort * port;
public:
/**
* Constructor.
* @param parent parent object.
*/
PortListener(QextSerialPort * port, QObject * parent = 0);
public slots:
/**
* Receive data from serial port.
*/
void receive();
/**
* Report written bytes.
* @param bytes number of written bytes.
*/
void reportWritten(qint64 bytes);
/**
* Report port closing.
*/
void reportClose();
/**
* Report DSR line.
* @param status line status.
*/
void reportDsr(bool status);
};
#endif /*PORTLISTENER_H_*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -