summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/contacteditor.cpp
Unidiff
Diffstat (limited to 'core/pim/addressbook/contacteditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/contacteditor.cpp84
1 files changed, 59 insertions, 25 deletions
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp
index bae3a2b..e7f2ebd 100644
--- a/core/pim/addressbook/contacteditor.cpp
+++ b/core/pim/addressbook/contacteditor.cpp
@@ -319,49 +319,48 @@ void ContactEditor::init() {
319 if ( (*it) == "Home City" ) { 319 if ( (*it) == "Home City" ) {
320 hasCity = TRUE; 320 hasCity = TRUE;
321 //slDynamicEntries->remove( it ); 321 //slDynamicEntries->remove( it );
322 continue; 322 continue;
323 } 323 }
324 324
325 if ( (*it) == "Home State" ) { 325 if ( (*it) == "Home State" ) {
326 hasState = TRUE; 326 hasState = TRUE;
327 //slDynamicEntries->remove( it ); 327 //slDynamicEntries->remove( it );
328 continue; 328 continue;
329 } 329 }
330 330
331 if ( (*it) == "Home Zip" ) { 331 if ( (*it) == "Home Zip" ) {
332 hasZip = TRUE; 332 hasZip = TRUE;
333 //slDynamicEntries->remove( it ); 333 //slDynamicEntries->remove( it );
334 continue; 334 continue;
335 } 335 }
336 336
337 if ( (*it) == "Home Country" ) { 337 if ( (*it) == "Home Country" ) {
338 hasCountry = TRUE; 338 hasCountry = TRUE;
339 //slDynamicEntries->remove( it ); 339 //slDynamicEntries->remove( it );
340 continue; 340 continue;
341 } 341 }
342 342
343
344 slDynamicEntries.append( *it ); 343 slDynamicEntries.append( *it );
345 } 344 }
346 } 345 }
347 346
348 QVBoxLayout *vb = new QVBoxLayout( this ); 347 QVBoxLayout *vb = new QVBoxLayout( this );
349 348
350 tabMain = new QTabWidget( this ); 349 tabMain = new QTabWidget( this );
351 vb->addWidget( tabMain ); 350 vb->addWidget( tabMain );
352 351
353 QWidget *tabViewport = new QWidget ( tabMain ); 352 QWidget *tabViewport = new QWidget ( tabMain );
354 353
355 vb = new QVBoxLayout( tabViewport ); 354 vb = new QVBoxLayout( tabViewport );
356 355
357 svGeneral = new QScrollView( tabViewport ); 356 svGeneral = new QScrollView( tabViewport );
358 vb->addWidget( svGeneral, 0, 0 ); 357 vb->addWidget( svGeneral, 0, 0 );
359 svGeneral->setResizePolicy( QScrollView::AutoOneFit ); 358 svGeneral->setResizePolicy( QScrollView::AutoOneFit );
360 svGeneral->setFrameStyle( QFrame::NoFrame ); 359 svGeneral->setFrameStyle( QFrame::NoFrame );
361 360
362 QWidget *container = new QWidget( svGeneral->viewport() ); 361 QWidget *container = new QWidget( svGeneral->viewport() );
363 svGeneral->addChild( container ); 362 svGeneral->addChild( container );
364 363
365 QGridLayout *gl = new QGridLayout( container, 1, 1, 2, 4 ); 364 QGridLayout *gl = new QGridLayout( container, 1, 1, 2, 4 );
366 gl->setResizeMode( QLayout::FreeResize ); 365 gl->setResizeMode( QLayout::FreeResize );
367 366
@@ -687,57 +686,60 @@ void ContactEditor::init() {
687 txtChooserField4 = new QLineEdit( container ); 686 txtChooserField4 = new QLineEdit( container );
688 gl->addMultiCellWidget( txtChooserField4, 6, 6, 1, 2 ); 687 gl->addMultiCellWidget( txtChooserField4, 6, 6, 1, 2 );
689 688
690 QSpacerItem *space = new QSpacerItem(1,1, 689 QSpacerItem *space = new QSpacerItem(1,1,
691 QSizePolicy::Maximum, 690 QSizePolicy::Maximum,
692 QSizePolicy::MinimumExpanding ); 691 QSizePolicy::MinimumExpanding );
693 gl->addItem( space, 7, 0 ); 692 gl->addItem( space, 7, 0 );
694 693
695 tabMain->insertTab( tabViewport, tr( "Address" ) ); 694 tabMain->insertTab( tabViewport, tr( "Address" ) );
696 695
697 tabViewport = new QWidget ( tabMain ); 696 tabViewport = new QWidget ( tabMain );
698 697
699 vb = new QVBoxLayout( tabViewport ); 698 vb = new QVBoxLayout( tabViewport );
700 699
701 svDetails = new QScrollView( tabViewport ); 700 svDetails = new QScrollView( tabViewport );
702 vb->addWidget( svDetails, 0, 0 ); 701 vb->addWidget( svDetails, 0, 0 );
703 svDetails->setResizePolicy( QScrollView::AutoOneFit ); 702 svDetails->setResizePolicy( QScrollView::AutoOneFit );
704 svDetails->setFrameStyle( QFrame::NoFrame ); 703 svDetails->setFrameStyle( QFrame::NoFrame );
705 704
706 container = new QWidget( svDetails->viewport() ); 705 container = new QWidget( svDetails->viewport() );
707 svDetails->addChild( container ); 706 svDetails->addChild( container );
708 707
709 gl = new QGridLayout( container, 1, 2, 2, 4 ); 708 gl = new QGridLayout( container, 1, 2, 2, 4 );
710 709
710 // Create Labels and lineedit fields for every dynamic entry
711 QStringList::ConstIterator it = slDynamicEntries.begin(); 711 QStringList::ConstIterator it = slDynamicEntries.begin();
712 for (i = 0; it != slDynamicEntries.end(); i++, ++it) { 712 for (i = 0; it != slDynamicEntries.end(); i++, ++it) {
713 l = new QLabel( *it, container ); 713 l = new QLabel( QString::null , container );
714 listName.append( l ); 714 listName.append( l );
715 gl->addWidget( l, i, 0 ); 715 gl->addWidget( l, i, 0 );
716 QLineEdit *e = new QLineEdit( container ); 716 QLineEdit *e = new QLineEdit( container );
717 listValue.append( e ); 717 listValue.append( e );
718 gl->addWidget( e, i, 1); 718 gl->addWidget( e, i, 1);
719 } 719 }
720 // Fill labels with names..
721 loadFields();
720 722
721 l = new QLabel( tr("Gender"), container ); 723 l = new QLabel( tr("Gender"), container );
722 gl->addWidget( l, slDynamicEntries.count(), 0 ); 724 gl->addWidget( l, slDynamicEntries.count(), 0 );
723 cmbGender = new QComboBox( container ); 725 cmbGender = new QComboBox( container );
724 cmbGender->insertItem( "", 0 ); 726 cmbGender->insertItem( "", 0 );
725 cmbGender->insertItem( tr("Male"), 1); 727 cmbGender->insertItem( tr("Male"), 1);
726 cmbGender->insertItem( tr("Female"), 2); 728 cmbGender->insertItem( tr("Female"), 2);
727 gl->addWidget( cmbGender, slDynamicEntries.count(), 1 ); 729 gl->addWidget( cmbGender, slDynamicEntries.count(), 1 );
728 730
729 tabMain->insertTab( tabViewport, tr( "Details" ) ); 731 tabMain->insertTab( tabViewport, tr( "Details" ) );
730 732
731 dlgNote = new QDialog( this, "Note Dialog", TRUE ); 733 dlgNote = new QDialog( this, "Note Dialog", TRUE );
732 dlgNote->setCaption( tr("Enter Note") ); 734 dlgNote->setCaption( tr("Enter Note") );
733 QVBoxLayout *vbNote = new QVBoxLayout( dlgNote ); 735 QVBoxLayout *vbNote = new QVBoxLayout( dlgNote );
734 txtNote = new QMultiLineEdit( dlgNote ); 736 txtNote = new QMultiLineEdit( dlgNote );
735 vbNote->addWidget( txtNote ); 737 vbNote->addWidget( txtNote );
736 connect( btnNote, SIGNAL(clicked()), this, SLOT(slotNote()) ); 738 connect( btnNote, SIGNAL(clicked()), this, SLOT(slotNote()) );
737 739
738 dlgName = new QDialog( this, "Name Dialog", TRUE ); 740 dlgName = new QDialog( this, "Name Dialog", TRUE );
739 dlgName->setCaption( tr("Edit Name") ); 741 dlgName->setCaption( tr("Edit Name") );
740 gl = new QGridLayout( dlgName, 5, 2, 2, 3 ); 742 gl = new QGridLayout( dlgName, 5, 2, 2, 3 );
741 743
742 l = new QLabel( tr("First Name"), dlgName ); 744 l = new QLabel( tr("First Name"), dlgName );
743 gl->addWidget( l, 0, 0 ); 745 gl->addWidget( l, 0, 0 );
@@ -991,49 +993,81 @@ void ContactEditor::slotAddressTypeChange( int index ) {
991} 993}
992 994
993void ContactEditor::slotFullNameChange( const QString &textChanged ) { 995void ContactEditor::slotFullNameChange( const QString &textChanged ) {
994 996
995 int index = cmbFileAs->currentItem(); 997 int index = cmbFileAs->currentItem();
996 998
997 cmbFileAs->clear(); 999 cmbFileAs->clear();
998 1000
999 cmbFileAs->insertItem( parseName( textChanged, 0 ) ); 1001 cmbFileAs->insertItem( parseName( textChanged, 0 ) );
1000 cmbFileAs->insertItem( parseName( textChanged, 1 ) ); 1002 cmbFileAs->insertItem( parseName( textChanged, 1 ) );
1001 cmbFileAs->insertItem( parseName( textChanged, 2 ) ); 1003 cmbFileAs->insertItem( parseName( textChanged, 2 ) );
1002 cmbFileAs->insertItem( parseName( textChanged, 3 ) ); 1004 cmbFileAs->insertItem( parseName( textChanged, 3 ) );
1003 1005
1004 cmbFileAs->setCurrentItem( index ); 1006 cmbFileAs->setCurrentItem( index );
1005 1007
1006 useFullName = TRUE; 1008 useFullName = TRUE;
1007 1009
1008} 1010}
1009 1011
1010void ContactEditor::loadFields() { 1012void ContactEditor::loadFields() {
1011 1013
1012 QStringList::ConstIterator it; 1014 QStringList::ConstIterator it;
1013 QListIterator<QLabel> lit( listName ); 1015 QListIterator<QLabel> lit( listName );
1014 for ( it = slDynamicEntries.begin(); *lit; ++lit, ++it) { 1016 for ( it = slDynamicEntries.begin(); *lit; ++lit, ++it) {
1015 (*lit)->setText( *it ); 1017
1018 if ( *it == "Department" )
1019 (*lit)->setText( tr( "Department" ) );
1020
1021 if ( *it == "Company" )
1022 (*lit)->setText( tr( "Company" ) );
1023
1024 if ( *it == "Office" )
1025 (*lit)->setText( tr( "Office" ) );
1026
1027 if ( *it == "Profession" )
1028 (*lit)->setText( tr( "Profession" ) );
1029
1030 if ( *it == "Assistant" )
1031 (*lit)->setText( tr( "Assistant" ) );
1032
1033 if ( *it == "Manager" )
1034 (*lit)->setText( tr( "Manager" ) );
1035
1036 if ( *it == "Spouse" )
1037 (*lit)->setText( tr( "Spouse" ) );
1038
1039 if ( *it == "Birthday" )
1040 (*lit)->setText( tr( "Birthday" ) );
1041
1042 if ( *it == "Anniversary" )
1043 (*lit)->setText( tr( "Anniversary" ) );
1044
1045 if ( *it == "Nickname" )
1046 (*lit)->setText( tr( "Nickname" ) );
1047
1048 if ( *it == "Children" )
1049 (*lit)->setText( tr( "Children" ) );
1016 } 1050 }
1017} 1051}
1018 1052
1019void ContactEditor::accept() { 1053void ContactEditor::accept() {
1020 1054
1021 if ( isEmpty() ) { 1055 if ( isEmpty() ) {
1022 cleanupFields(); 1056 cleanupFields();
1023 reject(); 1057 reject();
1024 } else { 1058 } else {
1025 saveEntry(); 1059 saveEntry();
1026 cleanupFields(); 1060 cleanupFields();
1027 QDialog::accept(); 1061 QDialog::accept();
1028 } 1062 }
1029 1063
1030} 1064}
1031 1065
1032void ContactEditor::slotNote() { 1066void ContactEditor::slotNote() {
1033 1067
1034 dlgNote->showMaximized(); 1068 dlgNote->showMaximized();
1035 if ( !dlgNote->exec() ) { 1069 if ( !dlgNote->exec() ) {
1036 txtNote->setText( ent.notes() ); 1070 txtNote->setText( ent.notes() );
1037 } 1071 }
1038} 1072}
1039 1073
@@ -1353,79 +1387,79 @@ void ContactEditor::setEntry( const OContact &entry ) {
1353*/ 1387*/
1354 if (hasCity) { 1388 if (hasCity) {
1355 slHomeAddress[3] = ent.homeCity(); 1389 slHomeAddress[3] = ent.homeCity();
1356 slBusinessAddress[3] = ent.businessCity(); 1390 slBusinessAddress[3] = ent.businessCity();
1357 } 1391 }
1358 1392
1359 if (hasState) { 1393 if (hasState) {
1360 slHomeAddress[4] = ent.homeState(); 1394 slHomeAddress[4] = ent.homeState();
1361 slBusinessAddress[4] = ent.businessState(); 1395 slBusinessAddress[4] = ent.businessState();
1362 } 1396 }
1363 1397
1364 if (hasZip) { 1398 if (hasZip) {
1365 slHomeAddress[5] = ent.homeZip(); 1399 slHomeAddress[5] = ent.homeZip();
1366 slBusinessAddress[5] = ent.businessZip(); 1400 slBusinessAddress[5] = ent.businessZip();
1367 } 1401 }
1368 1402
1369 if (hasCountry) { 1403 if (hasCountry) {
1370 slHomeAddress[6] = ent.homeCountry(); 1404 slHomeAddress[6] = ent.homeCountry();
1371 slBusinessAddress[6] = ent.businessCountry(); 1405 slBusinessAddress[6] = ent.businessCountry();
1372 } 1406 }
1373 1407
1374 QStringList::ConstIterator it; 1408 QStringList::ConstIterator it;
1375 QListIterator<QLineEdit> itLE( listValue ); 1409 QListIterator<QLineEdit> itLE( listValue );
1376 for ( it = slDynamicEntries.begin(); it != slDynamicEntries.end(); ++it, ++itLE) { 1410 for ( it = slDynamicEntries.begin(); it != slDynamicEntries.end(); ++it, ++itLE) {
1377 if ( *it == tr( "Department" ) ) 1411 if ( *it == "Department" )
1378 (*itLE)->setText( ent.department() ); 1412 (*itLE)->setText( ent.department() );
1379 1413
1380 if ( *it == tr( "Company" ) ) 1414 if ( *it == "Company" )
1381 (*itLE)->setText( ent.company() ); 1415 (*itLE)->setText( ent.company() );
1382 1416
1383 if ( *it == tr( "Office" ) ) 1417 if ( *it == "Office" )
1384 (*itLE)->setText( ent.office() ); 1418 (*itLE)->setText( ent.office() );
1385 1419
1386 if ( *it == tr( "Profession" ) ) 1420 if ( *it == "Profession" )
1387 (*itLE)->setText( ent.profession() ); 1421 (*itLE)->setText( ent.profession() );
1388 1422
1389 if ( *it == tr( "Assistant" ) ) 1423 if ( *it == "Assistant" )
1390 (*itLE)->setText( ent.assistant() ); 1424 (*itLE)->setText( ent.assistant() );
1391 1425
1392 if ( *it == tr( "Manager" ) ) 1426 if ( *it == "Manager" )
1393 (*itLE)->setText( ent.manager() ); 1427 (*itLE)->setText( ent.manager() );
1394 1428
1395 if ( *it == tr( "Spouse" ) ) 1429 if ( *it == "Spouse" )
1396 (*itLE)->setText( ent.spouse() ); 1430 (*itLE)->setText( ent.spouse() );
1397 1431
1398 if ( *it == tr( "Birthday" ) ) 1432 if ( *it == "Birthday" )
1399 (*itLE)->setText( ent.birthday() ); 1433 (*itLE)->setText( ent.birthday() );
1400 1434
1401 if ( *it == tr( "Anniversary" ) ) 1435 if ( *it == "Anniversary" )
1402 (*itLE)->setText( ent.anniversary() ); 1436 (*itLE)->setText( ent.anniversary() );
1403 1437
1404 if ( *it == tr( "Nickname" ) ) 1438 if ( *it == "Nickname" )
1405 (*itLE)->setText( ent.nickname() ); 1439 (*itLE)->setText( ent.nickname() );
1406 1440
1407 if ( *it == tr( "Children" ) ) 1441 if ( *it == "Children" )
1408 (*itLE)->setText( ent.children() ); 1442 (*itLE)->setText( ent.children() );
1409 1443
1410 } 1444 }
1411 1445
1412 QStringList::Iterator itV; 1446 QStringList::Iterator itV;
1413 for ( it = slChooserNames.begin(), itV = slChooserValues.begin(); it != slChooserNames.end(); ++it, ++itV ) { 1447 for ( it = slChooserNames.begin(), itV = slChooserValues.begin(); it != slChooserNames.end(); ++it, ++itV ) {
1414 1448
1415 if ( ( *it == "Business Phone") || ( *it == "Work Phone" ) ) 1449 if ( ( *it == "Business Phone") || ( *it == "Work Phone" ) )
1416 *itV = ent.businessPhone(); 1450 *itV = ent.businessPhone();
1417/* 1451/*
1418 if ( *it == "Business 2 Phone" ) 1452 if ( *it == "Business 2 Phone" )
1419 *itV = ent.business2Phone(); 1453 *itV = ent.business2Phone();
1420*/ 1454*/
1421 if ( ( *it == "Business Fax") || ( *it == "Work Fax" ) ) 1455 if ( ( *it == "Business Fax") || ( *it == "Work Fax" ) )
1422 *itV = ent.businessFax(); 1456 *itV = ent.businessFax();
1423 1457
1424 if ( ( *it == "Business Mobile" ) || ( *it == "work Mobile" ) ) 1458 if ( ( *it == "Business Mobile" ) || ( *it == "work Mobile" ) )
1425 *itV = ent.businessMobile(); 1459 *itV = ent.businessMobile();
1426/* 1460/*
1427 if ( *it == "Company Phone" ) 1461 if ( *it == "Company Phone" )
1428 *itV = ent.companyPhone(); 1462 *itV = ent.companyPhone();
1429*/ 1463*/
1430 if ( *it == "Default Email" ) 1464 if ( *it == "Default Email" )
1431 *itV = ent.defaultEmail(); 1465 *itV = ent.defaultEmail();
@@ -1551,79 +1585,79 @@ void ContactEditor::saveEntry() {
1551*/ 1585*/
1552 if (hasCity) { 1586 if (hasCity) {
1553 ent.setHomeCity( slHomeAddress[3] ); 1587 ent.setHomeCity( slHomeAddress[3] );
1554 ent.setBusinessCity( slBusinessAddress[3] ); 1588 ent.setBusinessCity( slBusinessAddress[3] );
1555 } 1589 }
1556 1590
1557 if (hasState) { 1591 if (hasState) {
1558 ent.setHomeState( slHomeAddress[4] ); 1592 ent.setHomeState( slHomeAddress[4] );
1559 ent.setBusinessState( slBusinessAddress[4] ); 1593 ent.setBusinessState( slBusinessAddress[4] );
1560 } 1594 }
1561 1595
1562 if (hasZip) { 1596 if (hasZip) {
1563 ent.setHomeZip( slHomeAddress[5] ); 1597 ent.setHomeZip( slHomeAddress[5] );
1564 ent.setBusinessZip( slBusinessAddress[5] ); 1598 ent.setBusinessZip( slBusinessAddress[5] );
1565 } 1599 }
1566 1600
1567 if (hasCountry) { 1601 if (hasCountry) {
1568 ent.setHomeCountry( slHomeAddress[6] ); 1602 ent.setHomeCountry( slHomeAddress[6] );
1569 ent.setBusinessCountry( slBusinessAddress[6] ); 1603 ent.setBusinessCountry( slBusinessAddress[6] );
1570 } 1604 }
1571 1605
1572 QStringList::ConstIterator it; 1606 QStringList::ConstIterator it;
1573 QListIterator<QLineEdit> itLE( listValue ); 1607 QListIterator<QLineEdit> itLE( listValue );
1574 for ( it = slDynamicEntries.begin(); it != slDynamicEntries.end(); ++it, ++itLE) { 1608 for ( it = slDynamicEntries.begin(); it != slDynamicEntries.end(); ++it, ++itLE) {
1575 if ( *it == tr( "Department" ) ) 1609 if ( *it == "Department" )
1576 ent.setDepartment( (*itLE)->text() ); 1610 ent.setDepartment( (*itLE)->text() );
1577 1611
1578 if ( *it == tr( "Company" ) ) 1612 if ( *it == "Company" )
1579 ent.setCompany( (*itLE)->text() ); 1613 ent.setCompany( (*itLE)->text() );
1580 1614
1581 if ( *it == tr( "Office" ) ) 1615 if ( *it == "Office" )
1582 ent.setOffice( (*itLE)->text() ); 1616 ent.setOffice( (*itLE)->text() );
1583 1617
1584 if ( *it == tr( "Profession" ) ) 1618 if ( *it == "Profession" )
1585 ent.setProfession( (*itLE)->text() ); 1619 ent.setProfession( (*itLE)->text() );
1586 1620
1587 if ( *it == tr( "Assistant" ) ) 1621 if ( *it == "Assistant" )
1588 ent.setAssistant( (*itLE)->text() ); 1622 ent.setAssistant( (*itLE)->text() );
1589 1623
1590 if ( *it == tr( "Manager" ) ) 1624 if ( *it == "Manager" )
1591 ent.setManager( (*itLE)->text() ); 1625 ent.setManager( (*itLE)->text() );
1592 1626
1593 if ( *it == tr( "Spouse" ) ) 1627 if ( *it == "Spouse" )
1594 ent.setSpouse( (*itLE)->text() ); 1628 ent.setSpouse( (*itLE)->text() );
1595 1629
1596 if ( *it == tr( "Birthday" ) ) 1630 if ( *it == "Birthday" )
1597 ent.setBirthday( (*itLE)->text() ); 1631 ent.setBirthday( (*itLE)->text() );
1598 1632
1599 if ( *it == tr( "Anniversary" ) ) 1633 if ( *it == "Anniversary" )
1600 ent.setAnniversary( (*itLE)->text() ); 1634 ent.setAnniversary( (*itLE)->text() );
1601 1635
1602 if ( *it == tr( "Nickname" ) ) 1636 if ( *it == "Nickname" )
1603 ent.setNickname( (*itLE)->text() ); 1637 ent.setNickname( (*itLE)->text() );
1604 1638
1605 if ( *it == tr( "Children" ) ) 1639 if ( *it == "Children" )
1606 ent.setChildren( (*itLE)->text() ); 1640 ent.setChildren( (*itLE)->text() );
1607 1641
1608 } 1642 }
1609 1643
1610 QStringList::ConstIterator itV; 1644 QStringList::ConstIterator itV;
1611 for ( it = slChooserNames.begin(), itV = slChooserValues.begin(); it != slChooserNames.end(); ++it, ++itV ) { 1645 for ( it = slChooserNames.begin(), itV = slChooserValues.begin(); it != slChooserNames.end(); ++it, ++itV ) {
1612 1646
1613 if ( ( *it == "Business Phone" ) || ( *it == "Work Phone" ) ) 1647 if ( ( *it == "Business Phone" ) || ( *it == "Work Phone" ) )
1614 ent.setBusinessPhone( *itV ); 1648 ent.setBusinessPhone( *itV );
1615/* 1649/*
1616 if ( *it == tr("Business 2 Phone" ) 1650 if ( *it == tr("Business 2 Phone" )
1617 ent.setBusiness2Phone( *itV ); 1651 ent.setBusiness2Phone( *itV );
1618*/ 1652*/
1619 if ( ( *it == "Business Fax" ) || ( *it == "Work Fax" ) ) 1653 if ( ( *it == "Business Fax" ) || ( *it == "Work Fax" ) )
1620 ent.setBusinessFax( *itV ); 1654 ent.setBusinessFax( *itV );
1621 1655
1622 if ( ( *it == "Business Mobile" ) || ( *it == "Work Mobile" ) ) 1656 if ( ( *it == "Business Mobile" ) || ( *it == "Work Mobile" ) )
1623 ent.setBusinessMobile( *itV ); 1657 ent.setBusinessMobile( *itV );
1624/* 1658/*
1625 if ( *it == "Company Phone" ) 1659 if ( *it == "Company Phone" )
1626 ent.setCompanyPhone( *itV ); 1660 ent.setCompanyPhone( *itV );
1627*/ 1661*/
1628 //if ( *it == "Default Email" ) 1662 //if ( *it == "Default Email" )
1629 //ent.setDefaultEmail( *itV ); 1663 //ent.setDefaultEmail( *itV );