-rw-r--r-- | kaddressbook/kabcore.cpp | 2 | ||||
-rw-r--r-- | kaddressbook/kaimportoldialog.cpp | 60 |
2 files changed, 59 insertions, 3 deletions
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 013e243..f21507a 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -1713,3 +1713,3 @@ void KABCore::initActions() | |||
1713 | "remove_voice" ); | 1713 | "remove_voice" ); |
1714 | mActionImportOL = new KAction( i18n( "Import from OL..." ), 0, this, | 1714 | mActionImportOL = new KAction( i18n( "Import from Outlook..." ), 0, this, |
1715 | SLOT( importFromOL() ), actionCollection(), | 1715 | SLOT( importFromOL() ), actionCollection(), |
diff --git a/kaddressbook/kaimportoldialog.cpp b/kaddressbook/kaimportoldialog.cpp index ef949e7..10e3c76 100644 --- a/kaddressbook/kaimportoldialog.cpp +++ b/kaddressbook/kaimportoldialog.cpp | |||
@@ -270,3 +270,3 @@ void KAImportOLdialog::ol2kapiContact( _ContactItem * aItem ) | |||
270 | addressee.setOrganization( QString::fromUcs2(aItem->GetCompanyName().GetBuffer()) ); | 270 | addressee.setOrganization( QString::fromUcs2(aItem->GetCompanyName().GetBuffer()) ); |
271 | addressee.setNote( QString::fromUcs2(aItem->GetBody().GetBuffer()) ); | 271 | QString notesStr = QString::fromUcs2(aItem->GetBody().GetBuffer()); |
272 | 272 | ||
@@ -605,3 +605,59 @@ void KAImportOLdialog::ol2kapiContact( _ContactItem * aItem ) | |||
605 | } | 605 | } |
606 | 606 | QString additionalInfo; | |
607 | QString tempAdd; | ||
608 | tempAdd = QString::fromUcs2(aItem->GetLanguage().GetBuffer()); | ||
609 | if ( ! tempAdd.isEmpty() ) { | ||
610 | additionalInfo += i18n("\nLanguage: "); | ||
611 | additionalInfo += tempAdd; | ||
612 | } | ||
613 | tempAdd = QString::fromUcs2(aItem->GetHobby().GetBuffer()); | ||
614 | if ( ! tempAdd.isEmpty() ) { | ||
615 | additionalInfo += i18n("\nHobby: "); | ||
616 | additionalInfo += tempAdd;; | ||
617 | } | ||
618 | tempAdd =QString::fromUcs2(aItem->GetPersonalHomePage().GetBuffer()); | ||
619 | if ( ! tempAdd.isEmpty() ) { | ||
620 | additionalInfo += i18n("\nHomepage: "); | ||
621 | additionalInfo += tempAdd;; | ||
622 | } | ||
623 | tempAdd = QString::fromUcs2(aItem->GetBillingInformation().GetBuffer()); | ||
624 | if ( ! tempAdd.isEmpty() ) { | ||
625 | additionalInfo += i18n("\nBilling information: "); | ||
626 | additionalInfo += tempAdd;; | ||
627 | } | ||
628 | tempAdd = QString::fromUcs2(aItem->GetCustomerID().GetBuffer()); | ||
629 | if ( ! tempAdd.isEmpty() ) { | ||
630 | additionalInfo += i18n("\nCustomer ID: "); | ||
631 | additionalInfo += tempAdd;; | ||
632 | } | ||
633 | tempAdd = QString::fromUcs2(aItem->GetUser1().GetBuffer()); | ||
634 | if ( ! tempAdd.isEmpty() ) { | ||
635 | additionalInfo += i18n("\nUser1: "); | ||
636 | additionalInfo += tempAdd;; | ||
637 | } | ||
638 | tempAdd = QString::fromUcs2(aItem->GetUser2().GetBuffer()); | ||
639 | if ( ! tempAdd.isEmpty() ) { | ||
640 | additionalInfo += i18n("\nUser2: "); | ||
641 | additionalInfo += tempAdd;; | ||
642 | } | ||
643 | tempAdd = QString::fromUcs2(aItem->GetUser3().GetBuffer()); | ||
644 | if ( ! tempAdd.isEmpty() ) { | ||
645 | additionalInfo += i18n("\nUser3: "); | ||
646 | additionalInfo += tempAdd;; | ||
647 | } | ||
648 | tempAdd = QString::fromUcs2(aItem->GetUser4().GetBuffer()); | ||
649 | if ( ! tempAdd.isEmpty() ) { | ||
650 | additionalInfo += i18n("\nUser4: "); | ||
651 | additionalInfo += tempAdd;; | ||
652 | } | ||
653 | if (!additionalInfo.isEmpty() ) { | ||
654 | tempAdd = notesStr; | ||
655 | notesStr = "+++++++++++++++++++++++++++\n"; | ||
656 | notesStr += i18n("Additonal fields created\nby KA/Pi Outlook import:"); | ||
657 | notesStr += additionalInfo; | ||
658 | notesStr += i18n("\nEnd additonal fields created\nby KA/Pi Outlook import!\n"); | ||
659 | notesStr += "+++++++++++++++++++++++++++\n"; | ||
660 | notesStr += tempAdd; | ||
661 | } | ||
662 | addressee.setNote( notesStr ); | ||
607 | #if 0 | 663 | #if 0 |