kmail Library API Documentation

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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US 00014 */ 00015 00016 #ifndef __KMAIL_SIGNATURECONFIGURATOR_H__ 00017 #define __KMAIL_SIGNATURECONFIGURATOR_H__ 00018 00019 #include <qwidget.h> 00020 00021 #include "kmidentity.h" // for Signature::Type 00022 00023 class QComboBox; 00024 class QCheckBox; 00025 class KURLRequester; 00026 class KLineEdit; 00027 class QString; 00028 class QPushButton; 00029 class QTextEdit; 00030 00031 namespace KMail { 00032 00033 class SignatureConfigurator : public QWidget { 00034 Q_OBJECT 00035 public: 00036 SignatureConfigurator( QWidget * parent=0, const char * name=0 ); 00037 virtual ~SignatureConfigurator(); 00038 00039 bool isSignatureEnabled() const; 00040 void setSignatureEnabled( bool enable ); 00041 00042 Signature::Type signatureType() const; 00043 void setSignatureType( Signature::Type type ); 00044 00045 QString inlineText() const; 00046 void setInlineText( const QString & text ); 00047 00048 QString fileURL() const; 00049 void setFileURL( const QString & url ); 00050 00051 QString commandURL() const; 00052 void setCommandURL( const QString & url ); 00053 00058 Signature signature() const; 00062 void setSignature( const Signature & sig ); 00063 00064 protected slots: 00065 void slotEnableEditButton( const QString & ); 00066 void slotEdit(); 00067 00068 protected: 00069 QCheckBox * mEnableCheck; 00070 QComboBox * mSourceCombo; 00071 KURLRequester * mFileRequester; 00072 QPushButton * mEditButton; 00073 KLineEdit * mCommandEdit; 00074 QTextEdit * mTextEdit; 00075 }; 00076 00077 } // namespace KMail 00078 00079 #endif // __KMAIL_SIGNATURECONFIGURATOR_H__ 00080 00081
KDE Logo
This file is part of the documentation for kmail Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:04 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003