summaryrefslogtreecommitdiffabout
path: root/kaddressbook/kaimportoldialog.cpp
Side-by-side diff
Diffstat (limited to 'kaddressbook/kaimportoldialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/kaimportoldialog.cpp60
1 files changed, 58 insertions, 2 deletions
diff --git a/kaddressbook/kaimportoldialog.cpp b/kaddressbook/kaimportoldialog.cpp
index ef949e7..10e3c76 100644
--- a/kaddressbook/kaimportoldialog.cpp
+++ b/kaddressbook/kaimportoldialog.cpp
@@ -268,7 +268,7 @@ void KAImportOLdialog::ol2kapiContact( _ContactItem * aItem )
//addressee.setTitle( QString::fromUcs2(aItem->GetJobTitle().GetBuffer()) );// titel is the prefix
addressee.setRole( QString::fromUcs2(aItem->GetJobTitle().GetBuffer()) );
addressee.setOrganization( QString::fromUcs2(aItem->GetCompanyName().GetBuffer()) );
- addressee.setNote( QString::fromUcs2(aItem->GetBody().GetBuffer()) );
+ QString notesStr = QString::fromUcs2(aItem->GetBody().GetBuffer());
addressee.setProductId( QString::fromUcs2(aItem->GetCustomerID().GetBuffer()) );
//addressee.setRevision( const QDateTime &revision );
@@ -603,7 +603,63 @@ void KAImportOLdialog::ol2kapiContact( _ContactItem * aItem )
else
addressee.insertCustom( "KADDRESSBOOK", "X-Gender", "male" );
}
-
+ QString additionalInfo;
+ QString tempAdd;
+ tempAdd = QString::fromUcs2(aItem->GetLanguage().GetBuffer());
+ if ( ! tempAdd.isEmpty() ) {
+ additionalInfo += i18n("\nLanguage: ");
+ additionalInfo += tempAdd;
+ }
+ tempAdd = QString::fromUcs2(aItem->GetHobby().GetBuffer());
+ if ( ! tempAdd.isEmpty() ) {
+ additionalInfo += i18n("\nHobby: ");
+ additionalInfo += tempAdd;;
+ }
+ tempAdd =QString::fromUcs2(aItem->GetPersonalHomePage().GetBuffer());
+ if ( ! tempAdd.isEmpty() ) {
+ additionalInfo += i18n("\nHomepage: ");
+ additionalInfo += tempAdd;;
+ }
+ tempAdd = QString::fromUcs2(aItem->GetBillingInformation().GetBuffer());
+ if ( ! tempAdd.isEmpty() ) {
+ additionalInfo += i18n("\nBilling information: ");
+ additionalInfo += tempAdd;;
+ }
+ tempAdd = QString::fromUcs2(aItem->GetCustomerID().GetBuffer());
+ if ( ! tempAdd.isEmpty() ) {
+ additionalInfo += i18n("\nCustomer ID: ");
+ additionalInfo += tempAdd;;
+ }
+ tempAdd = QString::fromUcs2(aItem->GetUser1().GetBuffer());
+ if ( ! tempAdd.isEmpty() ) {
+ additionalInfo += i18n("\nUser1: ");
+ additionalInfo += tempAdd;;
+ }
+ tempAdd = QString::fromUcs2(aItem->GetUser2().GetBuffer());
+ if ( ! tempAdd.isEmpty() ) {
+ additionalInfo += i18n("\nUser2: ");
+ additionalInfo += tempAdd;;
+ }
+ tempAdd = QString::fromUcs2(aItem->GetUser3().GetBuffer());
+ if ( ! tempAdd.isEmpty() ) {
+ additionalInfo += i18n("\nUser3: ");
+ additionalInfo += tempAdd;;
+ }
+ tempAdd = QString::fromUcs2(aItem->GetUser4().GetBuffer());
+ if ( ! tempAdd.isEmpty() ) {
+ additionalInfo += i18n("\nUser4: ");
+ additionalInfo += tempAdd;;
+ }
+ if (!additionalInfo.isEmpty() ) {
+ tempAdd = notesStr;
+ notesStr = "+++++++++++++++++++++++++++\n";
+ notesStr += i18n("Additonal fields created\nby KA/Pi Outlook import:");
+ notesStr += additionalInfo;
+ notesStr += i18n("\nEnd additonal fields created\nby KA/Pi Outlook import!\n");
+ notesStr += "+++++++++++++++++++++++++++\n";
+ notesStr += tempAdd;
+ }
+ addressee.setNote( notesStr );
#if 0
// pending
- IM address: no clue where to get info about the helper ID