kmail

managesievescriptsdialog.h
1#ifndef __KMAIL__MANAGESIEVESCRIPTSDIALOG_H__
2#define __KMAIL__MANAGESIEVESCRIPTSDIALOG_H__
3
4#include <kdialogbase.h>
5#include <kurl.h>
6#include <tqmap.h>
7
8class TQListView;
9class TQCheckListItem;
10
11namespace KMail {
12
13class SieveJob;
14class SieveEditor;
15
16class ManageSieveScriptsDialog : public KDialogBase {
17 TQ_OBJECT
18
19public:
20 ManageSieveScriptsDialog( TQWidget * parent=0, const char * name=0 );
21 ~ManageSieveScriptsDialog();
22
23private slots:
24 void slotRefresh();
25 void slotItem( KMail::SieveJob *, const TQString &, bool );
26 void slotResult( KMail::SieveJob *, bool, const TQString &, bool );
27 void slotContextMenuRequested( TQListViewItem *, const TQPoint & );
28 void slotDoubleClicked( TQListViewItem * );
29 void slotSelectionChanged( TQListViewItem * );
30 void slotNewScript();
31 void slotEditScript();
32 void slotDeactivateScript();
33 void slotDeleteScript();
34 void slotGetResult( KMail::SieveJob *, bool, const TQString &, bool );
35 void slotPutResult( KMail::SieveJob *, bool );
36 void slotSieveEditorOkClicked();
37 void slotSieveEditorCancelClicked();
38
39private:
40 void killAllJobs();
41 void changeActiveScript( TQCheckListItem *, bool activate = true );
42
43private:
44 TQListView * mListView;
45 SieveEditor * mSieveEditor;
46 TQMap<KMail::SieveJob*,TQCheckListItem*> mJobs;
47 TQMap<TQCheckListItem*,KURL> mUrls;
48 TQMap<TQCheckListItem*,TQCheckListItem*> mSelectedItems;
49 TQCheckListItem * mContextMenuItem;
50 KURL mCurrentURL;
51 bool mWasActive : 1;
52};
53
54}
55
56#endif /* __KMAIL__MANAGESIEVESCRIPTSDIALOG_H__ */
57
folderdiaquotatab.h
Definition: aboutdata.cpp:40