kmail
sievedebugdialog.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef __sievedebugdialog_h__
00016 #define __sievedebugdialog_h__
00017
00018
00019
00020 #if !defined(NDEBUG)
00021
00022 #include <kdialogbase.h>
00023 #include <kurl.h>
00024
00025 class TQString;
00026 class TQStringList;
00027 class TQTextEdit;
00028 template <typename T> class TQValueList;
00029
00030 class KMAccount;
00031
00032 namespace KMime
00033 {
00034 namespace Types
00035 {
00036 struct AddrSpec;
00037 typedef TQValueList<AddrSpec> AddrSpecList;
00038 }
00039 }
00040
00041 namespace KMail
00042 {
00043 class ImapAccountBase;
00044 class SieveJob;
00045
00050 class SieveDebugDialog : public KDialogBase
00051 {
00052 Q_OBJECT
00053 TQ_OBJECT
00054
00055 public:
00056 SieveDebugDialog( TQWidget *parent = 0, const char *name = 0 );
00057 virtual ~SieveDebugDialog();
00058
00059 protected:
00060 void handlePutResult( KMail::SieveJob *job, bool success, bool );
00061
00062 signals:
00063 void result( bool success );
00064
00065 protected slots:
00066 void slotGetScript( KMail::SieveJob *job, bool success, const TQString &script, bool active );
00067 void slotGetScriptList( KMail::SieveJob *job, bool success, const TQStringList &scriptList, const TQString &activeScript );
00068
00069 void slotDialogOk();
00070 void slotPutActiveResult( KMail::SieveJob*, bool );
00071 void slotPutInactiveResult( KMail::SieveJob*, bool );
00072 void slotDiagNextAccount();
00073 void slotDiagNextScript();
00074
00075 protected:
00076 KMail::SieveJob *mSieveJob;
00077 KURL mUrl;
00078
00079 TQTextEdit *mEdit;
00080
00081
00082
00083
00084
00085 TQValueList<KMAccount *> mAccountList;
00086 TQStringList mScriptList;
00087 KMail::ImapAccountBase *mAccountBase;
00088 };
00089
00090 }
00091
00092 #endif // NDEBUG
00093
00094 #endif // __sievedebugdialog_h__
00095
|