IPMsg中最核心的数据结构

IPMsg.h
  1. classTMainWin:publicTWin{
  2. protected:
  3. staticHICONhMainIcon;
  4. staticHICONhRevIcon;
  5. staticTMainWin*mainWin;//forthreadproc
  6. TListsendList;
  7. TListrecvList;
  8. TListmsgList;
  9. TListsendFileList;
  10. TListconnectList;
  11. THostshosts;
  12. TSetupDlg*setupDlg;
  13. TAboutDlg*aboutDlg;
  14. TShareStatDlg*shareStatDlg;
  15. TAbsenceDlg*absenceDlg;
  16. MsgMng*msgMng;
  17. LogMng*logmng;
  18. ShareMng*shareMng;
  19. Cfg*cfg;
  20. TRecycleList*ansList;
  21. intportNo;
  22. intmemberCnt;
  23. time_trefreshStartTime;
  24. time_tentryStartTime;
  25. UINTentryTimerStatus;
  26. UINTreverseTimerStatus;
  27. UINTansTimerID;
  28. UINTTaskBarCreateMsg;
  29. BOOLterminateFlg;
  30. BOOLactiveToggle;
  31. #defineMAX_PACKETLOG16
  32. struct{
  33. ULONGno;
  34. ULONGaddr;
  35. intport;
  36. }packetLog[MAX_PACKETLOG];
  37. intpacketLogCnt;
  38. BOOLIsLastPacket(MsgBuf*msg);
  39. voidSetIcon(HICONhSetIcon);
  40. voidReverseIcon(BOOLstartFlg);
  41. voidEntryHost(void);
  42. voidExitHost(void);
  43. voidPopup(UINTresId);
  44. BOOLPopupCheck(void);
  45. BOOLAddAbsenceMenu(HMENUhMenu,intinsertIndex);
  46. voidActiveChildWindow(BOOLhide=FALSE);
  47. BOOLTaskBar(intnimMode,HICONhSetIcon=NULL,LPCSTRtip=NULL);
  48. BOOLUdpEvent(LPARAMlParam);
  49. BOOLTcpEvent(intsd,LPARAMlParam);
  50. BOOLCheckConnectInfo(ConnectInfo*conInfo);
  51. inlineSendFileObj*FindSendFileObj(intsd);
  52. BOOLStartSendFile(intsd);
  53. BOOLOpenSendFile(constchar*fname,SendFileObj*obj);
  54. staticDWORDWINAPISendFileThread(void*_sendFileObj);
  55. BOOLSendFile(SendFileObj*obj);
  56. BOOLSendDirFile(SendFileObj*obj);
  57. BOOLCloseSendFile(SendFileObj*obj);
  58. BOOLEndSendFile(SendFileObj*obj);
  59. voidBroadcastEntry(ULONGmode);
  60. voidBroadcastEntrySub(ULONGaddr,intportNo,ULONGmode);
  61. voidBroadcastEntrySub(HostSub*hostSub,ULONGmode);
  62. voidTerminate(void);
  63. BOOLSendDlgOpen(HWNDhRecvWnd=NULL,MsgBuf*msg=NULL);
  64. voidSendDlgHide(TSendDlg*sendDlg);
  65. voidSendDlgExit(TSendDlg*sendDlg);
  66. BOOLRecvDlgOpen(MsgBuf*msg);
  67. voidRecvDlgExit(TRecvDlg*recvDlg);
  68. voidMsgDlgExit(TMsgDlg*msgDlg);
  69. voidMiscDlgOpen(TDlg*dlg);
  70. voidLogOpen(void);
  71. voidAddHost(HostSub*hostSub,ULONGcommand,char*nickName="",char*groupName="");
  72. inlinevoidSetHostData(Host*destHost,HostSub*hostSub,ULONGcommand,time_tnow_time,char*nickName="",char*groupName="",intpriority=DEFAULT_PRIORITY);
  73. voidDelAllHost(void);
  74. voidDelHost(HostSub*hostSub);
  75. voidDelHostSub(Host*host);
  76. voidRefreshHost(BOOLunRemove);
  77. voidSetCaption(void);
  78. voidSendHostList(MsgBuf*msg);
  79. voidAddHostList(MsgBuf*msg);
  80. ULONGHostStatus(void);
  81. voidActiveListDlg(TList*dlgList,BOOLactive=TRUE);
  82. voidDeleteListDlg(TList*dlgList);
  83. voidActiveDlg(TDlg*dlg,BOOLactive=TRUE);
  84. char*GetNickNameEx(void);
  85. voidInitIcon(void);
  86. voidControlIME(TWin*win,BOOLon);
  87. BOOLSetAnswerQueue(AddrObj*obj);
  88. voidExecuteAnsQueue(void);
  89. #defineKEY_REBUILD0x0001
  90. #defineKEY_DIAG0x0002
  91. BOOLSetupCryptAPI(void);
  92. BOOLSetupCryptAPICore(intctl_flg=0);
  93. voidMsgBrEntry(MsgBuf*msg);
  94. voidMsgBrExit(MsgBuf*msg);
  95. voidMsgAnsEntry(MsgBuf*msg);
  96. voidMsgBrAbsence(MsgBuf*msg);
  97. voidMsgSendMsg(MsgBuf*msg);
  98. voidMsgRecvMsg(MsgBuf*msg);
  99. voidMsgReadMsg(MsgBuf*msg);
  100. voidMsgBrIsGetList(MsgBuf*msg);
  101. voidMsgOkGetList(MsgBuf*msg);
  102. voidMsgGetList(MsgBuf*msg);
  103. voidMsgAnsList(MsgBuf*msg);
  104. voidMsgGetInfo(MsgBuf*msg);
  105. voidMsgSendInfo(MsgBuf*msg);
  106. voidMsgGetPubKey(MsgBuf*msg);
  107. voidMsgAnsPubKey(MsgBuf*msg);
  108. voidMsgGetAbsenceInfo(MsgBuf*msg);
  109. voidMsgSendAbsenceInfo(MsgBuf*msg);
  110. voidMsgReleaseFiles(MsgBuf*msg);
  111. voidMsgInfoSub(MsgBuf*msg);
  112. public:
  113. TMainWin(ULONG_nicAddr=INADDR_ANY,int_portNo=IPMSG_DEFAULT_PORT,TWin*_parent=NULL);
  114. virtual~TMainWin();
  115. virtualBOOLEvCreate(LPARAMlParam);
  116. virtualBOOLEvClose(void);
  117. virtualBOOLEvCommand(WORDwNotifyCode,WORDwID,LPARAMhwndCtl);
  118. virtualBOOLEvSysCommand(WPARAMuCmdType,WORDxPos,WORDyPos);
  119. virtualBOOLEvTimer(WPARAMtimerID,TIMERPROCproc);
  120. virtualBOOLEvEndSession(BOOLnSession,BOOLnLogOut);
  121. virtualBOOLEvQueryOpen(void);
  122. virtualBOOLEvHotKey(inthotKey);
  123. virtualBOOLEventButton(UINTuMsg,intnHitTest,POINTSpos);
  124. virtualBOOLEventInitMenu(UINTuMsg,HMENUhMenu,UINTuPos,BOOLfSystemMenu);
  125. virtualBOOLEventUser(UINTuMsg,WPARAMwParam,LPARAMlParam);
  126. staticHICONGetIPMsgIcon(void);
  127. };

你可能感兴趣的:(数据结构)