VObject* prefProp = isAPropertyOf(o, VCPreferredProp); VObject* home = isAPropertyOf(o, VCHomeProp); VObject* work = isAPropertyOf(o, VCWorkProp); VObject* voiceProp = isAPropertyOf(o, VCVoiceProp); VObject* fax = isAPropertyOf(o, VCFaxProp); VObject* msg = isAPropertyOf(o, VCMessageProp); VObject* cell = isAPropertyOf(o, VCCellularProp); VObject* pager = isAPropertyOf(o, VCPagerProp); VObject* bbs = isAPropertyOf(o, VCBBSProp);
nsCOMPtr<nsIMsgVCardService> vCardService = do_GetService(MSGVCARDSERVICE_CONTRACT_ID); if (!vCardService) return;  VObject* prefProp = vCardService->IsAPropertyOf(o, VCPreferredProp); VObject* home = vCardService->IsAPropertyOf(o, VCHomeProp); VObject* work = vCardService->IsAPropertyOf(o, VCWorkProp); VObject* voiceProp = vCardService->IsAPropertyOf(o, VCVoiceProp); VObject* fax = vCardService->IsAPropertyOf(o, VCFaxProp); VObject* msg = vCardService->IsAPropertyOf(o, VCMessageProp); VObject* cell = vCardService->IsAPropertyOf(o, VCCellularProp); VObject* pager = vCardService->IsAPropertyOf(o, VCPagerProp); VObject* bbs = vCardService->IsAPropertyOf(o, VCBBSProp);
static void GetTelephoneProperties (VObject* o, char ** attribName){  VObject* prefProp = isAPropertyOf(o, VCPreferredProp);  VObject* home = isAPropertyOf(o, VCHomeProp);  VObject* work = isAPropertyOf(o, VCWorkProp);  VObject* voiceProp = isAPropertyOf(o, VCVoiceProp);  VObject* fax = isAPropertyOf(o, VCFaxProp);  VObject* msg = isAPropertyOf(o, VCMessageProp);  VObject* cell = isAPropertyOf(o, VCCellularProp);  VObject* pager = isAPropertyOf(o, VCPagerProp);  VObject* bbs = isAPropertyOf(o, VCBBSProp);  char    *tString = NULL;  if (prefProp) {    tString = VCardGetStringByID(VCARD_LDAP_PREF_TYPE);  }  if (home) {    tString = VCardGetStringByID(VCARD_LDAP_HOME_TYPE);  }  if (work) {    tString = VCardGetStringByID(VCARD_LDAP_WORK_TYPE);  }  if (voiceProp) {    tString = VCardGetStringByID(VCARD_LDAP_VOICE_TYPE);  }  if (fax) {    tString = VCardGetStringByID(VCARD_LDAP_FAX_TYPE);  }  if (msg) {    tString = VCardGetStringByID(VCARD_LDAP_MSG_TYPE);  }  if (cell) {    tString = VCardGetStringByID(VCARD_LDAP_CELL_TYPE);  }  if (pager) {    tString = VCardGetStringByID(VCARD_LDAP_PAGER_TYPE);  }  if (bbs) {    tString = VCardGetStringByID(VCARD_LDAP_BBS_TYPE);  }  if (tString)  {    NS_MsgSACat (&(*attribName), " ");    NS_MsgSACat (&(*attribName), tString);    PR_FREEIF(tString);  }}