代码拉取完成,页面将自动刷新
同步操作将从 caowai/qipmsg 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef IPMSGFILECLIENT_H
#define IPMSGFILECLIENT_H
#include <QObject>
#include <QHostAddress>
#include <QFileInfo>
#include <QThread>
#include "ipmsgcommon.h"
#include "ipmsguser.h"
#include <QTcpSocket>
#define FILE_TRANS_STATUS_IDLE 0
#define FILE_TRANS_STATUS_QUEUE 1
#define FILE_TRANS_STATUS_PRERUN 2
#define FILE_TRANS_STATUS_RUN 3
#define FILE_TRANS_STATUS_FINISHED 4
typedef struct userInfoT
{
QByteArray userVer;
QByteArray userId;
QByteArray userNickName;
QByteArray userGroupName;
QByteArray userHostName;
QByteArray userEmail;
QByteArray userIcon;
QHostAddress userHostAddr;
uint32_t userPktSeq;
uint32_t userCfmSeq;
}userInfoT;
class IpMsgFileClient : public QObject
{
Q_OBJECT
public:
explicit IpMsgFileClient(IpMsgUser *user,QObject *parent = nullptr);
fileEntryT recvFileInfo;
QTcpSocket *sock;
int mProgress;
userInfoT me;
signals:
void ipMsgFileClientErrorSig(quint32 fileid,int progress);
void ipMsgFileClientProgressSig(quint32 fileid,int progress);
void ipMsgFileClientFinishSig(quint32 fileid);
public slots:
private slots:
void ipMsgFileClientStart();
void ipMsgFileClientConnected();
void ipMsgFileClientError(QAbstractSocket::SocketError error);
void ipMsgFileClientDisconnected();
void ipMsgFileClientRecv();
void ipMsgFileClientClose();
private:
QFile mFile;
qint64 mSize;
};
#endif // IPMSGFILECLIENT_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。