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();
247 const QString newUid = aMsg->headerByType( "X-UID" ) ? aMsg->headerByType( "X-UID" )->asUnicodeString() : QString();
250 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:98
void clear()
virtual void applyParamWidgetValue(QWidget *paramWidget)
The filter action shall set it's parameter from the widget's contents.
Definition: filteractionwithurl.cpp:85
QByteArray trimmed() const
virtual void clearParamWidget(QWidget *paramWidget) const
The filter action shall clear it's parameter widget's contents.
Definition: filteractionwithurl.cpp:105
void setNeedsPayloadStore()
Marks that the item's payload has been changed and needs to be written back.
Definition: itemcontext.cpp:44
bool isEmpty() const
virtual QWidget * createParamWidget(QWidget *parent) const
Creates a widget for setting the filter action parameter.
Definition: filteractionwithcommand.cpp:35
int matchedLength() const
int indexIn(const QString &str, int offset, CaretMode caretMode) const
QString number(int n, int base)
void append(const T &value)
virtual QWidget * createParamWidget(QWidget *parent) const
Creates a widget for setting the filter action parameter.
Definition: filteractionwithurl.cpp:57
int toInt(bool *ok, int base) const
bool isEmpty() const
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
QString & replace(int position, int n, QChar after)
QString mid(int position, int n) const
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
int length() const
virtual void applyParamWidgetValue(QWidget *paramWidget)
The filter action shall set it's parameter from the widget's contents.
Definition: filteractionwithcommand.cpp:40
QString fromLatin1(const char *str, int size)
const_iterator constEnd() const
const_iterator constBegin() const
virtual ReturnCode genericProcess(ItemContext &context, bool filtering) const
Definition: filteractionwithcommand.cpp:173
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
static KMime::Content * findMimeNodeForIndex(KMime::Content *node, int &index)
Definition: filteractionwithcommand.cpp:55
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.