From 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: 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 --- kmail/managesievescriptsdialog.h | 55 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 kmail/managesievescriptsdialog.h (limited to 'kmail/managesievescriptsdialog.h') diff --git a/kmail/managesievescriptsdialog.h b/kmail/managesievescriptsdialog.h new file mode 100644 index 000000000..f0b99ebc3 --- /dev/null +++ b/kmail/managesievescriptsdialog.h @@ -0,0 +1,55 @@ +#ifndef __KMAIL__MANAGESIEVESCRIPTSDIALOG_H__ +#define __KMAIL__MANAGESIEVESCRIPTSDIALOG_H__ + +#include +#include +#include + +class QListView; +class QCheckListItem; + +namespace KMail { + +class SieveJob; +class SieveEditor; + +class ManageSieveScriptsDialog : public KDialogBase { + Q_OBJECT +public: + ManageSieveScriptsDialog( QWidget * parent=0, const char * name=0 ); + ~ManageSieveScriptsDialog(); + +private slots: + void slotRefresh(); + void slotItem( KMail::SieveJob *, const QString &, bool ); + void slotResult( KMail::SieveJob *, bool, const QString &, bool ); + void slotContextMenuRequested( QListViewItem *, const QPoint & ); + void slotDoubleClicked( QListViewItem * ); + void slotSelectionChanged( QListViewItem * ); + void slotNewScript(); + void slotEditScript(); + void slotDeleteScript(); + void slotGetResult( KMail::SieveJob *, bool, const QString &, bool ); + void slotPutResult( KMail::SieveJob *, bool ); + void slotSieveEditorOkClicked(); + void slotSieveEditorCancelClicked(); + +private: + void killAllJobs(); + void changeActiveScript( QCheckListItem * ); + +private: + QListView * mListView; + SieveEditor * mSieveEditor; + QMap mJobs; + QMap mUrls; + QMap mSelectedItems; + QCheckListItem * mContextMenuItem; + KURL mCurrentURL; + bool mWasActive : 1; +}; + +} + +#endif /* __KMAIL__MANAGESIEVESCRIPTSDIALOG_H__ */ + -- cgit v1.2.1