Mailcommon
10 #include "mailcommon_export.h"
12 #include "mailcommon/filteraction.h"
13 #include "mailcommon/searchpattern.h"
15 #include <Akonadi/Collection>
16 #include <QKeySequence>
18 #include <QDataStream>
76 static int filterActionsMaximumSize();
77 void generateRandomIdentifier();
82 Q_REQUIRED_RESULT
QString identifier()
const;
85 Q_REQUIRED_RESULT
QString name()
const;
98 Q_REQUIRED_RESULT ReturnCode execActions(
ItemContext &context,
bool &stopIt,
bool applyOnOutbound)
const;
106 void writeConfig(
KConfigGroup &config,
bool exportFilter)
const;
109 Q_REQUIRED_RESULT
bool readConfig(
const KConfigGroup &config,
bool interactive =
false);
112 QString purify(
bool removeAction =
true);
115 bool isEmpty()
const;
139 void setApplyOnOutbound(
bool aApply);
145 void setApplyBeforeOutbound(
bool aApply);
151 Q_REQUIRED_RESULT
bool applyOnOutbound()
const;
157 Q_REQUIRED_RESULT
bool applyBeforeOutbound()
const;
163 void setApplyOnInbound(
bool aApply);
169 Q_REQUIRED_RESULT
bool applyOnInbound()
const;
175 void setApplyOnExplicit(
bool aApply);
181 Q_REQUIRED_RESULT
bool applyOnExplicit()
const;
190 void setApplicability(AccountType aApply = All);
195 void setApplyOnAllFoldersInbound(
bool aApply);
200 Q_REQUIRED_RESULT
bool applyOnAllFoldersInbound()
const;
208 Q_REQUIRED_RESULT AccountType applicability()
const;
216 void setApplyOnAccount(
const QString &
id,
bool aApply =
true);
222 Q_REQUIRED_RESULT
bool applyOnAccount(
const QString &
id)
const;
224 void setStopProcessingHere(
bool aStop);
225 bool stopProcessingHere()
const;
229 void setConfigureShortcut(
bool aShort);
235 Q_REQUIRED_RESULT
bool configureShortcut()
const;
241 void setConfigureToolbar(
bool aTool);
247 Q_REQUIRED_RESULT
bool configureToolbar()
const;
261 void setToolbarName(
const QString &toolbarName);
278 void setIcon(
const QString &icon);
283 Q_REQUIRED_RESULT
QString icon()
const;
297 const QString asString()
const;
303 void setAutoNaming(
bool useAutomaticNames);
307 Q_REQUIRED_RESULT
bool isAutoNaming()
const;
311 Q_REQUIRED_RESULT
bool isEnabled()
const;
312 void setEnabled(
bool);
316 void clearApplyOnAccount();
317 void agentRemoved(
const QString &identifier);
327 bool bApplyOnInbound : 1;
328 bool bApplyBeforeOutbound : 1;
329 bool bApplyOnOutbound : 1;
330 bool bApplyOnExplicit : 1;
331 bool bApplyOnAllFolders : 1;
332 bool bStopProcessingHere : 1;
333 bool bConfigureShortcut : 1;
334 bool bConfigureToolbar : 1;
335 bool bAutoNaming : 1;
337 AccountType mApplicability;
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
KCALENDARCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalendarCore::Alarm::Ptr &)
AccountType
Account type codes used by setApplicability.
RequiredPart
Possible required parts.
ReturnCode
Result codes returned by process.
A helper class for the filtering process.
This class is an abstraction of a search over messages.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Sep 30 2023 04:00:25 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.