summaryrefslogtreecommitdiffstats
path: root/kmail/kmfawidgets.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch)
tree67208f7c145782a7e90b123b982ca78d88cc2c87 /kmail/kmfawidgets.h
downloadtdepim-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/kmfawidgets.h')
-rw-r--r--kmail/kmfawidgets.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/kmail/kmfawidgets.h b/kmail/kmfawidgets.h
new file mode 100644
index 000000000..9b2a05b97
--- /dev/null
+++ b/kmail/kmfawidgets.h
@@ -0,0 +1,57 @@
+// kmfawidgets.h - KMFilterAction parameter widgets
+// Copyright: (c) 2001 Marc Mutz <Marc@Mutz.com>
+// License: GPL
+
+#ifndef _kmfawidgets_h_
+#define _kmfawidgets_h_
+
+#include <klineedit.h>
+#include <qstring.h>
+
+/** The param widget for KMFilterActionWithAddress..
+ @author Marc Mutz <mutz@kde.org>
+*/
+
+class QPushButton;
+class KURLRequester;
+
+class KMFilterActionWithAddressWidget : public QWidget
+{
+ Q_OBJECT
+public:
+ KMFilterActionWithAddressWidget( QWidget* parent=0, const char* name=0 );
+
+ void clear() { mLineEdit->clear(); }
+ QString text() const { return mLineEdit->text(); }
+ void setText( const QString & aString ) { mLineEdit->setText( aString ); }
+
+protected slots:
+ void slotAddrBook();
+
+private:
+ QPushButton* mBtn;
+ QLineEdit* mLineEdit;
+};
+
+class KMSoundTestWidget : public QWidget
+{
+ Q_OBJECT
+public:
+ KMSoundTestWidget( QWidget * parent, const char * name=0 );
+ ~KMSoundTestWidget();
+ QString url() const;
+ void setUrl( const QString & url );
+ void clear();
+signals:
+ void testPressed();
+protected slots:
+ void playSound();
+ void openSoundDialog( KURLRequester * );
+ void slotUrlChanged( const QString & );
+
+private:
+ KURLRequester *m_urlRequester;
+ QPushButton *m_playButton;
+};
+
+#endif /*_kmfawidget_h_*/