24 #ifndef CRYPTOWIDGET_H
25 #define CRYPTOWIDGET_H
27 #include "contacteditorwidget.h"
36 class CryptoWidget : public KAB::ContactEditorWidget
42 CryptoWidget( TDEABC::AddressBook *ab, TQWidget *parent, const char *name = 0 );
45 void loadContact( TDEABC::Addressee *addr );
46 void storeContact( TDEABC::Addressee *addr );
47 void setReadOnly( bool readOnly );
50 enum { NumberOfProtocols = 4 };
51 TQCheckBox* mProtocolCB[NumberOfProtocols];
52 TQComboBox* mSignPref;
53 TQComboBox* mCryptPref;
54 Kleo::KeyRequester* mPgpKey;
55 Kleo::KeyRequester* mSmimeCert;
59 class CryptoWidgetFactory : public KAB::ContactEditorWidgetFactory
62 CryptoWidgetFactory();
63 KAB::ContactEditorWidget *createWidget( TDEABC::AddressBook *ab, TQWidget *parent, const char *name )
65 return new CryptoWidget( ab, parent, name );
68 TQString pageTitle() const;
69 TQString pageIdentifier() const;
|