2018-04-22 13:03:28 +08:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
2018-04-22 23:00:42 +08:00
|
|
|
#include "qqtserverprotocolmanager.h"
|
2018-04-23 20:25:18 +08:00
|
|
|
#include "qqtserver2protocolmanager.h"
|
2018-04-22 13:03:28 +08:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class MainWindow;
|
|
|
|
}
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2018-04-22 23:00:42 +08:00
|
|
|
explicit MainWindow ( QWidget* parent = 0 );
|
2018-04-22 13:03:28 +08:00
|
|
|
~MainWindow();
|
|
|
|
|
2018-04-22 23:00:42 +08:00
|
|
|
private slots:
|
|
|
|
//我接收一个信息,处理一下。
|
|
|
|
//这个信息我关注它。
|
|
|
|
void recvANotify ( const QQtProtocol* protocol,
|
|
|
|
const QQtMessage* message );
|
|
|
|
|
2018-04-22 13:03:28 +08:00
|
|
|
private:
|
2018-04-22 23:00:42 +08:00
|
|
|
Ui::MainWindow* ui;
|
2018-04-27 20:54:40 +08:00
|
|
|
QQtHgProtocolManager* pm0;
|
2018-04-22 13:03:28 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|