Ai
1 Star 0 Fork 0

小邓/client

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
client_socket.h 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
小邓 提交于 2024-07-02 00:16 +08:00 . 完成清理工作
#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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiao-deng-a/client.git
git@gitee.com:xiao-deng-a/client.git
xiao-deng-a
client
client
master

搜索帮助