kmail

sievedebugdialog.h
1/*
2 sievedebugdialog.h
3
4 KMail, the KDE mail client.
5 Copyright (c) 2005 Martijn Klingens <klingens@kde.org>
6
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License,
9 version 2.0, as published by the Free Software Foundation.
10 You should have received a copy of the GNU General Public License
11 along with this program; if not, write to the Free Software Foundation,
12 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
13*/
14
15#ifndef __sievedebugdialog_h__
16#define __sievedebugdialog_h__
17
18// This file is only compiled when debug is enabled, it is
19// not useful enough for non-developers to have this in releases.
20#if !defined(NDEBUG)
21
22#include <kdialogbase.h>
23#include <kurl.h>
24
25class TQString;
26class TQStringList;
27class TQTextEdit;
28template <typename T> class TQValueList;
29
30class KMAccount;
31
32namespace KMime
33{
34 namespace Types
35 {
36 struct AddrSpec;
37 typedef TQValueList<AddrSpec> AddrSpecList;
38 }
39}
40
41namespace KMail
42{
43class ImapAccountBase;
44class SieveJob;
45
50class SieveDebugDialog : public KDialogBase
51{
52 TQ_OBJECT
53
54
55public:
56 SieveDebugDialog( TQWidget *parent = 0, const char *name = 0 );
57 virtual ~SieveDebugDialog();
58
59protected:
60 void handlePutResult( KMail::SieveJob *job, bool success, bool );
61
62signals:
63 void result( bool success );
64
65protected slots:
66 void slotGetScript( KMail::SieveJob *job, bool success, const TQString &script, bool active );
67 void slotGetScriptList( KMail::SieveJob *job, bool success, const TQStringList &scriptList, const TQString &activeScript );
68
69 void slotDialogOk();
70 void slotPutActiveResult( KMail::SieveJob*, bool );
71 void slotPutInactiveResult( KMail::SieveJob*, bool );
72 void slotDiagNextAccount();
73 void slotDiagNextScript();
74
75protected:
76 KMail::SieveJob *mSieveJob;
77 KURL mUrl;
78
79 TQTextEdit *mEdit;
80
81 // Copied from AccountManager, because we have to do an async iteration
82 // WARNING: When copy/pasting this code, be aware that accounts may
83 // get removed inbetween! For debugging this is good enough
84 // though. - Martijn
85 TQValueList<KMAccount *> mAccountList;
86 TQStringList mScriptList;
87 KMail::ImapAccountBase *mAccountBase;
88};
89
90} // namespace KMail
91
92#endif // NDEBUG
93
94#endif // __sievedebugdialog_h__
95
Diagnostic info for Sieve.
folderdiaquotatab.h
Definition: aboutdata.cpp:40