summaryrefslogtreecommitdiffstats
path: root/kmail/managesievescriptsdialog_p.h
blob: 83fde06b04941850324bddc5c0ea915bfce287a3 (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
#ifndef __KMAIL__MANAGESIEVESCRIPTSDIALOG_P_H__
#define __KMAIL__MANAGESIEVESCRIPTSDIALOG_P_H__

#include <kdialogbase.h>

#include <tqtextedit.h>

namespace KMail {

class SieveEditor : public KDialogBase {
  Q_OBJECT
  Q_PROPERTY( TQString script READ script WRITE setScript )
public:
  SieveEditor( TQWidget * parent=0, const char * name=0 );
  ~SieveEditor();

  TQString script() const { return mTextEdit->text(); }
  void setScript( const TQString & script ) { mTextEdit->setText( script ); }

private:
  TQTextEdit * mTextEdit;
};

}

#endif /* __KMAIL__MANAGESIEVESCRIPTSDIALOG_P_H__ */