Mailcommon
filteractionwithcommand.cpp
18FilterActionWithCommand::FilterActionWithCommand(const QString &name, const QString &label, QObject *parent)
60QString FilterActionWithCommand::substituteCommandLineArgsFor(const KMime::Message::Ptr &aMsg, QList<QTemporaryFile *> &aTempFileList) const
143 const QRegularExpression header_rx(QStringLiteral("%\\{([a-z0-9-]+)\\}"), QRegularExpression::CaseInsensitiveOption);
147 const KMime::Headers::Base *header = aMsg->headerByType(rmatch.captured(1).toLatin1().constData());
165 commandLine.replace(QLatin1StringView("%{itemurl}"), item.url(Akonadi::Item::UrlWithMimeType).url());
170FilterAction::ReturnCode FilterActionWithCommand::genericProcess(ItemContext &context, bool withOutput) const
T payload() const
QUrl url(UrlType type=UrlShort) const
Id id() const
UrlWithMimeType
QByteArray decodedContent() const
QList< Content * > contents()
virtual QByteArray as7BitString(bool withHeaderType=true) const=0
virtual void fromUnicodeString(const QString &s)=0
void setShellCommand(const QString &cmd)
SeparateChannels
void setOutputChannelMode(OutputChannelMode mode)
int execute(int msecs=-1)
void setNeedsPayloadStore()
Marks that the item's payload has been changed and needs to be written back.
Definition itemcontext.cpp:33
Q_SCRIPTABLE Q_NOREPLY void start()
KCOREADDONS_EXPORT QString quoteArg(const QString &arg)
QString name(StandardAction id)
KGuiItem ok()
QString label(StandardShortcut id)
const QList< QKeySequence > & end()
const char * constData() const const
bool isEmpty() const const
QByteArray trimmed() const const
WriteOnly
ConstIterator
void append(QList< T > &&value)
iterator begin()
void clear()
const_iterator constBegin() const const
const_iterator constEnd() const const
iterator end()
QObject * parent() const const
QByteArray readAllStandardOutput()
CaseInsensitiveOption
QString captured(QStringView name) const const
qsizetype capturedLength(QStringView name) const const
qsizetype capturedStart(QStringView name) const const
bool hasNext() const const
QRegularExpressionMatch next()
QString arg(Args &&... args) const const
QString fromLatin1(QByteArrayView str)
qsizetype indexOf(QChar ch, qsizetype from, Qt::CaseSensitivity cs) const const
bool isEmpty() const const
QString number(double n, char format, int precision)
QString & replace(QChar before, QChar after, Qt::CaseSensitivity cs)
qsizetype size() const const
int toInt(bool *ok, int base) const const
QByteArray toLatin1() const const
QString url(FormattingOptions options) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.