代码拉取完成,页面将自动刷新
#ifndef CLIENT_SOCKET_H
#define CLIENT_SOCKET_H
#include <QMainWindow>
#include "protocol.h"
#include "my_tcpsocket.h"
#include <QFile>
#include <QMessageBox>
#include "serverfilesystem.h"
#include "operatewidget.h"
QT_BEGIN_NAMESPACE
namespace Ui {
class client_socket;
}
QT_END_NAMESPACE
class client_socket : public QMainWindow
{
Q_OBJECT
public:
client_socket(QWidget *parent = nullptr);
~client_socket();
void initConfig();
void m_connect();
static client_socket& getInstance();
my_tcpsocket& getTcpSocket();
QString getM_userRootPath();
QString getM_serverRootPath();
void setM_userRootPath(QString rootPath);
void setM_serverRootPath(QString rootPath);
QString getM_userID();
QString getM_rootPath();
void setM_rootPath(QString rootPath);
OperateWidget*& get_mainWidget();
// FileSystem*& getM_pFileSystem();
serverFileSystem*& getM_pServerFileSystem();
QString getStrIP();
quint16 getUSPort();
protected:
void closeEvent(QCloseEvent *event) override; // 重写 closeEvent 函数
private slots:
void showConnect();
void on_register_2_clicked();
void on_login_clicked();
void on_logout_clicked();
void on_forget_clicked();
private:
Ui::client_socket *ui;
QString m_strIP;
quint16 m_usPort;
QString m_userID;
QString m_rootPath;
QString m_userRootPath;
QString m_serverRootPath;
// FileSystem* m_pFileSystem;
serverFileSystem* m_pServerFileSystem;
OperateWidget* mainWidget;
my_tcpsocket m_cliSocket;
};
#endif // CLIENT_SOCKET_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。