mailcommon
Go to the documentation of this file.
20 #ifndef MAILCOMMON_FILTERACTION_H
21 #define MAILCOMMON_FILTERACTION_H
23 #include "../mailcommon_export.h"
24 #include "../search/searchpattern.h"
28 #include <Akonadi/Collection>
29 #include <Akonadi/Item>
32 #include <KMime/KMimeMessage>
34 #include <QtCore/QList>
35 #include <QtCore/QObject>
39 namespace MailCommon {
61 ErrorNeedComplete = 0x1,
88 QString label()
const;
96 virtual QStringList sieveRequires()
const;
98 virtual QString sieveCode()
const;
121 virtual bool isEmpty()
const;
134 virtual void applyParamWidgetValue(
QWidget *paramWidget );
140 virtual void setParamWidgetValue(
QWidget *paramWidget )
const;
146 virtual void clearParamWidget(
QWidget *paramWidget )
const;
151 virtual void argsFromString(
const QString &argsStr ) = 0;
157 virtual bool argsFromStringInteractive(
const QString &argsStr,
const QString &filterName );
159 virtual QString argsAsStringReal()
const;
164 virtual QString argsAsString()
const = 0;
170 virtual QString displayString()
const = 0;
177 virtual bool folderRemoved(
const Akonadi::Collection &aFolder,
178 const Akonadi::Collection &aNewFolder );
188 static void sendMDN(
const Akonadi::Item &item,
189 KMime::MDN::DispositionType d,
198 void filterActionModified();
Abstract base class for mail filter actions.
#define MAILCOMMON_EXPORT
ReturnCode
Describes the possible return codes of filter processing:
A helper class for the filtering process.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:14 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.