Diffstat (limited to 'kaddressbook/xxport/kde2_xxport.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | kaddressbook/xxport/kde2_xxport.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kaddressbook/xxport/kde2_xxport.cpp b/kaddressbook/xxport/kde2_xxport.cpp index d5fc075..3fdb36d 100644 --- a/kaddressbook/xxport/kde2_xxport.cpp +++ b/kaddressbook/xxport/kde2_xxport.cpp @@ -48,33 +48,38 @@ $Id$ #ifndef KAB_EMBEDDED class KDE2XXPortFactory : public XXPortFactory { public: XXPortObject *xxportObject( KABC::AddressBook *ab, QWidget *parent, const char *name ) { return new KDE2XXPort( ab, parent, name ); } }; +#endif //KAB_EMBEDDED + extern "C" { +#ifndef KAB_EMBEDDED void *init_libkaddrbk_kde2_xxport() +#else //KAB_EMBEDDED + void *init_kaddrbk_kde2_xxport() +#endif //KAB_EMBEDDED { return ( new KDE2XXPortFactory() ); } } -#endif //KAB_EMBEDDED KDE2XXPort::KDE2XXPort( KABC::AddressBook *ab, QWidget *parent, const char *name ) : XXPortObject( ab, parent, name ) { createImportAction( i18n( "Import KDE 2 Addressbook..." ) ); } KABC::AddresseeList KDE2XXPort::importContacts( const QString& ) const { QString fileName = locateLocal( "data", "kabc/std.vcf" ); if ( !QFile::exists( fileName ) ) { |