kmail

signatureconfigurator.h

Go to the documentation of this file.
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 <qwidget.h>
00020 
00021 #include <libkpimidentities/identity.h> // for Signature::Type
00022 using KPIM::Signature;
00023 
00024 class QComboBox;
00025 class QCheckBox;
00026 class KURLRequester;
00027 class KLineEdit;
00028 class QString;
00029 class QPushButton;
00030 class QTextEdit;
00031 
00032 namespace KMail {
00033 
00034   class SignatureConfigurator : public QWidget {
00035     Q_OBJECT
00036   public:
00037     SignatureConfigurator( QWidget * parent=0, const char * name=0 );
00038     virtual ~SignatureConfigurator();
00039 
00040     bool isSignatureEnabled() const;
00041     void setSignatureEnabled( bool enable );
00042 
00043     Signature::Type signatureType() const;
00044     void setSignatureType( Signature::Type type );
00045 
00046     QString inlineText() const;
00047     void setInlineText( const QString & text );
00048 
00049     QString fileURL() const;
00050     void setFileURL( const QString & url );
00051 
00052     QString commandURL() const;
00053     void setCommandURL( const QString & url );
00054 
00059     Signature signature() const;
00063     void setSignature( const Signature & sig );
00064 
00065   protected slots:
00066     void slotEnableEditButton( const QString & );
00067     void slotEdit();
00068 
00069   protected:
00070     QCheckBox     * mEnableCheck;
00071     QComboBox     * mSourceCombo;
00072     KURLRequester * mFileRequester;
00073     QPushButton   * mEditButton;
00074     KLineEdit     * mCommandEdit;
00075     QTextEdit     * mTextEdit;
00076   };
00077 
00078 } // namespace KMail
00079 
00080 #endif // __KMAIL_SIGNATURECONFIGURATOR_H__
00081 
00082