mailcommon
kmfilterdialog.cpp
Go to the documentation of this file.
483 const QStringList selectedFiltersId = mFilterList->selectedFilterId( requiredPart, mFolderRequester->collection().resource() );
771 KMessageBox::information(this, i18n("We cannot convert all KMail filters to sieve scripts but we can try :)"), i18n("Convert KMail filters to sieve scripts"));
783 KMessageBox::information(this, i18n("No filters selected."), i18n("Convert KMail filters to sieve scripts"));
KKeySequenceWidget * mKeySeqWidget
Definition: kmfilterdialog.h:241
void setConfigureShortcut(bool aShort)
Set whether this filter should be plugged into the filter menu.
Definition: mailfilter.cpp:319
Type type() const
void createFilter(const QByteArray &field, const QString &value)
Called from KMFilterMgr.
Definition: kmfilterdialog.cpp:414
void updateAccountList(MailCommon::MailFilter *filter)
Definition: kmfilteraccountlist.cpp:51
void updateSearchPattern()
Updates the search pattern according to the current widget values.
Definition: searchpatternedit.cpp:601
QCheckBox * mApplyOnIn
Lets the user select whether to apply this filter on inbound/outbound messages, both, or only on explicit CTRL-J.
Definition: kmfilterdialog.h:227
KIconButton * mFilterActionIconButton
Definition: kmfilterdialog.h:240
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
void addButton(QAbstractButton *button)
void slotStopProcessingButtonToggled(bool aChecked)
Definition: kmfilterdialog.cpp:647
A container widget for a list of FilterActionWidgets.
Definition: filteractionwidget.h:115
void slotFilterActionIconChanged(const QString &icon)
Definition: kmfilterdialog.cpp:691
QVariant data() const
void slotApplicableAccountsChanged()
Definition: kmfilterdialog.cpp:629
void setApplyOnOutbound(bool aApply=true)
Set whether this filter should be applied on outbound messages (aApply == true) or not...
Definition: mailfilter.cpp:199
T value() const
QCheckBox * mConfigureShortcut
Definition: kmfilterdialog.h:237
void setAlignment(QFlags< Qt::AlignmentFlag >)
void setShortcut(const KShortcut &shortcut)
Set the shortcut to be used if plugged into the filter menu or toolbar.
Definition: mailfilter.cpp:345
QList< FilterAction * > * actions()
Provides a reference to the internal action list.
Definition: mailfilter.cpp:179
void appendFilter(MailCommon::MailFilter *aFilter)
Definition: kmfilterlistbox.cpp:840
void loadFilterList(bool createDummyFilter)
Loads the filter list and selects the first filter.
Definition: kmfilterlistbox.cpp:781
MailCommon::FilterActionWidgetLister * mActionLister
The widget that allows editing of the filter actions.
Definition: kmfilterdialog.h:223
Definition: mailfilter.h:70
void setActionList(QList< MailCommon::FilterAction * > *list)
Sets the list of filter actions, the lister will create FilterActionWidgets for.
Definition: filteractionwidget.cpp:292
MailCommon::SearchPatternEdit * mPatternEdit
The widget that allows editing of the filter pattern.
Definition: kmfilterdialog.h:220
void filter(const Akonadi::Item &item, const QString &identifier, const QString &resourceId) const
Apply filters interface.
Definition: filtermanager.cpp:218
void addWidget(QWidget *widget)
void setBuddy(QWidget *buddy)
Akonadi::Collection collection() const
Returns the selected collection.
Definition: folderrequester.cpp:105
void slotDisableAccept()
Called when a user decides to continue editing invalid filters.
Definition: kmfilterdialog.cpp:747
void setStopProcessingHere(bool aStop)
Definition: mailfilter.cpp:309
void setEnabled(bool)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
void slotUpdateFilter()
Definition: kmfilterdialog.cpp:589
void slotFolderChanged(const Akonadi::Collection &)
Definition: kmfilterdialog.cpp:457
void ignore()
void setApplyBeforeOutbound(bool aApply=true)
Set whether this filter should be applied on outbound messages before sending (aApply == TRUE) or not...
Definition: mailfilter.cpp:204
MailCommon::FolderRequester * mFolderRequester
Definition: kmfilterdialog.h:245
void setLayout(QLayout *layout)
void setChildrenCollapsible(bool)
void slotFilterSelected(MailCommon::MailFilter *aFilter)
Internally connected to KMFilterListBox::filterSelected.
Definition: kmfilterdialog.cpp:527
Utility class that provides persisting of filters to/from KConfig.
Definition: filterimporterexporter.h:53
bool isEmpty() const
void slotFetchItemsForFolderDone(KJob *job)
Definition: kmfilterdialog.cpp:502
A widget that contains a KLineEdit which shows the current folder and a button that fires a FolderSel...
Definition: folderrequester.h:59
void reset()
Called when the widget should let go of the currently referenced filter and disable itself...
Definition: searchpatternedit.cpp:703
bool configureShortcut() const
Definition: mailfilter.cpp:325
bool configureToolbar() const
Definition: mailfilter.cpp:335
void setMargin(int margin)
void setData(const QVariant &userData)
int key() const
QRadioButton * mApplyOnForChecked
Definition: kmfilterdialog.h:231
bool stopProcessingHere() const
Definition: mailfilter.cpp:314
static FilterManager * instance()
Returns the global filter manager object.
Definition: filtermanager.cpp:98
void slotConfigureToolbarButtonToggled(bool aChecked)
Definition: kmfilterdialog.cpp:682
void setNotAllowToCreateNewFolder(bool notCreateNewFolder)
Definition: folderrequester.cpp:190
void createFilter(const QByteArray &field, const QString &value)
Called from KMFilterDialog.
Definition: kmfilterlistbox.cpp:284
QVariant fromValue(const T &value)
void slotExportFilters()
Called when a user clicks the export filters button.
Definition: kmfilterdialog.cpp:739
Definition: searchrule.h:80
void setChecked(bool)
void addLayout(QLayout *layout, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
QRadioButton * mApplyOnForAll
For a filter applied to inbound messages selects whether to apply this filter to all accounts or to s...
Definition: kmfilterdialog.h:231
Definition: mailfilter.h:70
void setSearchPattern(MailCommon::SearchPattern *aPattern)
Sets the search pattern.
Definition: searchpatternedit.cpp:680
void applyOnAccount(MailCommon::MailFilter *filter)
Definition: kmfilteraccountlist.cpp:89
void setIcon(const QString &icon)
Set the icon to be used if plugged into the filter menu or toolbar.
Definition: mailfilter.cpp:355
void exportFilters(const QList< MailFilter * > &filters, const KUrl &fileName=KUrl(), bool saveAll=false)
Exports the given filters to a file which is asked from the user.
Definition: filterimporterexporter.cpp:362
AccountType applicability() const
Definition: mailfilter.cpp:244
void setApplicability(AccountType aApply=All)
Set whether this filter should be applied on inbound messages for all accounts (aApply == All) or inb...
Definition: mailfilter.cpp:239
void addStretch(int stretch)
QList< MailCommon::MailFilter * > filtersForSaving(bool closeAfterSaving, bool &wasCanceled) const
Returns a list of copies of the current list of filters.
Definition: kmfilterlistbox.cpp:373
void slotUpdateAccountList()
Update the list of accounts shown in the advanced tab.
Definition: kmfilterdialog.cpp:700
void slotApplicabilityChanged()
Definition: kmfilterdialog.cpp:595
void slotShortcutChanged(const QKeySequence &newSeq)
Definition: kmfilterdialog.cpp:671
void setConfigureToolbar(bool aTool)
Set whether this filter should be plugged into the toolbar.
Definition: mailfilter.cpp:330
KMFilterListBox * mFilterList
The widget that contains the ListBox showing the filters, and the controls to remove filters...
Definition: kmfilterdialog.h:217
KMFilterAccountList * mAccountList
ListView that shows the accounts in the advanced tab.
Definition: kmfilterdialog.h:234
void slotConfigureShortcutButtonToggled(bool aChecked)
Definition: kmfilterdialog.cpp:657
Definition: kmfilterlistbox.h:71
void slotDialogUpdated()
Called whenever a change in the filters configuration is detected, to enable the Apply button...
Definition: kmfilterdialog.cpp:752
QRadioButton * mApplyOnForTraditional
Definition: kmfilterdialog.h:231
void setApplyOnExplicit(bool aApply=true)
Set whether this filter should be applied on explicit (CTRL-J) filtering (aApply == true) or not...
Definition: mailfilter.cpp:229
void setApplyOnInbound(bool aApply=true)
Set whether this filter should be applied on inbound messages (aApply == true) or not...
Definition: mailfilter.cpp:219
QCheckBox * mConfigureToolbar
Definition: kmfilterdialog.h:238
Definition: mailfilter.h:70
QLabel * mFilterActionLabel
Definition: kmfilterdialog.h:239
void setToolTip(const QString &)
void setApplyOnAccount(const QString &id, bool aApply=true)
Set whether this filter should be applied on inbound messages for the account with id (id)...
Definition: mailfilter.cpp:282
QStringList selectedFilterId(SearchRule::RequiredPart &requiredPart, const QString &resource) const
Definition: kmfilterlistbox.cpp:591
const_iterator constEnd() const
const_iterator constBegin() const
bool applyBeforeOutbound() const
Definition: mailfilter.cpp:214
virtual void accept()
Override QDialog::accept to allow disabling close.
Definition: kmfilterdialog.cpp:419
SearchPattern * pattern()
Provides a reference to the internal pattern.
Definition: mailfilter.cpp:189
Definition: mailfilter.h:42
QCheckBox * mStopProcessingHere
Definition: kmfilterdialog.h:236
bool mIgnoreFilterUpdates
Definition: kmfilterdialog.h:248
bool setStretchFactor(QWidget *widget, int stretch)
void setSpacing(int spacing)
void updateActionList()
Updates the action list according to the current action widget values.
Definition: filteractionwidget.cpp:387
QCheckBox * mApplyBeforeOut
Definition: kmfilterdialog.h:227
void addLayout(QLayout *layout, int stretch)
void slotImportFilter(QAction *)
Called when a user clicks the import filters button.
Definition: kmfilterdialog.cpp:705
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.