mailcommon
filteraction.cpp
Go to the documentation of this file.
89 bool FilterAction::argsFromStringInteractive( const QString &argsStr, const QString & filterName )
115 const QPair<bool, KMime::MDN::SendingMode> mdnSend = MDNAdviceHelper::instance()->checkAndSetMDNInfo( item, type, true );
118 QString receiptTo = msg->headerByType("Disposition-Notification-To") ? msg->headerByType("Disposition-Notification-To")->asUnicodeString() : QString();
125 const KMime::Message::Ptr mdn = factory.createMDN( KMime::MDN::AutomaticAction, type, mdnSend.second, quote, modifiers );
virtual QString argsAsStringReal() const
Definition: filteraction.cpp:96
FilterAction(const QString &name, const QString &label, QObject *parent=0)
Creates a new filter action.
Definition: filteraction.cpp:36
virtual bool folderRemoved(const Akonadi::Collection &aFolder, const Akonadi::Collection &aNewFolder)
Called from the filter when a folder is removed.
Definition: filteraction.cpp:101
virtual QString argsAsString() const =0
Return extra arguments as string.
virtual QStringList sieveRequires() const
Definition: filteraction.cpp:134
virtual QString informationAboutNotValidAction() const
Definition: filteraction.cpp:60
static void sendMDN(const Akonadi::Item &item, KMime::MDN::DispositionType d, const QList< KMime::MDN::DispositionModifier > &m=QList< KMime::MDN::DispositionModifier >())
Automates the sending of MDNs from filter actions.
Definition: filteraction.cpp:106
virtual bool argsFromStringInteractive(const QString &argsStr, const QString &filterName)
Read extra arguments from given string.
Definition: filteraction.cpp:89
void setObjectName(const QString &name)
QPair< bool, KMime::MDN::SendingMode > checkAndSetMDNInfo(const Akonadi::Item &item, KMime::MDN::DispositionType d, bool forceSend=false)
Checks the MDN headers to see if the user needs to be asked for any confirmations.
Definition: mdnadvicedialog.cpp:137
bool isEmpty() const
virtual bool isEmpty() const
Determines whether this action is valid.
Definition: filteraction.cpp:55
virtual QWidget * createParamWidget(QWidget *parent) const
Creates a widget for setting the filter action parameter.
Definition: filteraction.cpp:70
MAILCOMMON_EXPORT uint folderIdentity(const Akonadi::Item &item)
Returns the identity of the folder that contains the given Akonadi::Item.
Definition: mailutil.cpp:240
static FilterAction * newAction()
Static function that creates a filter action of this type.
Definition: filteraction.cpp:65
virtual void clearParamWidget(QWidget *paramWidget) const
The filter action shall clear it's parameter widget's contents.
Definition: filteraction.cpp:85
virtual void argsFromString(const QString &argsStr)=0
Read extra arguments from given string.
virtual void setParamWidgetValue(QWidget *paramWidget) const
The filter action shall set it's widget's contents from it's parameter.
Definition: filteraction.cpp:81
static MDNAdviceHelper * instance()
Definition: mdnadvicedialog.h:36
virtual void applyParamWidgetValue(QWidget *paramWidget)
The filter action shall set it's parameter from the widget's contents.
Definition: filteraction.cpp:77
virtual QString sieveCode() const
Definition: filteraction.cpp:139
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.