add Message received

This commit is contained in:
xyz
2025-06-25 13:00:28 +08:00
parent 971ab64769
commit 01c4baf04d
11 changed files with 180 additions and 18 deletions

View File

@ -87,6 +87,15 @@ namespace model
//从数据文件中加载数据到内存
void loadDataFile();
//清空未读消息数目
void clearUnread(const QString& chatSessionId);
//增加未读消息的数目
void addUnread(const QString& chatSessionId);
//获取未读消息的数目
int getUnread(const QString& chatSessionId);
//获取到当前的登录会话Id
const QString& getLoginSessionId() const{
return loginSessionId;
@ -118,7 +127,7 @@ namespace model
void resetApplyList(std::shared_ptr<bite_im::GetPendingFriendEventListRsp> resp);
//获取最近的消息列表
void getRecnetMessageListAsync(const QString& chatSessionId);
void getRecnetMessageListAsync(const QString& chatSessionId, bool updateUI);
QList<Message>* getRecentMessageList(const QString& chatSessionId);
void resetRecentMessageList(const QString& chatSessionId, std::shared_ptr<bite_im::GetRecentMsgRsp> resp);
@ -149,7 +158,9 @@ namespace model
void getChatSessionListDone();
void getApplyListDone();
void getRecentMessageListDone(const QString& chatSessionId);
void getRecentMessageListDoneNoUI(const QString& chatSessionId);
void sendMessageDone(MessageType messageType, const QByteArray& content, const QString& extraInfo);
void updateLastMessage(const QString& chatSessionId);
void receiveMessageDone(const Message& lastMessage);
};
} //end namespace model