Libksieve

sievedebugdialog.h
1 /*
2  sievedebugdialog.h
3 
4  Copyright (c) 2005 Martijn Klingens <[email protected]>
5 
6  This program is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public License,
8  version 2.0, as published by the Free Software Foundation.
9  You should have received a copy of the GNU General Public License
10  along with this program; if not, write to the Free Software Foundation,
11  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
12 */
13 
14 #ifndef KSIEVE_KSIEVEUI_SIEVEDEBUGDIALOG_H
15 #define KSIEVE_KSIEVEUI_SIEVEDEBUGDIALOG_H
16 
17 #include "ksieveui_export.h"
18 
19 #include <QDialog>
20 #include <QUrl>
21 #include <KSyntaxHighlighting/Repository>
22 
23 class QStringList;
24 
25 namespace KManageSieve {
26 class SieveJob;
27 }
28 namespace KPIMTextEdit {
29 class PlainTextEditorWidget;
30 }
31 namespace KSieveUi {
32 class SieveImapPasswordProvider;
33 
38 class KSIEVEUI_EXPORT SieveDebugDialog : public QDialog
39 {
40  Q_OBJECT
41 public:
42  explicit SieveDebugDialog(SieveImapPasswordProvider *passwordProvider, QWidget *parent = nullptr);
44 
45 Q_SIGNALS:
46  void result(bool success);
47 
48 private Q_SLOTS:
49  void slotGetScript(KManageSieve::SieveJob *job, bool success, const QString &script, bool active);
50  void slotGetScriptList(KManageSieve::SieveJob *job, bool success, const QStringList &scriptList, const QString &activeScript);
51 
52  void slotDiagNextAccount();
53  void slotDiagNextScript();
54 
55  void slotShutDownJob();
56 private:
57  void writeConfig();
58  void readConfig();
59  KManageSieve::SieveJob *mSieveJob = nullptr;
60  QUrl mUrl;
62 
63  SieveImapPasswordProvider *mPasswordProvider = nullptr;
64  KPIMTextEdit::PlainTextEditorWidget *mEdit = nullptr;
65  QStringList mResourceIdentifier;
66  QStringList mScriptList;
67  QTimer *mShutDownJob = nullptr;
68 };
69 }
70 
71 #endif
Diagnostic info for Sieve.
The SieveImapPasswordProvider class.
A job to manage sieve scripts.
Definition: sievejob.h:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jul 13 2020 23:08:35 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.