summaryrefslogtreecommitdiffstats
path: root/kmail/kmfawidgets.h
blob: 5a6990a8b0daf1b791abe4b1dc683e142710d002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// kmfawidgets.h - KMFilterAction parameter widgets
// Copyright: (c) 2001 Marc Mutz <[email protected]>
// License: GPL

#ifndef _kmfawidgets_h_
#define _kmfawidgets_h_

#include <klineedit.h>
#include <tqstring.h>

/** The param widget for KMFilterActionWithAddress..
    @author Marc Mutz <[email protected]>
*/

class TQPushButton;
class KURLRequester;

class KMFilterActionWithAddressWidget : public QWidget
{
  Q_OBJECT
public:
  KMFilterActionWithAddressWidget( TQWidget* parent=0, const char* name=0 );

  void clear() { mLineEdit->clear(); }
  TQString text() const { return mLineEdit->text(); }
  void setText( const TQString & aString ) { mLineEdit->setText( aString ); }

signals:
  // Forwarded from the internal text edit
  void textChanged(const TQString&);

protected slots:
  void slotAddrBook();

private:
  TQPushButton* mBtn;
  TQLineEdit*   mLineEdit;
};

class KMSoundTestWidget : public QWidget
{
  Q_OBJECT
public:
  KMSoundTestWidget( TQWidget * parent, const char * name=0 );
  ~KMSoundTestWidget();
  TQString url() const;
  void setUrl( const TQString & url );
  void clear();
signals:
  void testPressed();
protected slots:
  void playSound();
  void openSoundDialog( KURLRequester * );
  void slotUrlChanged( const TQString & );

private:
  KURLRequester *m_urlRequester;
  TQPushButton *m_playButton;
};

#endif /*_kmfawidget_h_*/