You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
512 B
C++
28 lines
512 B
C++
#ifndef _QTCPDEBUG_H_
|
|
#define _QTCPDEBUG_H_
|
|
|
|
#include <QWidget>
|
|
#include "ui_QTCPDebugUI.h"
|
|
|
|
class QTCPDebugUI : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QTCPDebugUI(QWidget *parent = Q_NULLPTR);
|
|
~QTCPDebugUI();
|
|
|
|
void appendRecvData(QByteArray data);
|
|
void appendSendData(QByteArray data);
|
|
protected:
|
|
virtual void closeEvent(QCloseEvent *event);
|
|
virtual void showEvent(QShowEvent *event);
|
|
virtual void changeEvent(QEvent *event);
|
|
|
|
Q_SLOT void onStateChange(int state);
|
|
private:
|
|
Ui::QTCPDebugUI ui;
|
|
};
|
|
|
|
#endif
|