-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 @@ -31,25 +31,25 @@ $Id$ #ifndef XXPORTOBJECT_H #define XXPORTOBJECT_H #include <qobject.h> #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 ); ~XXPortObject(); /** Returns the unique identifier of this xxport modul, it should @@ -137,26 +137,31 @@ class XXPortResourceObject : public XXPortObject { Q_OBJECT public: 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: virtual XXPortObject *xxportObject( KABC::AddressBook *ab, QWidget *parent, const char *name = 0 ) = 0; protected: |