8#include "ksieveui_export.h"
9#include <KSieveCore/SieveImapAccountSettings>
23class ParseUserScriptJob;
27class ManageSieveTreeView;
28class ManageSieveWidgetPrivate;
37 enum SieveEditorMode : uint8_t {
53 void enableDisableActions(
bool &newScriptAction,
bool &editScriptAction,
bool &deleteScriptAction,
bool &desactivateScriptAction);
57 void newScript(
const KSieveUi::ManageSieveWidget::ScriptInfo &info);
58 void editScript(
const KSieveUi::ManageSieveWidget::ScriptInfo &info);
59 void scriptDeleted(
const QUrl &u);
60 void serverSieveFound(
bool imapFound);
61 void scriptRenamed(
const QUrl &oldUrl,
const QUrl &newUrl);
62 void updateSieveSettingsDone();
65 virtual bool refreshList() = 0;
66 virtual void updateSieveSettings() = 0;
69 KSIEVEUI_NO_EXPORT
void slotItemChanged(
QTreeWidgetItem *item,
int col);
70 KSIEVEUI_NO_EXPORT
void slotContextMenuRequested(
const QPoint &p);
71 KSIEVEUI_NO_EXPORT
void slotUpdateButtons();
73 KSIEVEUI_NO_EXPORT
void slotSystemNetworkOnlineStateChanged(
bool state);
74 KSIEVEUI_NO_EXPORT
void slotCheckNetworkStatus();
75 KSIEVEUI_NO_EXPORT
void setActiveScripts(KSieveCore::ParseUserScriptJob *job);
77 KSIEVEUI_NO_EXPORT
void slotCancelFetch();
79 KSIEVEUI_NO_EXPORT
void slotRenameFinished(
const QUrl &oldUrl,
const QUrl &newUrl,
const QString &errorStr,
bool success);
82 void slotRenameScript();
85 void slotEditScript();
86 void slotDeleteScript();
87 void slotDeactivateScript();
96 void updateSieveSettingsFinished();
97 enum sieveServerStatus {
104 KSIEVEUI_NO_EXPORT
bool canAddNewScript(
QTreeWidgetItem *item,
bool jobsListIsEmpty);
106 KSIEVEUI_NO_EXPORT
void killAllJobs();
107 KSIEVEUI_NO_EXPORT
void clear();
108 [[nodiscard]] KSIEVEUI_NO_EXPORT
bool isFileNameItem(
QTreeWidgetItem *item)
const;
109 [[nodiscard]] KSIEVEUI_NO_EXPORT
bool itemIsActived(
QTreeWidgetItem *item)
const;
110 KSIEVEUI_NO_EXPORT
void changeActiveScript(
QTreeWidgetItem *item,
bool activate,
bool deleteScript =
false);
111 [[nodiscard]] KSIEVEUI_NO_EXPORT
bool updateGlobalScript(
QTreeWidgetItem *item,
const QUrl &u);
112 KSIEVEUI_NO_EXPORT
void slotGenerateGlobalScriptError(
const QString &errorStr);
113 std::unique_ptr<ManageSieveWidgetPrivate>
const d;
A job to manage sieve scripts.
The SieveImapAccountSettings class.
The ManageSieveTreeView class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:30 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.