kmail

kmfawidgets.h
1 // kmfawidgets.h - KMFilterAction parameter widgets
2 // Copyright: (c) 2001 Marc Mutz <Marc@Mutz.com>
3 // License: GPL
4 
5 #ifndef _kmfawidgets_h_
6 #define _kmfawidgets_h_
7 
8 #include <klineedit.h>
9 #include <tqstring.h>
10 
15 class TQPushButton;
16 class KURLRequester;
17 
18 class KMFilterActionWithAddressWidget : public TQWidget
19 {
20  TQ_OBJECT
21 
22 public:
23  KMFilterActionWithAddressWidget( TQWidget* parent=0, const char* name=0 );
24 
25  void clear() { mLineEdit->clear(); }
26  TQString text() const { return mLineEdit->text(); }
27  void setText( const TQString & aString ) { mLineEdit->setText( aString ); }
28 
29 signals:
30  // Forwarded from the internal text edit
31  void textChanged(const TQString&);
32 
33 protected slots:
34  void slotAddrBook();
35 
36 private:
37  TQPushButton* mBtn;
38  TQLineEdit* mLineEdit;
39 };
40 
41 class KMSoundTestWidget : public TQWidget
42 {
43  TQ_OBJECT
44 
45 public:
46  KMSoundTestWidget( TQWidget * parent, const char * name=0 );
47  ~KMSoundTestWidget();
48  TQString url() const;
49  void setUrl( const TQString & url );
50  void clear();
51 signals:
52  void testPressed();
53 protected slots:
54  void playSound();
55  void openSoundDialog( KURLRequester * );
56  void slotUrlChanged( const TQString & );
57 
58 private:
59  KURLRequester *m_urlRequester;
60  TQPushButton *m_playButton;
61 };
62 
63 #endif /*_kmfawidget_h_*/