change KTTSD to Jovie
[kdepim.git] / kmail / sievedebugdialog.h
blob3618abbebd43d5ff6340b8502b2cf66104bfde98
1 /*
2 sievedebugdialog.h
4 KMail, the KDE mail client.
5 Copyright (c) 2005 Martijn Klingens <klingens@kde.org>
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
15 #ifndef __sievedebugdialog_h__
16 #define __sievedebugdialog_h__
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)
22 #include <kdialog.h>
23 #include <kurl.h>
25 #include <QList>
27 class KTextEdit;
29 class QString;
30 class QStringList;
31 template <typename T> class QList;
33 class OrgKdeAkonadiImapSettingsInterface;
35 namespace KMime
37 namespace Types
39 struct AddrSpec;
40 typedef QList<AddrSpec> AddrSpecList;
44 namespace KMail
46 class SieveJob;
48 /**
49 * Diagnostic info for Sieve. Only compiled when debug is enabled, it is
50 * not useful enough for non-developers to have this in releases.
52 class SieveDebugDialog : public KDialog
54 Q_OBJECT
56 public:
57 SieveDebugDialog( QWidget *parent = 0 );
58 virtual ~SieveDebugDialog();
60 protected:
61 void handlePutResult( KMail::SieveJob *job, bool success, bool );
63 signals:
64 void result( bool success );
66 protected slots:
67 void slotGetScript( KMail::SieveJob *job, bool success, const QString &script, bool active );
68 void slotGetScriptList( KMail::SieveJob *job, bool success, const QStringList &scriptList, const QString &activeScript );
70 void slotDialogOk();
71 void slotPutActiveResult( KMail::SieveJob*, bool );
72 void slotPutInactiveResult( KMail::SieveJob*, bool );
73 void slotDiagNextAccount();
74 void slotDiagNextScript();
76 protected:
77 KMail::SieveJob *mSieveJob;
78 KUrl mUrl;
80 KTextEdit *mEdit;
82 QStringList mResourceIdentifier;
83 QStringList mScriptList;
84 OrgKdeAkonadiImapSettingsInterface *mImapSettingsInterface;
87 } // namespace KMail
89 #endif // NDEBUG
91 #endif // __sievedebugdialog_h__