VObject* domProp = isAPropertyOf(o, VCDomesticProp); VObject* intlProp = isAPropertyOf(o, VCInternationalProp); VObject* postal = isAPropertyOf(o, VCPostalProp); VObject* parcel = isAPropertyOf(o, VCParcelProp); VObject* home = isAPropertyOf(o, VCHomeProp); VObject* work = isAPropertyOf(o, VCWorkProp);
nsCOMPtr<nsIMsgVCardService> vCardService = do_GetService(MSGVCARDSERVICE_CONTRACT_ID); if (!vCardService) return;  VObject* domProp = vCardService->IsAPropertyOf(o, VCDomesticProp); VObject* intlProp = vCardService->IsAPropertyOf(o, VCInternationalProp); VObject* postal = vCardService->IsAPropertyOf(o, VCPostalProp); VObject* parcel = vCardService->IsAPropertyOf(o, VCParcelProp); VObject* home = vCardService->IsAPropertyOf(o, VCHomeProp); VObject* work = vCardService->IsAPropertyOf(o, VCWorkProp);
static void GetAddressProperties (VObject* o, char ** attribName){  VObject* domProp = isAPropertyOf(o, VCDomesticProp);  VObject* intlProp = isAPropertyOf(o, VCInternationalProp);  VObject* postal = isAPropertyOf(o, VCPostalProp);  VObject* parcel = isAPropertyOf(o, VCParcelProp);  VObject* home = isAPropertyOf(o, VCHomeProp);  VObject* work = isAPropertyOf(o, VCWorkProp);  char    *tString = NULL;  if (domProp) {    tString = VCardGetStringByID(VCARD_LDAP_DOM_TYPE);  }  if (intlProp) {    tString = VCardGetStringByID(VCARD_LDAP_INTL_TYPE);  }  if (postal) {    tString = VCardGetStringByID(VCARD_LDAP_POSTAL_TYPE);  }  if (parcel) {    tString = VCardGetStringByID(VCARD_LDAP_PARCEL_TYPE);  }  if (home) {    tString = VCardGetStringByID(VCARD_LDAP_HOME_TYPE);  }  if (work) {    tString = VCardGetStringByID(VCARD_LDAP_WORK_TYPE);  }  if (tString)  {    NS_MsgSACat (&(*attribName), " ");    NS_MsgSACat (&(*attribName), tString);    PR_FREEIF(tString);  }}