24 #ifndef KAB_EXTENSIONWIDGET_H
25 #define KAB_EXTENSIONWIDGET_H
29 #include <tdeabc/addressbook.h>
30 #include <klibloader.h>
31 #include <tdemacros.h>
33 #define KAB_EXTENSIONWIDGET_PLUGIN_VERSION 1
37 class ConfigureWidget;
39 class TDE_EXPORT ExtensionWidget : public TQWidget
45 ExtensionWidget( Core *core, TQWidget *parent, const char *name = 0 );
51 KAB::Core *core() const;
56 bool contactsSelected() const;
63 TDEABC::Addressee::List selectedContacts();
68 virtual void contactsSelectionChanged();
74 virtual TQString title() const = 0;
79 virtual TQString identifier() const = 0;
82 void modified( const TDEABC::Addressee::List &list );
83 void deleted( const TQStringList& uidList );
88 class ExtensionWidgetPrivate;
89 ExtensionWidgetPrivate *d;
92 class ExtensionFactory : public KLibFactory
95 virtual ExtensionWidget *extension( KAB::Core *core, TQWidget *parent,
96 const char *name = 0 ) = 0;
98 virtual ConfigureWidget *configureWidget( TQWidget*, const char* = 0 )
103 virtual bool configureWidgetAvailable() { return false; }
109 virtual TQString identifier() const = 0;
112 virtual TQObject* createObject( TQObject*, const char*, const char*,
113 const TQStringList & )
|