summaryrefslogtreecommitdiffabout
path: root/kaddressbook
Side-by-side diff
Diffstat (limited to 'kaddressbook') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/xxportmanager.cpp23
1 files changed, 15 insertions, 8 deletions
diff --git a/kaddressbook/xxportmanager.cpp b/kaddressbook/xxportmanager.cpp
index 4798ffe..2962951 100644
--- a/kaddressbook/xxportmanager.cpp
+++ b/kaddressbook/xxportmanager.cpp
@@ -131,3 +131,3 @@ void XXPortManager::slotImport( const QString &identifier, const QString &data )
}
-
+
(*it).setResource( resource );
@@ -139,6 +139,6 @@ void XXPortManager::slotImport( const QString &identifier, const QString &data )
}
-
+
if ( imported ) {
KMessageBox::information( mCore, i18n( "contacts successfully imported." ) );
-
+
emit modified();
@@ -178,3 +178,3 @@ void XXPortManager::loadPlugins()
continue;
-
+
KLibFactory *factory = KLibLoader::self()->factory( (*it)->library().latin1() );
@@ -191,3 +191,3 @@ void XXPortManager::loadPlugins()
}
-
+
#else //KAB_EMBEDDED
@@ -211,4 +211,11 @@ void XXPortManager::loadPlugins()
}
-
- QListIterator<XXPortFactory> it(factorylist);
+
+ //add the sharp import library dynamically
+ factory = KLibLoader::self()->factory( "microkaddrbk_sharpdtm_xxport" );
+ if ( factory ) {
+ XXPortFactory *xxportFactory = static_cast<XXPortFactory*>( factory );
+ factorylist.append(xxportFactory);
+ }
+
+ QListIterator<XXPortFactory> it(factorylist);
for ( ; it.current(); ++it )
@@ -238,3 +245,3 @@ PreviewDialog::PreviewDialog( const KABC::Addressee &addr, QWidget *parent,
QVBoxLayout *layout = new QVBoxLayout( page, marginHint(), spacingHint() );
-
+
KPIM::AddresseeView *view = new KPIM::AddresseeView( page );