-rw-r--r-- | core/pim/addressbook/contacteditor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp index fd7f009..5c1391b 100644 --- a/core/pim/addressbook/contacteditor.cpp +++ b/core/pim/addressbook/contacteditor.cpp | |||
@@ -1372,97 +1372,97 @@ void ContactEditor::setEntry( const OContact &entry ) { | |||
1372 | if ( *it == tr("Profession" )) | 1372 | if ( *it == tr("Profession" )) |
1373 | (*itLE)->setText( ent.profession() ); | 1373 | (*itLE)->setText( ent.profession() ); |
1374 | 1374 | ||
1375 | if ( *it == tr("Assistant" )) | 1375 | if ( *it == tr("Assistant" )) |
1376 | (*itLE)->setText( ent.assistant() ); | 1376 | (*itLE)->setText( ent.assistant() ); |
1377 | 1377 | ||
1378 | if ( *it == tr("Manager" )) | 1378 | if ( *it == tr("Manager" )) |
1379 | (*itLE)->setText( ent.manager() ); | 1379 | (*itLE)->setText( ent.manager() ); |
1380 | 1380 | ||
1381 | if ( *it == tr("Spouse" )) | 1381 | if ( *it == tr("Spouse" )) |
1382 | (*itLE)->setText( ent.spouse() ); | 1382 | (*itLE)->setText( ent.spouse() ); |
1383 | 1383 | ||
1384 | if ( *it == tr("Birthday" )) | 1384 | if ( *it == tr("Birthday" )) |
1385 | (*itLE)->setText( ent.birthday() ); | 1385 | (*itLE)->setText( ent.birthday() ); |
1386 | 1386 | ||
1387 | if ( *it == tr("Anniversary" )) | 1387 | if ( *it == tr("Anniversary" )) |
1388 | (*itLE)->setText( ent.anniversary() ); | 1388 | (*itLE)->setText( ent.anniversary() ); |
1389 | 1389 | ||
1390 | if ( *it == tr("Nickname" )) | 1390 | if ( *it == tr("Nickname" )) |
1391 | (*itLE)->setText( ent.nickname() ); | 1391 | (*itLE)->setText( ent.nickname() ); |
1392 | 1392 | ||
1393 | if ( *it == tr("Children" )) | 1393 | if ( *it == tr("Children" )) |
1394 | (*itLE)->setText( ent.children() ); | 1394 | (*itLE)->setText( ent.children() ); |
1395 | 1395 | ||
1396 | } | 1396 | } |
1397 | 1397 | ||
1398 | QStringList::Iterator itV; | 1398 | QStringList::Iterator itV; |
1399 | for ( it = slChooserNames.begin(), itV = slChooserValues.begin(); it != slChooserNames.end(); ++it, ++itV ) { | 1399 | for ( it = slChooserNames.begin(), itV = slChooserValues.begin(); it != slChooserNames.end(); ++it, ++itV ) { |
1400 | 1400 | ||
1401 | if ( *it == tr("Business Phone") || *it == tr("Work Phone" )) | 1401 | if ( *it == tr("Business Phone") || *it == tr("Work Phone" )) |
1402 | *itV = ent.businessPhone(); | 1402 | *itV = ent.businessPhone(); |
1403 | /* | 1403 | /* |
1404 | if ( *it == "Business 2 Phone" ) | 1404 | if ( *it == "Business 2 Phone" ) |
1405 | *itV = ent.business2Phone(); | 1405 | *itV = ent.business2Phone(); |
1406 | */ | 1406 | */ |
1407 | if ( *it == tr("Business Fax") || *it == tr("Work Fax" )) | 1407 | if ( *it == tr("Business Fax") || *it == tr("Work Fax" )) |
1408 | *itV = ent.businessFax(); | 1408 | *itV = ent.businessFax(); |
1409 | 1409 | ||
1410 | if ( *it == tr("Business Mobile") || *it == tr("work Mobile" )) | 1410 | if ( *it == tr("Business Mobile") || *it == tr("work Mobile" )) |
1411 | *itV = ent.businessMobile(); | 1411 | *itV = ent.businessMobile(); |
1412 | /* | 1412 | /* |
1413 | if ( *it == "Company Phone" ) | 1413 | if ( *it == "Company Phone" ) |
1414 | *itV = ent.companyPhone(); | 1414 | *itV = ent.companyPhone(); |
1415 | */ | 1415 | */ |
1416 | if ( *it == tr("Default Email" )) | 1416 | if ( *it == tr("Default Email" )) |
1417 | *itV = ent.defaultEmail(); | 1417 | *itV = ent.defaultEmail(); |
1418 | 1418 | ||
1419 | if ( *it == tr("Emails" )) | 1419 | if ( *it == tr("Emails" )) |
1420 | *itV = ent.emailList().join(";"); | 1420 | *itV = ent.emailList().join(","); // :SX |
1421 | 1421 | ||
1422 | if ( *it == tr("Home Phone" )) | 1422 | if ( *it == tr("Home Phone" )) |
1423 | *itV = ent.homePhone(); | 1423 | *itV = ent.homePhone(); |
1424 | /* | 1424 | /* |
1425 | if ( *it == "Home 2 Phone" ) | 1425 | if ( *it == "Home 2 Phone" ) |
1426 | *itV = ent.home2Phone(); | 1426 | *itV = ent.home2Phone(); |
1427 | */ | 1427 | */ |
1428 | if ( *it == tr("Home Fax" )) | 1428 | if ( *it == tr("Home Fax" )) |
1429 | *itV = ent.homeFax(); | 1429 | *itV = ent.homeFax(); |
1430 | 1430 | ||
1431 | if ( *it == tr("Home Mobile" )) | 1431 | if ( *it == tr("Home Mobile" )) |
1432 | *itV = ent.homeMobile(); | 1432 | *itV = ent.homeMobile(); |
1433 | /* | 1433 | /* |
1434 | if ( *it == "Car Phone" ) | 1434 | if ( *it == "Car Phone" ) |
1435 | *itV = ent.carPhone(); | 1435 | *itV = ent.carPhone(); |
1436 | 1436 | ||
1437 | if ( *it == "ISDN Phone" ) | 1437 | if ( *it == "ISDN Phone" ) |
1438 | *itV = ent.ISDNPhone(); | 1438 | *itV = ent.ISDNPhone(); |
1439 | 1439 | ||
1440 | if ( *it == "Other Phone" ) | 1440 | if ( *it == "Other Phone" ) |
1441 | *itV = ent.otherPhone(); | 1441 | *itV = ent.otherPhone(); |
1442 | */ | 1442 | */ |
1443 | if ( *it == tr("Business Pager") || *it == tr("Work Pager" )) | 1443 | if ( *it == tr("Business Pager") || *it == tr("Work Pager" )) |
1444 | *itV = ent.businessPager(); | 1444 | *itV = ent.businessPager(); |
1445 | /* | 1445 | /* |
1446 | if ( *it == "Home Pager") | 1446 | if ( *it == "Home Pager") |
1447 | *itV = ent.homePager(); | 1447 | *itV = ent.homePager(); |
1448 | 1448 | ||
1449 | if ( *it == "AIM IM" ) | 1449 | if ( *it == "AIM IM" ) |
1450 | *itV = ent.AIMIM(); | 1450 | *itV = ent.AIMIM(); |
1451 | 1451 | ||
1452 | if ( *it == "ICQ IM" ) | 1452 | if ( *it == "ICQ IM" ) |
1453 | *itV = ent.ICQIM(); | 1453 | *itV = ent.ICQIM(); |
1454 | 1454 | ||
1455 | if ( *it == "Jabber IM" ) | 1455 | if ( *it == "Jabber IM" ) |
1456 | *itV = ent.jabberIM(); | 1456 | *itV = ent.jabberIM(); |
1457 | 1457 | ||
1458 | if ( *it == "MSN IM" ) | 1458 | if ( *it == "MSN IM" ) |
1459 | *itV = ent.MSNIM(); | 1459 | *itV = ent.MSNIM(); |
1460 | 1460 | ||
1461 | if ( *it == "Yahoo IM" ) | 1461 | if ( *it == "Yahoo IM" ) |
1462 | *itV = ent.yahooIM(); | 1462 | *itV = ent.yahooIM(); |
1463 | */ | 1463 | */ |
1464 | if ( *it == tr("Home Web Page") ) | 1464 | if ( *it == tr("Home Web Page") ) |
1465 | *itV = ent.homeWebpage(); | 1465 | *itV = ent.homeWebpage(); |
1466 | if ( *it == tr("Business WebPage") || *it == tr("Work Web Page") ) | 1466 | if ( *it == tr("Business WebPage") || *it == tr("Work Web Page") ) |
1467 | *itV = ent.businessWebpage(); | 1467 | *itV = ent.businessWebpage(); |
1468 | 1468 | ||
@@ -1572,96 +1572,97 @@ void ContactEditor::saveEntry() { | |||
1572 | if ( *it == tr("Assistant" )) | 1572 | if ( *it == tr("Assistant" )) |
1573 | ent.setAssistant( (*itLE)->text() ); | 1573 | ent.setAssistant( (*itLE)->text() ); |
1574 | 1574 | ||
1575 | if ( *it == tr("Manager" )) | 1575 | if ( *it == tr("Manager" )) |
1576 | ent.setManager( (*itLE)->text() ); | 1576 | ent.setManager( (*itLE)->text() ); |
1577 | 1577 | ||
1578 | if ( *it == tr("Spouse" )) | 1578 | if ( *it == tr("Spouse" )) |
1579 | ent.setSpouse( (*itLE)->text() ); | 1579 | ent.setSpouse( (*itLE)->text() ); |
1580 | 1580 | ||
1581 | if ( *it == tr("Birthday" )) | 1581 | if ( *it == tr("Birthday" )) |
1582 | ent.setBirthday( (*itLE)->text() ); | 1582 | ent.setBirthday( (*itLE)->text() ); |
1583 | 1583 | ||
1584 | if ( *it == tr("Anniversary" )) | 1584 | if ( *it == tr("Anniversary" )) |
1585 | ent.setAnniversary( (*itLE)->text() ); | 1585 | ent.setAnniversary( (*itLE)->text() ); |
1586 | 1586 | ||
1587 | if ( *it == tr("Nickname" )) | 1587 | if ( *it == tr("Nickname" )) |
1588 | ent.setNickname( (*itLE)->text() ); | 1588 | ent.setNickname( (*itLE)->text() ); |
1589 | 1589 | ||
1590 | if ( *it == tr("Children" )) | 1590 | if ( *it == tr("Children" )) |
1591 | ent.setChildren( (*itLE)->text() ); | 1591 | ent.setChildren( (*itLE)->text() ); |
1592 | 1592 | ||
1593 | } | 1593 | } |
1594 | 1594 | ||
1595 | QStringList::ConstIterator itV; | 1595 | QStringList::ConstIterator itV; |
1596 | for ( it = slChooserNames.begin(), itV = slChooserValues.begin(); it != slChooserNames.end(); ++it, ++itV ) { | 1596 | for ( it = slChooserNames.begin(), itV = slChooserValues.begin(); it != slChooserNames.end(); ++it, ++itV ) { |
1597 | 1597 | ||
1598 | if ( *it == tr("Business Phone") || *it == tr("Work Phone" )) | 1598 | if ( *it == tr("Business Phone") || *it == tr("Work Phone" )) |
1599 | ent.setBusinessPhone( *itV ); | 1599 | ent.setBusinessPhone( *itV ); |
1600 | /* | 1600 | /* |
1601 | if ( *it == tr("Business 2 Phone" ) | 1601 | if ( *it == tr("Business 2 Phone" ) |
1602 | ent.setBusiness2Phone( *itV ); | 1602 | ent.setBusiness2Phone( *itV ); |
1603 | */ | 1603 | */ |
1604 | if ( *it == tr("Business Fax") || *it == tr("Work Fax" )) | 1604 | if ( *it == tr("Business Fax") || *it == tr("Work Fax" )) |
1605 | ent.setBusinessFax( *itV ); | 1605 | ent.setBusinessFax( *itV ); |
1606 | 1606 | ||
1607 | if ( *it == tr("Business Mobile") || *it == tr("Work Mobile" )) | 1607 | if ( *it == tr("Business Mobile") || *it == tr("Work Mobile" )) |
1608 | ent.setBusinessMobile( *itV ); | 1608 | ent.setBusinessMobile( *itV ); |
1609 | /* | 1609 | /* |
1610 | if ( *it == "Company Phone" ) | 1610 | if ( *it == "Company Phone" ) |
1611 | ent.setCompanyPhone( *itV ); | 1611 | ent.setCompanyPhone( *itV ); |
1612 | */ | 1612 | */ |
1613 | //if ( *it == "Default Email" ) | 1613 | //if ( *it == "Default Email" ) |
1614 | //ent.setDefaultEmail( *itV ); | 1614 | //ent.setDefaultEmail( *itV ); |
1615 | 1615 | ||
1616 | if ( *it == tr("Emails" )) { | 1616 | if ( *it == tr("Emails" )) { |
1617 | QString allemail; | 1617 | QString allemail; |
1618 | QString defaultmail; | 1618 | QString defaultmail; |
1619 | parseEmailFrom( *itV, defaultmail, allemail ); | 1619 | parseEmailFrom( *itV, defaultmail, allemail ); |
1620 | ent.clearEmails(); | ||
1620 | ent.setDefaultEmail( defaultmail ); | 1621 | ent.setDefaultEmail( defaultmail ); |
1621 | ent.insertEmails( *itV ); | 1622 | ent.insertEmails( *itV ); |
1622 | } | 1623 | } |
1623 | 1624 | ||
1624 | if ( *it == tr("Home Phone" )) | 1625 | if ( *it == tr("Home Phone" )) |
1625 | ent.setHomePhone( *itV ); | 1626 | ent.setHomePhone( *itV ); |
1626 | /* | 1627 | /* |
1627 | if ( *it == "Home 2 Phone" ) | 1628 | if ( *it == "Home 2 Phone" ) |
1628 | ent.setHome2Phone( *itV ); | 1629 | ent.setHome2Phone( *itV ); |
1629 | */ | 1630 | */ |
1630 | if ( *it == tr("Home Fax" )) | 1631 | if ( *it == tr("Home Fax" )) |
1631 | ent.setHomeFax( *itV ); | 1632 | ent.setHomeFax( *itV ); |
1632 | 1633 | ||
1633 | if ( *it == tr("Home Mobile" )) | 1634 | if ( *it == tr("Home Mobile" )) |
1634 | ent.setHomeMobile( *itV ); | 1635 | ent.setHomeMobile( *itV ); |
1635 | /* | 1636 | /* |
1636 | if ( *it == "Car Phone" ) | 1637 | if ( *it == "Car Phone" ) |
1637 | ent.setCarPhone( *itV ); | 1638 | ent.setCarPhone( *itV ); |
1638 | 1639 | ||
1639 | if ( *it == "ISDN Phone" ) | 1640 | if ( *it == "ISDN Phone" ) |
1640 | ent.setISDNPhone( *itV ); | 1641 | ent.setISDNPhone( *itV ); |
1641 | 1642 | ||
1642 | if ( *it == "Other Phone" ) | 1643 | if ( *it == "Other Phone" ) |
1643 | ent.setOtherPhone( *itV ); | 1644 | ent.setOtherPhone( *itV ); |
1644 | */ | 1645 | */ |
1645 | if ( *it == tr("Business Pager") || *it == tr("Work Pager") ) | 1646 | if ( *it == tr("Business Pager") || *it == tr("Work Pager") ) |
1646 | ent.setBusinessPager( *itV ); | 1647 | ent.setBusinessPager( *itV ); |
1647 | /* | 1648 | /* |
1648 | if ( *it == "Home Pager" ) | 1649 | if ( *it == "Home Pager" ) |
1649 | ent.setHomePager( *itV ); | 1650 | ent.setHomePager( *itV ); |
1650 | 1651 | ||
1651 | if ( *it == "AIM IM" ) | 1652 | if ( *it == "AIM IM" ) |
1652 | ent.setAIMIM( *itV ); | 1653 | ent.setAIMIM( *itV ); |
1653 | 1654 | ||
1654 | if ( *it == "ICQ IM" ) | 1655 | if ( *it == "ICQ IM" ) |
1655 | ent.setICQIM( *itV ); | 1656 | ent.setICQIM( *itV ); |
1656 | 1657 | ||
1657 | if ( *it == "Jabber IM" ) | 1658 | if ( *it == "Jabber IM" ) |
1658 | ent.setJabberIM( *itV ); | 1659 | ent.setJabberIM( *itV ); |
1659 | 1660 | ||
1660 | if ( *it == "MSN IM" ) | 1661 | if ( *it == "MSN IM" ) |
1661 | ent.setMSNIM( *itV ); | 1662 | ent.setMSNIM( *itV ); |
1662 | 1663 | ||
1663 | if ( *it == "Yahoo IM" ) | 1664 | if ( *it == "Yahoo IM" ) |
1664 | ent.setYahooIM( *itV ); | 1665 | ent.setYahooIM( *itV ); |
1665 | */ | 1666 | */ |
1666 | if ( *it == tr("Home Web Page") ) | 1667 | if ( *it == tr("Home Web Page") ) |
1667 | ent.setHomeWebpage( *itV ); | 1668 | ent.setHomeWebpage( *itV ); |