云服务器内容精选

  • 方法定义 1 virtual void OnQueryContactAvatar(const char account[HWM_MAX_ACCOUNT_LEN], const char thirdUserId[HWM_MAX_ACCOUNT_LEN], const char sipNumber[HWM_MAX_NUMBER_LEN], char* avatarPath,int pathLen) {};
  • 参数描述 表1 参数 类型 描述 account char[] 登录华为云会议的账号信息。 thirdUserId char[] 登录华为云会议的第三方用户Id。 sipNumber char[] 账号对应的sip号码。 avatarPath char* 查询通讯录返回的头像路径。 pathLen int 最大路径长度。 示例代码 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 /** * 查询外部通讯录头像 */ void demoNotifyProc::OnQueryContactAvatar(const char* account, const char* thirdUserId, const char* sipNumber, char* avatarPath, int pathLen) { Cdemo* app = (Cdemo*)AfxGetApp(); if (!app || (strlen(account) == 0 && strlen(thirdUserId) == 0 && strlen(sipNumber) == 0)) { //窗口已经关闭或数据为空 return; } string sAccount = account; string sThirdUserId = thirdUserId; string sSipNumber = sipNumber; /* 根据用户层自己的逻辑 + account thirdUserId sipNumber 获取到头像图片路径信息并复制到avatarPath char数组内*/ // 测试使用时,在D:\\picture\\路径下放置一张图片test.png strcpy_s(avatarPath, pathLen, "D:\\picture\\test.png"); }
  • 参数描述 表1 参数说明 参数 类型 描述 injectBtn HwmClickInjectBtn 按钮类型。 data void* 按钮参数,可能为空。 若按钮类型为HWM_CLICK_INJECT_BTN_CALL_OTHER_NUM,该参数为期望呼叫的与会者信息; 若按钮类型为HWM_CLICK_INJECT_BTN_INVITE,该参数为空。 id const char* 自定义按钮id。 当按钮类型为HWM_TOOLS_INJECT_BTN_CUSTOM时,该参数为自定义按钮的id; 当按钮类型为HWM_CLICK_INJECT_BTN_PARTICIPANT_DETAIL,该参数为HwmConfAttendee; 当按钮类型为其他值时,该参数为空。 表2 枚举HwmClickInjectBtn说明 枚举值 描述 HWM_CLICK_INJECT_BTN_INVITE 邀请按钮。 HWM_CLICK_INJECT_BTN_CALL_OTHER_NUM 呼叫其他号码按钮。 HWM_CLICK_INJECT_BTN_ATTENDEE 与会者按钮。 HWM_CLICK_INJECT_BTN_SHARE 共享按钮。 HWM_CLICK_INJECT_BTN_LEAVE 离开按钮。 HWM_TOOLS_INJECT_BTN_CUSTOM 用户自定义按钮。 HWM_CLICK_INJECT_BTN_COPY_CONF_INFO 复制会议信息按钮。 HWM_CLICK_INJECT_BTN_PARTICIPANT_DETAIL 与会者详情按钮。