static int OnContactSettingChanged(MCONTACT hContact, DBCONTACTWRITESETTING* pdbcws) { if (hContact && pdbcws && (pdbcws->value.type <= DBVT_BYTE) && !mir_strcmp(pdbcws->szSetting, SET_CONTACT_GENDER)) OnCListApplyIcons(hContact, 0); return 0; }
/** * Force all icons to be reloaded. * * @param wParam - handle to the contact whose extra icon is to apply * @param lParam - not used **/ VOID SvcGenderApplyCListIcons() { HANDLE hContact; //walk through all the contacts stored in the DB for (hContact = DB::Contact::FindFirst(); hContact != NULL; hContact = DB::Contact::FindNext(hContact)) { OnCListApplyIcons(hContact, 0); } }
static int OnContactSettingChanged(HANDLE hContact, DBCONTACTWRITESETTING* pdbcws) { if (hContact && pdbcws && pdbcws->szSetting && ((pdbcws->value.type & DBVTF_VARIABLELENGTH) || (pdbcws->value.type == DBVT_DELETED)) && (!strncmp(pdbcws->szSetting, SET_CONTACT_HOMEPAGE, 8) || !strncmp(pdbcws->szSetting, SET_CONTACT_COMPANY_HOMEPAGE, 15))) OnCListApplyIcons(hContact, 0); return 0; }
static int OnContactSettingChanged(MCONTACT hContact, DBCONTACTWRITESETTING* pdbcws) { if (hContact && pdbcws && pdbcws->szSetting && ((pdbcws->value.type & DBVTF_VARIABLELENGTH) || (pdbcws->value.type == DBVT_DELETED)) && (!mir_strcmp(pdbcws->szSetting, SET_CONTACT_PHONE) || !mir_strcmp(pdbcws->szSetting, SET_CONTACT_CELLULAR) || !mir_strcmp(pdbcws->szSetting, SET_CONTACT_COMPANY_PHONE) || !mir_strcmp(pdbcws->szSetting, SET_CONTACT_COMPANY_CELLULAR) || !strncmp(pdbcws->szSetting, "MyPhone0", 8))) OnCListApplyIcons(hContact, 0); return 0; }