signatureconfigurator.h
00001 /* -*- c++ -*- 00002 signatureconfigurator.cpp 00003 00004 KMail, the KDE mail client. 00005 Copyright (c) 2002 the KMail authors. 00006 See file AUTHORS for details 00007 00008 This program is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU General Public License, 00010 version 2.0, as published by the Free Software Foundation. 00011 You should have received a copy of the GNU General Public License 00012 along with this program; if not, write to the Free Software Foundation, 00013 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US 00014 */ 00015 00016 #ifndef __KMAIL_SIGNATURECONFIGURATOR_H__ 00017 #define __KMAIL_SIGNATURECONFIGURATOR_H__ 00018 00019 #include <tqwidget.h> 00020 00021 #include <libkpimidentities/identity.h> // for Signature::Type 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 } // namespace KMail 00080 00081 #endif // __KMAIL_SIGNATURECONFIGURATOR_H__ 00082 00083