mailcommon
filteractionsetidentity.cpp
Go to the documentation of this file.
46 bool FilterActionSetIdentity::argsFromStringInteractive( const QString &argsStr, const QString &filterName )
52 QPointer<FilterActionMissingIdentityDialog> dlg = new FilterActionMissingIdentityDialog( filterName );
64 FilterAction::ReturnCode FilterActionSetIdentity::process(ItemContext &context , bool applyOnOutbound) const
73 const uint currentId = msg->headerByType( "X-KMail-Identity" ) ? msg->headerByType( "X-KMail-Identity" )->asUnicodeString().trimmed().toUInt() : 0;
75 KMime::Headers::Generic *header = new KMime::Headers::Generic( "X-KMail-Identity", msg.get(), QString::number( mParameter ), "utf-8" );
79 const KMime::Types::Mailbox::List mailboxes = MessageCore::StringUtil::mailboxListFromUnicodeString( ident.bcc() );
101 KPIMIdentities::IdentityCombo *comboBox = new KPIMIdentities::IdentityCombo( KernelIf->identityManager(), parent );
112 const KPIMIdentities::IdentityCombo *comboBox = dynamic_cast<KPIMIdentities::IdentityCombo*>( paramWidget );
120 KPIMIdentities::IdentityCombo *comboBox = dynamic_cast<KPIMIdentities::IdentityCombo*>( paramWidget );
128 KPIMIdentities::IdentityCombo *comboBox = dynamic_cast<KPIMIdentities::IdentityCombo*>( paramWidget );
void applyParamWidgetValue(QWidget *parent)
The filter action shall set it's parameter from the widget's contents.
Definition: filteractionsetidentity.cpp:110
SearchRule::RequiredPart requiredPart() const
Returns the required part from the item that is needed for the action to operate. ...
Definition: filteractionsetidentity.cpp:93
virtual void argsFromString(const QString &argsStr)
Read extra arguments from given string.
Definition: filteractionwithuoid.cpp:36
Abstract base class for filter actions with a free-form string as parameter.
Definition: filteractionwithuoid.h:41
void setNeedsPayloadStore()
Marks that the item's payload has been changed and needs to be written back.
Definition: itemcontext.cpp:44
void setParamWidgetValue(QWidget *parent) const
The filter action shall set it's widget's contents from it's parameter.
Definition: filteractionsetidentity.cpp:126
static FilterAction * newAction()
Definition: filteractionsetidentity.cpp:35
QString number(int n, int base)
bool argsFromStringInteractive(const QString &argsStr, const QString &filterName)
Read extra arguments from given string.
Definition: filteractionsetidentity.cpp:46
ReturnCode process(ItemContext &context, bool applyOnOutbound) const
Execute action on given message (inside the item context).
Definition: filteractionsetidentity.cpp:64
void setObjectName(const QString &name)
QWidget * createParamWidget(QWidget *parent) const
Creates a widget for setting the filter action parameter.
Definition: filteractionsetidentity.cpp:99
void clearParamWidget(QWidget *param) const
The filter action shall clear it's parameter widget's contents.
Definition: filteractionsetidentity.cpp:118
void filterActionModified()
Called to notify that the current FilterAction has had some value modification.
FilterActionSetIdentity(QObject *parent=0)
Definition: filteractionsetidentity.cpp:40
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
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.