代码拉取完成,页面将自动刷新
同步操作将从 s_baoshan/qsrv 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QTcpServer>
#include <QTcpSocket>
#include <QUdpSocket>
#include <QSettings>
#include "libutil/basedef.h"
#include "libcom/libcom.h"
#include "libnet/libnet.h"
#include "ui/comconfigform.h"
#include "ui/netconfigform.h"
#include "ui/setrs485.h"
#include "ui/setlogicaddr.h"
#include "ui/toolsdialog.h"
#include "ui/filessum.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = Q_NULLPTR);
~MainWindow();
public slots:
private slots:
void on_btnOpenCom_clicked();
void on_btnListenTcp_clicked();
void on_pushButton_Send_clicked();
void on_Button_ClrRcv_clicked();
void on_actionComconfig_triggered();
void on_actionNetconfig_triggered();
void on_actionSetLogicAddr_triggered();
void on_actionSetRS485Config_triggered();
void on_actionSums_triggered();
void on_actionFilesum_triggered();
void delToolDiag();
void delFileSum();
void serverNewConnect();
void newclient(clientInfo_s);
void socketReadData();
void socketDisconnected();
void comReadData(QByteArray);
void sendMsg();
void setRecvCursor();
QString byteArrayToString(QByteArray, bool);
private:
Ui::MainWindow *ui;
comConfigForm *comUi;
netConfigForm *netUi;
setLogicAddr *logicAddrUi;
setRS485 *rs485Ui;
toolsDialog* toolsDiag;
filesSum *filesumWgt;
QTcpServer* pServer;
QTcpSocket* pSocket;
QUdpSocket* m_pUdpSoket;
QString m_tcpPort;
QSettings *m_config;
netSvr *m_netSvr;
QList<clientInfo_s> m_clientList;
QList<QTcpSocket*> tcpClientList;
QTcpSocket *pCurrentClient;
comObj *m_comObj;
QThread *m_comThread;
signals:
void sendBuf(QByteArray);
};
#endif // MAINWINDOW_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。