equal
deleted
inserted
replaced
516 // MsgUnifiedEditorAddress::validateContacts |
516 // MsgUnifiedEditorAddress::validateContacts |
517 // @see header |
517 // @see header |
518 // ---------------------------------------------------------------------------- |
518 // ---------------------------------------------------------------------------- |
519 bool MsgUnifiedEditorAddress::validateContacts() |
519 bool MsgUnifiedEditorAddress::validateContacts() |
520 { |
520 { |
521 UniEditorGenUtils* genUtils = new UniEditorGenUtils; |
521 UniEditorGenUtils* genUtils = q_check_ptr(new UniEditorGenUtils); |
522 |
522 |
523 // sync-up map to account for user-actions on address-field |
523 // sync-up map to account for user-actions on address-field |
524 syncDeletionsToMap(); |
524 syncDeletionsToMap(); |
525 syncAdditionsToMap(); |
525 syncAdditionsToMap(); |
526 |
526 |
567 isValid = CommonPhoneParser::IsValidPhoneNumber( |
567 isValid = CommonPhoneParser::IsValidPhoneNumber( |
568 *tempAddr, |
568 *tempAddr, |
569 CommonPhoneParser::ESMSNumber ); |
569 CommonPhoneParser::ESMSNumber ); |
570 |
570 |
571 // 2. if number validity fails, then perform email addr validation |
571 // 2. if number validity fails, then perform email addr validation |
572 UniEditorGenUtils* genUtils = new UniEditorGenUtils; |
572 UniEditorGenUtils* genUtils = q_check_ptr(new UniEditorGenUtils); |
573 if(!isValid) |
573 if(!isValid) |
574 { // additional check for MMS only |
574 { // additional check for MMS only |
575 isValid = genUtils->IsValidEmailAddress( |
575 isValid = genUtils->IsValidEmailAddress( |
576 *tempAddr ); |
576 *tempAddr ); |
577 } |
577 } |