mailcommon
filtermanager.cpp
Go to the documentation of this file.
43 mMailFilterAgentInterface = new org::freedesktop::Akonadi::MailFilterAgent( QLatin1String( "org.freedesktop.Akonadi.MailFilterAgent" ),
65 KSharedConfig::Ptr config = KSharedConfig::openConfig( QLatin1String("akonadi_mailfilter_agentrc") );
74 KSharedConfig::Ptr config = KSharedConfig::openConfig( QLatin1String("akonadi_mailfilter_agentrc") );
123 connect(d->mMonitor, SIGNAL(tagRemoved(Akonadi::Tag)), this, SLOT(slotTagRemoved(Akonadi::Tag)));
124 connect(d->mMonitor, SIGNAL(tagChanged(Akonadi::Tag)), this, SLOT(slotTagChanged(Akonadi::Tag)));
140 disconnect( Akonadi::ServerManager::self(), SIGNAL(stateChanged(Akonadi::ServerManager::State)));
218 void FilterManager::filter( const Akonadi::Item &item, const QString &identifier, const QString &resourceId ) const
223 void FilterManager::filter( const Akonadi::Item &item, FilterSet set, bool account, const QString &resourceId ) const
225 d->mMailFilterAgentInterface->filterItem( item.id(), static_cast<int>(set), account ? resourceId : QString() );
228 void FilterManager::filter( const Akonadi::Item::List& messages, FilterManager::FilterSet set ) const
239 void FilterManager::filter(const Akonadi::Item::List& messages, SearchRule::RequiredPart requiredPart, const QStringList& listFilters) const
245 d->mMailFilterAgentInterface->applySpecificFilters( itemIds, static_cast<int>(requiredPart), listFilters);
261 void FilterManager::appendFilters( const QList<MailCommon::MailFilter*> &filters, bool replaceIfNameExists )
void setFilters(const QList< MailCommon::MailFilter * > &filters)
Replace the list of filters of the filter manager with the given list of filters. ...
Definition: filtermanager.cpp:248
void loadingFiltersDone()
A wrapper class that allows easy access to the mail filters.
Definition: filtermanager.h:40
QDBusConnection sessionBus()
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void filtersChanged()
This signal is emitted whenever the filter list has been updated.
void filter(const Akonadi::Item &item, const QString &identifier, const QString &resourceId) const
Apply filters interface.
Definition: filtermanager.cpp:218
void showFilterLogDialog(qlonglong windowId)
Shows the filter log dialog.
Definition: filtermanager.cpp:213
bool isValid() const
Returns whether the filter manager is in a usable state.
Definition: filtermanager.cpp:203
void endUpdate()
Should be called at the end of an filter list update.
Definition: filtermanager.cpp:293
QString createUniqueFilterName(const QString &name) const
Checks for existing filters with the name and extend the "name" to "name (i)" until no match is found...
Definition: filtermanager.cpp:208
void appendFilters(const QList< MailCommon::MailFilter * > &filters, bool replaceIfNameExists=false)
Manage filters interface.
Definition: filtermanager.cpp:261
static FilterManager * instance()
Returns the global filter manager object.
Definition: filtermanager.cpp:98
static FilterActionDict * filterActionDict()
Returns the global filter action dictionary.
Definition: filtermanager.cpp:106
static void writeFiltersToConfig(const QList< MailFilter * > &filters, KSharedConfig::Ptr config, bool exportFilter=false)
Writes the given list of filters to the given config file.
Definition: filterimporterexporter.cpp:98
void tagListingFinished()
QList< MailCommon::MailFilter * > filters() const
Returns the filter list of the manager.
Definition: filtermanager.cpp:256
static QList< MailFilter * > readFiltersFromConfig(const KSharedConfig::Ptr config, QStringList &emptyFilter)
Reads a list of filters from the given config file.
Definition: filterimporterexporter.cpp:58
void removeFilter(MailCommon::MailFilter *filter)
Removes the given filter from the list.
Definition: filtermanager.cpp:282
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Definition: mailfilter.h:42
QMap< QUrl, QString > tagList() const
Definition: filtermanager.cpp:198
void beginUpdate()
Should be called at the beginning of an filter list update.
Definition: filtermanager.cpp:289
singleShot
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.