mailcommon
filteractionwithcommand.cpp
Go to the documentation of this file.
30 FilterActionWithCommand::FilterActionWithCommand( const QString &name, const QString &label, QObject *parent )
69 QString FilterActionWithCommand::substituteCommandLineArgsFor( const KMime::Message::Ptr &aMsg, QList<KTemporaryFile*> &aTempFileList ) const
167 commandLine.replace( QLatin1String( "%{itemurl}" ), item.url( Akonadi::Item::UrlWithMimeType ).url() );
173 FilterAction::ReturnCode FilterActionWithCommand::genericProcess( ItemContext &context, bool withOutput ) const
242 const QString uid = aMsg->headerByType( "X-UID" ) ? aMsg->headerByType( "X-UID" )->asUnicodeString() : QString();
246 KMime::Headers::Generic *header = new KMime::Headers::Generic( "X-UID", aMsg.get(), uid, "utf-8" );
virtual void setParamWidgetValue(QWidget *paramWidget) const
The filter action shall set it's widget's contents from it's parameter.
Definition: filteractionwithurl.cpp:60
virtual void applyParamWidgetValue(QWidget *paramWidget)
The filter action shall set it's parameter from the widget's contents.
Definition: filteractionwithurl.cpp:53
virtual void clearParamWidget(QWidget *paramWidget) const
The filter action shall clear it's parameter widget's contents.
Definition: filteractionwithurl.cpp:65
void setNeedsPayloadStore()
Marks that the item's payload has been changed and needs to be written back.
Definition: itemcontext.cpp:45
virtual QWidget * createParamWidget(QWidget *parent) const
Creates a widget for setting the filter action parameter.
Definition: filteractionwithcommand.cpp:35
Abstract base class for filter actions with a command line as parameter.
Definition: filteractionwithurl.h:47
virtual QWidget * createParamWidget(QWidget *parent) const
Creates a widget for setting the filter action parameter.
Definition: filteractionwithurl.cpp:42
virtual void setParamWidgetValue(QWidget *paramWidget) const
The filter action shall set it's widget's contents from it's parameter.
Definition: filteractionwithcommand.cpp:45
virtual QString substituteCommandLineArgsFor(const KMime::Message::Ptr &aMsg, QList< KTemporaryFile * > &aTempFileList) const
Substitutes various placeholders for data from the message resp.
Definition: filteractionwithcommand.cpp:69
FilterActionWithCommand(const QString &name, const QString &label, QObject *parent=0)
Creates a new filter action.
Definition: filteractionwithcommand.cpp:30
virtual void clearParamWidget(QWidget *paramWidget) const
The filter action shall clear it's parameter widget's contents.
Definition: filteractionwithcommand.cpp:50
virtual void applyParamWidgetValue(QWidget *paramWidget)
The filter action shall set it's parameter from the widget's contents.
Definition: filteractionwithcommand.cpp:40
virtual ReturnCode genericProcess(ItemContext &context, bool filtering) const
Definition: filteractionwithcommand.cpp:173
static KMime::Content * findMimeNodeForIndex(KMime::Content *node, int &index)
Definition: filteractionwithcommand.cpp:55
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
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.