From f2779e5e7742103ce848ab11e6b9fe3661587f0b Mon Sep 17 00:00:00 2001 From: ulf69 Date: Wed, 14 Jul 2004 14:55:56 +0000 Subject: added changes to support qtopia import/export and improved resource support --- (limited to 'kaddressbook/xxportmanager.cpp') diff --git a/kaddressbook/xxportmanager.cpp b/kaddressbook/xxportmanager.cpp index 248fcab..4798ffe 100644 --- a/kaddressbook/xxportmanager.cpp +++ b/kaddressbook/xxportmanager.cpp @@ -196,13 +196,20 @@ void XXPortManager::loadPlugins() factorylist.append(static_cast(init_kaddrbk_kde2_xxport())); factorylist.append(static_cast(init_kaddrbk_vcard_xxport())); - //now add the opie import library dynamically + //add the opie import library dynamically KLibFactory *factory = KLibLoader::self()->factory( "microkaddrbk_opie_xxport" ); if ( factory ) { XXPortFactory *xxportFactory = static_cast( factory ); factorylist.append(xxportFactory); } + //add the qtopia import library dynamically + factory = KLibLoader::self()->factory( "microkaddrbk_qtopia_xxport" ); + if ( factory ) { + XXPortFactory *xxportFactory = static_cast( factory ); + factorylist.append(xxportFactory); + } + QListIterator it(factorylist); for ( ; it.current(); ++it ) { @@ -219,7 +226,6 @@ void XXPortManager::loadPlugins() this, SLOT( slotImport( const QString&, const QString& ) ) ); } } - } -- cgit v0.9.0.2