-rw-r--r-- | kaddressbook/xxportobject.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/kaddressbook/xxportobject.h b/kaddressbook/xxportobject.h index d547855..de39b9f 100644 --- a/kaddressbook/xxportobject.h +++ b/kaddressbook/xxportobject.h @@ -35,17 +35,17 @@ $Id$ #include <kabc/addressbook.h> #include <kabc/addresseelist.h> #include <kabc/resource.h> #include <kxmlguiclient.h> #include <klibloader.h> - +class KRES::Factory; class XXPortObject : public QObject, virtual public KXMLGUIClient { Q_OBJECT public: XXPortObject( KABC::AddressBook *ab, QWidget *parent, const char *name = 0 ); @@ -141,18 +141,23 @@ class XXPortResourceObject : public XXPortObject XXPortResourceObject( KABC::AddressBook *ab, QWidget *parent, const char *name = 0 ); ~XXPortResourceObject(); /** Returns true if the XXPortObject can be used. One case it can not be used is for example if a needed lib could not be loaded. */ virtual bool isAvailable(); + + protected: + bool _exportContacts( const KABC::AddresseeList &list, const QString& identifier, const QString& fileName ); + KABC::AddresseeList _importContacts( const QString& identifier, const QString& fileName ) const; + protected: - KABC::Resource* mResource; + KRES::Factory* mFactory; }; class XXPortFactory : public KLibFactory { public: |