app中收发消息处理过程:
接收过程:
1. io->
2. mgr:procMsgInput_mgr_req
qyntohRouteTalkData
work
3.work:procMsgTalk_work
CONST_imCommType_htmlContent
qPostMsg(pMsg,lenInBytes_msg,pQyMc.gui.processQ)
GuiShare.pf_PostMessage(pQyMc.gui.hMainWnd, Consts.CONST_qyWm_postComm, Consts.CONST_qyWmParam_msgArrive, 0);
4.MainActivity.HandlerMessage
mainWnd_OnQyPostComm
if (tmp_pContent.uiType == Consts.CONST_imCommType_htmlContent)
{
GuiShare.pf_gui_procMsg(ref pMsgU);
}
5. MainActivity.gui_procMsg:
mainActivity.mAdapter.mFragment_msg1.gui_procMsg(ref pMsgU);
//
if (0 == GuiShare.pf_findTalker(pQyMc, pMisCnt, addr_logicalPeer_idInfo, ref hTalk))
{
Activity_dlgTalk dlgTalk = (Activity_dlgTalk)hTalk;
dlgTalk.gui_procMsg(ref pMsgU); ;
}
6.Activity_dlgTalk.gui_procMsg:
if (mAdapter.mFragment_dlgTalk_msgList1 != null)
{
mAdapter.mFragment_dlgTalk_msgList1.gui_procMsg(ref pMsg);
}