1 Star 0 Fork 16

jinesc/qipmsg

forked from caowai/qipmsg 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
formchat.h 2.02 KB
一键复制 编辑 原始数据 按行查看 历史
caowai 提交于 2019-01-10 15:38 . Add reject file function
#ifndef FORMCHAT_H
#define FORMCHAT_H
#include <QWidget>
#include <QHostAddress>
#include <QTextEdit>
#include <QMenu>
#include <QListWidgetItem>
#include "ipmsgcommon.h"
namespace Ui {
class FormChat;
}
class FormChat : public QWidget
{
Q_OBJECT
public:
explicit FormChat(QWidget *parent = nullptr);
~FormChat();
QTextEdit *getChatHistory();
QTextEdit *getChat();
void updateChatHistory(QString data);
void setUserName(QString value);
void setHost(QString value);
void setGroupName(QString value);
void setClient(QString value);
QString FileSizeConvert(qint64 size);
QList <fileEntryT *>fileList;
void updateFileProgress(quint32 fileId,int progress);
void updateFileError(quint32 fileId,int progress);
void delFixedShareFile(int index);
void addRemoteShareFile(fileEntryT *newfile);
void delFixedRemoteShareFile(int index);
QWidget *main;
protected:
bool event(QEvent *event);
signals:
void sent(QString data,QHostAddress dest);
void addSendFile(QString file);
void delSendFile(int index);
void delAllSendFile();
void acceptFile(fileEntryT *file);
void rejectFile(fileEntryT *file);
void cancelFile(fileEntryT *file);
void recvfinish(quint32 fileId);
void recverror(quint32 fileId);
private:
Ui::FormChat *ui;
QString mUser;
QString mHost;
QString mGroup;
QString mClient;
QMenu *mSendFileCmdMenu;
QMenu *mRecvFileCmdMenu;
QObject *mChatUser;
private slots:
void chatSend();
void addShareFile();
void delShareFile();
void delAllShareFile();
void acceptShareFile();
void rejectShareFile();
void acceptAllShareFile();
void rejectAllShareFile();
void on_tableWidgetSendFileList_customContextMenuRequested(const QPoint &pos);
void on_tableWidgetRecvFileList_customContextMenuRequested(const QPoint &pos);
void fileRecvFinished(quint32 fileId);
void fileRecvProgress(quint32 fileId,int progress);
void fileRecvError(quint32 fileId,int progress);
};
#endif // FORMCHAT_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/jinesc/qipmsg.git
[email protected]:jinesc/qipmsg.git
jinesc
qipmsg
qipmsg
master

搜索帮助