emsApplication/applications/emsConfigurer/mainwindow.h

43 lines
735 B
C
Raw Normal View History

2024-09-10 16:12:38 +08:00
#ifndef MAINWINDOW_H
2024-09-10 14:38:23 +08:00
#define MAINWINDOW_H
2024-10-12 14:00:37 +08:00
#pragma execution_character_set("utf-8")
2024-09-10 14:38:23 +08:00
#include <QMainWindow>
#include <hv_tcpclient.h>
2024-09-10 14:38:23 +08:00
2024-09-10 16:55:41 +08:00
class MainDialog;
2024-09-10 14:38:23 +08:00
QT_BEGIN_NAMESPACE
2024-10-11 14:20:12 +08:00
namespace Ui
{
class MainWindow;
}
2024-09-10 14:38:23 +08:00
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);
2024-09-10 16:12:38 +08:00
protected:
void setIp(const QString &ip);
2024-10-12 14:00:37 +08:00
bool testDatabase();
bool testServerEcho(); //测试后端服务器响应
2024-09-10 16:12:38 +08:00
2024-09-10 16:55:41 +08:00
private slots:
void on_pb_Logon_clicked();
2024-10-11 14:20:12 +08:00
void on_pb_Test_clicked();
2024-09-10 14:38:23 +08:00
private:
Ui::MainWindow *ui;
2024-09-10 16:55:41 +08:00
MainDialog* m_pMainDialog;
2024-09-10 14:38:23 +08:00
};
#endif // MAINWINDOW_H