diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch) | |
tree | 67208f7c145782a7e90b123b982ca78d88cc2c87 /kmail/signatureconfigurator.h | |
download | tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/signatureconfigurator.h')
-rw-r--r-- | kmail/signatureconfigurator.h | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/kmail/signatureconfigurator.h b/kmail/signatureconfigurator.h new file mode 100644 index 000000000..f67a9f9d8 --- /dev/null +++ b/kmail/signatureconfigurator.h @@ -0,0 +1,82 @@ +/* -*- c++ -*- + signatureconfigurator.cpp + + KMail, the KDE mail client. + Copyright (c) 2002 the KMail authors. + See file AUTHORS for details + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License, + version 2.0, as published by the Free Software Foundation. + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US +*/ + +#ifndef __KMAIL_SIGNATURECONFIGURATOR_H__ +#define __KMAIL_SIGNATURECONFIGURATOR_H__ + +#include <qwidget.h> + +#include <libkpimidentities/identity.h> // for Signature::Type +using KPIM::Signature; + +class QComboBox; +class QCheckBox; +class KURLRequester; +class KLineEdit; +class QString; +class QPushButton; +class QTextEdit; + +namespace KMail { + + class SignatureConfigurator : public QWidget { + Q_OBJECT + public: + SignatureConfigurator( QWidget * parent=0, const char * name=0 ); + virtual ~SignatureConfigurator(); + + bool isSignatureEnabled() const; + void setSignatureEnabled( bool enable ); + + Signature::Type signatureType() const; + void setSignatureType( Signature::Type type ); + + QString inlineText() const; + void setInlineText( const QString & text ); + + QString fileURL() const; + void setFileURL( const QString & url ); + + QString commandURL() const; + void setCommandURL( const QString & url ); + + /** + Conveniece method. + @return a Signature object representing the state of the widgets. + **/ + Signature signature() const; + /** + Convenience method. Sets the widgets according to @p sig + **/ + void setSignature( const Signature & sig ); + + protected slots: + void slotEnableEditButton( const QString & ); + void slotEdit(); + + protected: + QCheckBox * mEnableCheck; + QComboBox * mSourceCombo; + KURLRequester * mFileRequester; + QPushButton * mEditButton; + KLineEdit * mCommandEdit; + QTextEdit * mTextEdit; + }; + +} // namespace KMail + +#endif // __KMAIL_SIGNATURECONFIGURATOR_H__ + + |