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");
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"));
191 bool 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);
Abstract base class for filter actions with a mail address as parameter.
Definition: filteractionwithaddress.h:29
void setWhatsThis(const QString &)
void applyParamWidgetValue(QWidget *paramWidget) override
The filter action shall set it's parameter from the widget's contents.
Definition: filteractionwithaddress.cpp:31
MAILCOMMON_EXPORT uint folderIdentity(const Akonadi::Item &item)
Returns the identity of the folder that contains the given Akonadi::Item.
Definition: mailutil.cpp:177
void setTrapReturnKey(bool trap)
void setClearButtonEnabled(bool enable)
void argsFromString(const QString &argsStr) override
Read extra arguments from given string.
Definition: filteractionwithstring.cpp:52
void setParamWidgetValue(QWidget *paramWidget) const override
The filter action shall set it's widget's contents from it's parameter.
Definition: filteractionwithaddress.cpp:36
QString i18n(const char *text, const TYPE &arg...)
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const const
bool addressIsInAddressList(const QString &address, const QStringList &addresses)
QString argsAsString() const override
Return extra arguments as string.
Definition: filteractionwithstring.cpp:57
T findChild(const QString &name, Qt::FindChildOptions options) const const
void clearParamWidget(QWidget *paramWidget) const override
The filter action shall clear it's parameter widget's contents.
Definition: filteractionwithaddress.cpp:41
Id id() const
void setToolTip(const QString &)
QString left(int n) const const
void setObjectName(const QString &name)
void textChanged()
void currentIndexChanged(int index)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString mid(int position, int n) const const
QWidget * createParamWidget(QWidget *parent) const override
Creates a widget for setting the filter action parameter.
Definition: filteractionwithaddress.cpp:19
T payload() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:56:33 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:56:33 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.