author | ar <ar> | 2005-12-10 16:43:43 (UTC) |
---|---|---|
committer | ar <ar> | 2005-12-10 16:43:43 (UTC) |
commit | 3948be20fed2f54054eda97f7a203084e904093b (patch) (unidiff) | |
tree | 920892aa9efe49cf040fe4bf5bc883ea947792cf | |
parent | bb9f3cb27500b70124985fd51f90b7f8ded33588 (diff) | |
download | opie-3948be20fed2f54054eda97f7a203084e904093b.zip opie-3948be20fed2f54054eda97f7a203084e904093b.tar.gz opie-3948be20fed2f54054eda97f7a203084e904093b.tar.bz2 |
- fix a problem with Sony Ericsson GSM. It can only handle vCards whitch have first set Cellular, Fax, Pager property and then HOME or WORK property.
-rw-r--r-- | libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp b/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp index 0ffbb67..5bc2755 100644 --- a/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp +++ b/libopie2/opiepim/backend/ocontactaccessbackend_vcard.cpp | |||
@@ -464,21 +464,21 @@ VObject* OPimContactAccessBackend_VCard::createVObject( const OPimContact &c ) | |||
464 | safeAddPropValue( home_adr, VCRegionProp, c.homeState() ); | 464 | safeAddPropValue( home_adr, VCRegionProp, c.homeState() ); |
465 | safeAddPropValue( home_adr, VCPostalCodeProp, c.homeZip() ); | 465 | safeAddPropValue( home_adr, VCPostalCodeProp, c.homeZip() ); |
466 | safeAddPropValue( home_adr, VCCountryNameProp, c.homeCountry() ); | 466 | safeAddPropValue( home_adr, VCCountryNameProp, c.homeCountry() ); |
467 | } | 467 | } |
468 | 468 | ||
469 | VObject *home_phone = safeAddPropValue( vcard, VCTelephoneProp, c.homePhone() ); | 469 | VObject *home_phone = safeAddPropValue( vcard, VCTelephoneProp, c.homePhone() ); |
470 | safeAddProp( home_phone, VCHomeProp ); | 470 | safeAddProp( home_phone, VCHomeProp ); |
471 | home_phone = safeAddPropValue( vcard, VCTelephoneProp, c.homeMobile() ); | 471 | home_phone = safeAddPropValue( vcard, VCTelephoneProp, c.homeMobile() ); |
472 | safeAddProp( home_phone, VCHomeProp ); | ||
473 | safeAddProp( home_phone, VCCellularProp ); | 472 | safeAddProp( home_phone, VCCellularProp ); |
474 | home_phone = safeAddPropValue( vcard, VCTelephoneProp, c.homeFax() ); | ||
475 | safeAddProp( home_phone, VCHomeProp ); | 473 | safeAddProp( home_phone, VCHomeProp ); |
474 | home_phone = safeAddPropValue( vcard, VCTelephoneProp, c.homeFax() ); | ||
476 | safeAddProp( home_phone, VCFaxProp ); | 475 | safeAddProp( home_phone, VCFaxProp ); |
476 | safeAddProp( home_phone, VCHomeProp ); | ||
477 | 477 | ||
478 | VObject *url = safeAddPropValue( vcard, VCURLProp, c.homeWebpage() ); | 478 | VObject *url = safeAddPropValue( vcard, VCURLProp, c.homeWebpage() ); |
479 | safeAddProp( url, VCHomeProp ); | 479 | safeAddProp( url, VCHomeProp ); |
480 | 480 | ||
481 | // work properties | 481 | // work properties |
482 | if ( !( c.businessStreet().isEmpty() | 482 | if ( !( c.businessStreet().isEmpty() |
483 | && c.businessCity().isEmpty() | 483 | && c.businessCity().isEmpty() |
484 | && c.businessState().isEmpty() | 484 | && c.businessState().isEmpty() |
@@ -491,24 +491,24 @@ VObject* OPimContactAccessBackend_VCard::createVObject( const OPimContact &c ) | |||
491 | safeAddPropValue( work_adr, VCRegionProp, c.businessState() ); | 491 | safeAddPropValue( work_adr, VCRegionProp, c.businessState() ); |
492 | safeAddPropValue( work_adr, VCPostalCodeProp, c.businessZip() ); | 492 | safeAddPropValue( work_adr, VCPostalCodeProp, c.businessZip() ); |
493 | safeAddPropValue( work_adr, VCCountryNameProp, c.businessCountry() ); | 493 | safeAddPropValue( work_adr, VCCountryNameProp, c.businessCountry() ); |
494 | } | 494 | } |
495 | 495 | ||
496 | VObject *work_phone = safeAddPropValue( vcard, VCTelephoneProp, c.businessPhone() ); | 496 | VObject *work_phone = safeAddPropValue( vcard, VCTelephoneProp, c.businessPhone() ); |
497 | safeAddProp( work_phone, VCWorkProp ); | 497 | safeAddProp( work_phone, VCWorkProp ); |
498 | work_phone = safeAddPropValue( vcard, VCTelephoneProp, c.businessMobile() ); | 498 | work_phone = safeAddPropValue( vcard, VCTelephoneProp, c.businessMobile() ); |
499 | safeAddProp( work_phone, VCWorkProp ); | ||
500 | safeAddProp( work_phone, VCCellularProp ); | 499 | safeAddProp( work_phone, VCCellularProp ); |
501 | work_phone = safeAddPropValue( vcard, VCTelephoneProp, c.businessFax() ); | ||
502 | safeAddProp( work_phone, VCWorkProp ); | 500 | safeAddProp( work_phone, VCWorkProp ); |
501 | work_phone = safeAddPropValue( vcard, VCTelephoneProp, c.businessFax() ); | ||
503 | safeAddProp( work_phone, VCFaxProp ); | 502 | safeAddProp( work_phone, VCFaxProp ); |
504 | work_phone = safeAddPropValue( vcard, VCTelephoneProp, c.businessPager() ); | ||
505 | safeAddProp( work_phone, VCWorkProp ); | 503 | safeAddProp( work_phone, VCWorkProp ); |
504 | work_phone = safeAddPropValue( vcard, VCTelephoneProp, c.businessPager() ); | ||
506 | safeAddProp( work_phone, VCPagerProp ); | 505 | safeAddProp( work_phone, VCPagerProp ); |
506 | safeAddProp( work_phone, VCWorkProp ); | ||
507 | 507 | ||
508 | url = safeAddPropValue( vcard, VCURLProp, c.businessWebpage() ); | 508 | url = safeAddPropValue( vcard, VCURLProp, c.businessWebpage() ); |
509 | safeAddProp( url, VCWorkProp ); | 509 | safeAddProp( url, VCWorkProp ); |
510 | 510 | ||
511 | VObject *title = safeAddPropValue( vcard, VCTitleProp, c.jobTitle() ); | 511 | VObject *title = safeAddPropValue( vcard, VCTitleProp, c.jobTitle() ); |
512 | safeAddProp( title, VCWorkProp ); | 512 | safeAddProp( title, VCWorkProp ); |
513 | 513 | ||
514 | 514 | ||