00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __KMAIL_SIGNATURECONFIGURATOR_H__
00017 #define __KMAIL_SIGNATURECONFIGURATOR_H__
00018
00019 #include <tqwidget.h>
00020
00021 #include <libkpimidentities/identity.h>
00022 using KPIM::Signature;
00023
00024 class TQComboBox;
00025 class TQCheckBox;
00026 class KURLRequester;
00027 class KLineEdit;
00028 class TQString;
00029 class TQPushButton;
00030 class TQTextEdit;
00031
00032 namespace KMail {
00033
00034 class SignatureConfigurator : public TQWidget {
00035 Q_OBJECT
00036 TQ_OBJECT
00037 public:
00038 SignatureConfigurator( TQWidget * parent=0, const char * name=0 );
00039 virtual ~SignatureConfigurator();
00040
00041 bool isSignatureEnabled() const;
00042 void setSignatureEnabled( bool enable );
00043
00044 Signature::Type signatureType() const;
00045 void setSignatureType( Signature::Type type );
00046
00047 TQString inlineText() const;
00048 void setInlineText( const TQString & text );
00049
00050 TQString fileURL() const;
00051 void setFileURL( const TQString & url );
00052
00053 TQString commandURL() const;
00054 void setCommandURL( const TQString & url );
00055
00060 Signature signature() const;
00064 void setSignature( const Signature & sig );
00065
00066 protected slots:
00067 void slotEnableEditButton( const TQString & );
00068 void slotEdit();
00069
00070 protected:
00071 TQCheckBox * mEnableCheck;
00072 TQComboBox * mSourceCombo;
00073 KURLRequester * mFileRequester;
00074 TQPushButton * mEditButton;
00075 KLineEdit * mCommandEdit;
00076 TQTextEdit * mTextEdit;
00077 };
00078
00079 }
00080
00081 #endif // __KMAIL_SIGNATURECONFIGURATOR_H__
00082
00083