代码拉取完成,页面将自动刷新
同步操作将从 caowai/qipmsg 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef QIPMSG_H
#define QIPMSG_H
#include <QMainWindow>
#include <QTextCodec>
#include <QUdpSocket>
#include <QWidget>
#include <QListWidget>
#include <QTextEdit>
#include <QDateTime>
#include <QPushButton>
#include <QTranslator>
#include "ipmsgcommon.h"
#include "dialogsetting.h"
#include "ipmsgfileserver.h"
#include "ipmsgudpsession.h"
#include "ipmsgfilerecv.h"
namespace Ui {
class QIPMSG;
}
class QIPMSG : public QMainWindow
{
Q_OBJECT
public:
explicit QIPMSG(QWidget *parent = nullptr);
~QIPMSG();
QTranslator *qIpMsgLang = nullptr;
IpMsgUser mSelf;
QString toUnicode(QByteArray data);
public slots:
void qIpMsgUdpSessionHandle(QHostAddress src, QByteArray data);
void qIpMsgFileServerHandle(quint32 ip, quint16 port, QByteArray data);
void qIpMsgUserListUpdate();
void userListRefreshTrigger();
void qIpMsgConfigration();
void startChat(QListWidgetItem *item);
void qIpMsgChatSent(QString data,QHostAddress dest);
void qIpMsgSettingsAccepted();
void qIpMsgSettingsRejected();
QByteArray fromUnicode(QString data);
void qIpMsgStatus(QString data);
private slots:
void qIpMsgLangtoEn();
void qIpMsgLangtoZh();
void qIpMsgFileTransFinished(quint32 fileId);
void qIpMsgFileTransProgress(quint32 fileId,int progress);
void qIpMsgFileTransError(quint32 fileId,int progress);
void qIpMsgAcceptFile(fileEntryT *file);
void qIpMsgRejectFile(fileEntryT *file);
void qIpMsgRecvFileFinish(quint32 fileId);
void qIpMsgRecvFileError(quint32 fileId);
signals:
void userListUpdate();
void changeLang(int lang);
protected:
void timerEvent(QTimerEvent *event);
void closeEvent(QCloseEvent *event);
private:
Ui::QIPMSG *ui;
QList<IpMsgUser*> mUsers;
DialogSetting *mSetPanel = nullptr;
IpMsgUdpSession session;
IpMsgFileServer *fileServer;
QString mCodec="GBK";
unsigned int mStartIp=0;
unsigned int mEndIp=0;
};
#endif // QIPMSG_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。