10#include "mailcommon_export.h"
12#include "mailcommon/filteraction.h"
13#include "mailcommon/searchpattern.h"
15#include <Akonadi/Collection>
16#include <QKeySequence>
80 static int filterActionsMaximumSize();
81 void generateRandomIdentifier();
86 [[nodiscard]]
QString identifier()
const;
89 [[nodiscard]]
QString name()
const;
102 [[nodiscard]] ReturnCode execActions(
ItemContext &context,
bool &stopIt,
bool applyOnOutbound)
const;
110 void writeConfig(
KConfigGroup &config,
bool exportFilter)
const;
113 [[nodiscard]]
bool readConfig(
const KConfigGroup &config,
bool interactive =
false);
116 QString purify(
bool removeAction =
true);
119 bool isEmpty()
const;
143 void setApplyOnOutbound(
bool aApply);
149 void setApplyBeforeOutbound(
bool aApply);
155 [[nodiscard]]
bool applyOnOutbound()
const;
161 [[nodiscard]]
bool applyBeforeOutbound()
const;
167 void setApplyOnInbound(
bool aApply);
173 [[nodiscard]]
bool applyOnInbound()
const;
179 void setApplyOnExplicit(
bool aApply);
185 [[nodiscard]]
bool applyOnExplicit()
const;
194 void setApplicability(AccountType aApply = All);
199 void setApplyOnAllFoldersInbound(
bool aApply);
204 [[nodiscard]]
bool applyOnAllFoldersInbound()
const;
212 [[nodiscard]] AccountType applicability()
const;
220 void setApplyOnAccount(
const QString &
id,
bool aApply =
true);
226 [[nodiscard]]
bool applyOnAccount(
const QString &
id)
const;
228 void setStopProcessingHere(
bool aStop);
229 bool stopProcessingHere()
const;
233 void setConfigureShortcut(
bool aShort);
239 [[nodiscard]]
bool configureShortcut()
const;
245 void setConfigureToolbar(
bool aTool);
251 [[nodiscard]]
bool configureToolbar()
const;
265 void setToolbarName(
const QString &toolbarName);
282 void setIcon(
const QString &icon);
287 [[nodiscard]]
QString icon()
const;
301 const QString asString()
const;
307 void setAutoNaming(
bool useAutomaticNames);
311 [[nodiscard]]
bool isAutoNaming()
const;
315 [[nodiscard]]
bool isEnabled()
const;
316 void setEnabled(
bool);
320 void clearApplyOnAccount();
321 void agentRemoved(
const QString &identifier);
331 bool bApplyOnInbound : 1;
332 bool bApplyBeforeOutbound : 1;
333 bool bApplyOnOutbound : 1;
334 bool bApplyOnExplicit : 1;
335 bool bApplyOnAllFolders : 1;
336 bool bStopProcessingHere : 1;
337 bool bConfigureShortcut : 1;
338 bool bConfigureToolbar : 1;
339 bool bAutoNaming : 1;
341 AccountType mApplicability;
A helper class for the filtering process.
ReturnCode
Result codes returned by process.
AccountType
Account type codes used by setApplicability.
This class is an abstraction of a search over messages.
RequiredPart
Possible required parts.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:01 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.