Mailcommon
filteractionforward.cpp
35 : FilterActionWithAddress(QStringLiteral("forward"), i18nc("Forward directly not with a command", "Forward To"), parent)
48 if (MessageCore::StringUtil::addressIsInAddressList(mParameter, QStringList(msg->to()->asUnicodeString()))) {
59 fwdMsg->to()->fromUnicodeString(fwdMsg->to()->asUnicodeString() + QLatin1Char(',') + mParameter, "utf-8");
91 lineEdit->setToolTip(i18nc("@info:tooltip", "The addressee to whom the message will be forwarded."));
92 lineEdit->setWhatsThis(i18n("The filter will forward the message to the addressee entered here."));
104 if (templat.type() == TemplateParser::CustomTemplates::TForward || templat.type() == TemplateParser::CustomTemplates::TUniversal) {
111 templateCombo->setWhatsThis(i18n("Set the forwarding template that will be used with this filter."));
112 connect(templateCombo, &KComboBox::currentIndexChanged, this, &FilterActionForward::filterActionModified);
113 connect(addressRequester, &Akonadi::EmailAddressRequester::textChanged, this, &FilterActionForward::filterActionModified);
124 const auto templateCombo = paramWidget->findChild<KComboBox *>(QStringLiteral("templateCombo"));
141 const auto templateCombo = paramWidget->findChild<KComboBox *>(QStringLiteral("templateCombo"));
162 const auto templateCombo = paramWidget->findChild<KComboBox *>(QStringLiteral("templateCombo"));
191bool FilterActionForward::argsFromStringInteractive(const QString &argsStr, const QString &filterName)
201 if (templat.type() == TemplateParser::CustomTemplates::TForward || templat.type() == TemplateParser::CustomTemplates::TUniversal) {
208 QPointer<MailCommon::FilterActionMissingTemplateDialog> dlg = new MailCommon::FilterActionMissingTemplateDialog(currentTemplateList, filterName);
void textChanged()
Id id() const
T payload() const
void setTrapReturnKey(bool trap)
Abstract base class for filter actions with a mail address as parameter.
Definition filteractionwithaddress.h:30
QWidget * createParamWidget(QWidget *parent) const override
Creates a widget for setting the filter action parameter.
Definition filteractionwithaddress.cpp:19
void applyParamWidgetValue(QWidget *paramWidget) override
The filter action shall set it's parameter from the widget's contents.
Definition filteractionwithaddress.cpp:31
void setParamWidgetValue(QWidget *paramWidget) const override
The filter action shall set it's widget's contents from it's parameter.
Definition filteractionwithaddress.cpp:36
void clearParamWidget(QWidget *paramWidget) const override
The filter action shall clear it's parameter widget's contents.
Definition filteractionwithaddress.cpp:41
virtual void argsFromString(const QString &argsStr)=0
Read extra arguments from given string.
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:96
virtual QString argsAsString() const =0
Return extra arguments as string.
void filterActionModified()
Called to notify that the current FilterAction has had some value modification.
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
MAILCOMMON_EXPORT uint folderIdentity(const Akonadi::Item &item)
Returns the identity of the folder that contains the given Akonadi::Item.
Definition mailutil.cpp:176
bool addressIsInAddressList(const QString &address, const QStringList &addresses)
void currentIndexChanged(int index)
void setClearButtonEnabled(bool enable)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
T findChild(const QString &name, Qt::FindChildOptions options) const const
QObject * parent() const const
T qobject_cast(QObject *object)
void setObjectName(QAnyStringView name)
void clear()
qsizetype indexOf(QChar ch, qsizetype from, Qt::CaseSensitivity cs) const const
bool isEmpty() const const
QString left(qsizetype n) const const
QString mid(qsizetype position, qsizetype n) const const
void setToolTip(const QString &)
void setWhatsThis(const QString &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:12:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:12:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.