mailcommon
filteractionaddtoaddressbook.cpp
Go to the documentation of this file.
44 : FilterActionWithStringList( QLatin1String("add to address book"), i18n( "Add to Address Book" ), parent ),
60 FilterAction::ReturnCode FilterActionAddToAddressBook::process(ItemContext &context , bool) const
90 KPIM::AddContactJob *job = new KPIM::AddContactJob( contact, Akonadi::Collection( mCollectionId ) );
148 PimCommon::MinimumComboBox *headerCombo = paramWidget->findChild<PimCommon::MinimumComboBox*>( QLatin1String("HeaderComboBox") );
158 KPIM::TagWidget *categoryEdit = paramWidget->findChild<KPIM::TagWidget*>( QLatin1String("CategoryEdit") );
162 Akonadi::CollectionComboBox *collectionComboBox = paramWidget->findChild<Akonadi::CollectionComboBox*>( QLatin1String("AddressBookComboBox") );
170 const PimCommon::MinimumComboBox *headerCombo = paramWidget->findChild<PimCommon::MinimumComboBox*>( QLatin1String("HeaderComboBox") );
172 mHeaderType = static_cast<HeaderType>( headerCombo->itemData( headerCombo->currentIndex() ).toInt() );
174 const KPIM::TagWidget *categoryEdit = paramWidget->findChild<KPIM::TagWidget*>( QLatin1String("CategoryEdit") );
178 const Akonadi::CollectionComboBox *collectionComboBox = paramWidget->findChild<Akonadi::CollectionComboBox*>( QLatin1String("AddressBookComboBox") );
197 PimCommon::MinimumComboBox *headerCombo = paramWidget->findChild<PimCommon::MinimumComboBox*>( QLatin1String("HeaderComboBox") );
201 KPIM::TagWidget *categoryEdit = paramWidget->findChild<KPIM::TagWidget*>( QLatin1String("CategoryEdit") );
qlonglong toLongLong(bool *ok) const
Abstract base class for filter actions with a fixed set of string parameters.
Definition: filteractionwithstringlist.h:49
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
QString informationAboutNotValidAction() const
Definition: filteractionaddtoaddressbook.cpp:251
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
void applyParamWidgetValue(QWidget *paramWidget)
The filter action shall set it's parameter from the widget's contents.
Definition: filteractionaddtoaddressbook.cpp:168
void clear()
QString number(int n, int base)
int count(const T &value) const
void setObjectName(const QString &name)
bool isEmpty() const
QWidget * createParamWidget(QWidget *parent) const
Creates a widget for setting the filter action parameter.
Definition: filteractionaddtoaddressbook.cpp:104
SearchRule::RequiredPart requiredPart() const
Returns the required part from the item that is needed for the action to operate. ...
Definition: filteractionaddtoaddressbook.cpp:98
QString argsAsString() const
Return extra arguments as string.
Definition: filteractionaddtoaddressbook.cpp:206
FilterActionAddToAddressBook(QObject *parent=0)
Definition: filteractionaddtoaddressbook.cpp:43
Definition: searchrule.h:80
ReturnCode process(ItemContext &context, bool applyOnOutbound) const
Execute action on given message (inside the item context).
Definition: filteractionaddtoaddressbook.cpp:60
static FilterAction * newAction()
Definition: filteractionaddtoaddressbook.cpp:38
void filterActionModified()
Called to notify that the current FilterAction has had some value modification.
void argsFromString(const QString &argsStr)
Read extra arguments from given string.
Definition: filteractionaddtoaddressbook.cpp:227
bool isValid() const
void clearParamWidget(QWidget *paramWidget) const
The filter action shall clear it's parameter widget's contents.
Definition: filteractionaddtoaddressbook.cpp:195
void setParamWidgetValue(QWidget *paramWidget) const
The filter action shall set it's widget's contents from it's parameter.
Definition: filteractionaddtoaddressbook.cpp:146
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
bool isEmpty() const
Determines whether this action is valid.
Definition: filteractionaddtoaddressbook.cpp:55
T findChild(const QString &name) 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.