24 #ifndef KAB_CONTACTEDITORWIDGET_H 25 #define KAB_CONTACTEDITORWIDGET_H 29 #include <tdeabc/addressbook.h> 30 #include <klibloader.h> 31 #include <kdemacros.h> 33 #define KAB_CEW_PLUGIN_VERSION 1 37 class KDE_EXPORT ContactEditorWidget : public TQWidget 43 typedef TQValueList<ContactEditorWidget*> List; 45 ContactEditorWidget( TDEABC::AddressBook *ab, TQWidget *parent, const char *name = 0 ); 46 ~ContactEditorWidget(); 53 virtual int logicalHeight() const { return 1; } 60 virtual int logicalWidth() const { return 1; } 65 virtual void loadContact( TDEABC::Addressee *addr ) = 0; 71 virtual void storeContact( TDEABC::Addressee *addr ) = 0; 78 virtual void setReadOnly( bool readOnly ) = 0; 83 bool modified() const; 99 void setModified( bool modified ); 107 TDEABC::AddressBook *addressBook() const; 110 TDEABC::AddressBook *mAddressBook; 113 class ContactEditorWidgetPrivate; 114 ContactEditorWidgetPrivate *d; 117 class ContactEditorWidgetFactory : public KLibFactory 120 virtual ContactEditorWidget *createWidget( TDEABC::AddressBook *ab, TQWidget *parent, 121 const char *name = 0 ) = 0; 126 virtual TQString pageTitle() const { return ""; } 132 virtual TQString pageIdentifier() const = 0; 135 virtual TQObject* createObject( TQObject*, const char*, const char*, 136 const TQStringList & )
|