kmail
kmfawidgets.h
Go to the documentation of this file.00001 // kmfawidgets.h - KMFilterAction parameter widgets 00002 // Copyright: (c) 2001 Marc Mutz <Marc@Mutz.com> 00003 // License: GPL 00004 00005 #ifndef _kmfawidgets_h_ 00006 #define _kmfawidgets_h_ 00007 00008 #include <klineedit.h> 00009 #include <qstring.h> 00010 00015 class QPushButton; 00016 class KURLRequester; 00017 00018 class KMFilterActionWithAddressWidget : public QWidget 00019 { 00020 Q_OBJECT 00021 public: 00022 KMFilterActionWithAddressWidget( QWidget* parent=0, const char* name=0 ); 00023 00024 void clear() { mLineEdit->clear(); } 00025 QString text() const { return mLineEdit->text(); } 00026 void setText( const QString & aString ) { mLineEdit->setText( aString ); } 00027 00028 protected slots: 00029 void slotAddrBook(); 00030 00031 private: 00032 QPushButton* mBtn; 00033 QLineEdit* mLineEdit; 00034 }; 00035 00036 class KMSoundTestWidget : public QWidget 00037 { 00038 Q_OBJECT 00039 public: 00040 KMSoundTestWidget( QWidget * parent, const char * name=0 ); 00041 ~KMSoundTestWidget(); 00042 QString url() const; 00043 void setUrl( const QString & url ); 00044 void clear(); 00045 signals: 00046 void testPressed(); 00047 protected slots: 00048 void playSound(); 00049 void openSoundDialog( KURLRequester * ); 00050 void slotUrlChanged( const QString & ); 00051 00052 private: 00053 KURLRequester *m_urlRequester; 00054 QPushButton *m_playButton; 00055 }; 00056 00057 #endif /*_kmfawidget_h_*/