#ifndef MAINWINDOW_H #define MAINWINDOW_H #pragma execution_character_set("utf-8") #include #include class MainDialog; QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; } QT_END_NAMESPACE class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget *parent = nullptr); ~MainWindow(); public: void onMessage(const hv::SocketChannelPtr& channel, hv::Buffer* buf); protected: void setIp(const QString &ip); bool testDatabase(); bool testServerEcho(); //测试后端服务器响应 private slots: void on_pb_Logon_clicked(); void on_pb_Test_clicked(); private: Ui::MainWindow *ui; MainDialog* m_pMainDialog; }; #endif // MAINWINDOW_H