mailcommon
filtermanager.cpp
Go to the documentation of this file.
46 mMailFilterAgentInterface = new org::freedesktop::Akonadi::MailFilterAgent( QLatin1String( "org.freedesktop.Akonadi.MailFilterAgent" ),
68 KSharedConfig::Ptr config = KSharedConfig::openConfig( QLatin1String("akonadi_mailfilter_agentrc") );
77 KSharedConfig::Ptr config = KSharedConfig::openConfig( QLatin1String("akonadi_mailfilter_agentrc") );
129 connect(watcher, SIGNAL(propertyChanged(Nepomuk2::Resource,Nepomuk2::Types::Property,QVariantList,QVariantList)),
149 disconnect( Akonadi::ServerManager::self(), SIGNAL(stateChanged(Akonadi::ServerManager::State)));
239 void FilterManager::filter( const Akonadi::Item &item, const QString &identifier, const QString &resourceId ) const
244 void FilterManager::filter( const Akonadi::Item &item, FilterSet set, bool account, const QString &resourceId ) const
246 d->mMailFilterAgentInterface->filterItem( item.id(), static_cast<int>(set), account ? resourceId : QString() );
249 void FilterManager::filter( const Akonadi::Item::List& messages, FilterManager::FilterSet set ) const
260 void FilterManager::filter(const Akonadi::Item::List& messages, SearchRule::RequiredPart requiredPart, const QStringList& listFilters) const
266 d->mMailFilterAgentInterface->applySpecificFilters( itemIds, static_cast<int>(requiredPart), listFilters);
282 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:269
void loadingFiltersDone()
A wrapper class that allows easy access to the mail filters.
Definition: filtermanager.h:47
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:239
void showFilterLogDialog(qlonglong windowId)
Shows the filter log dialog.
Definition: filtermanager.cpp:234
bool isValid() const
Returns whether the filter manager is in a usable state.
Definition: filtermanager.cpp:224
void endUpdate()
Should be called at the end of an filter list update.
Definition: filtermanager.cpp:314
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:229
void appendFilters(const QList< MailCommon::MailFilter * > &filters, bool replaceIfNameExists=false)
Manage filters interface.
Definition: filtermanager.cpp:282
static FilterManager * instance()
Returns the global filter manager object.
Definition: filtermanager.cpp:101
static FilterActionDict * filterActionDict()
Returns the global filter action dictionary.
Definition: filtermanager.cpp:109
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:99
void tagListingFinished()
QList< MailCommon::MailFilter * > filters() const
Returns the filter list of the manager.
Definition: filtermanager.cpp:277
static QList< MailFilter * > readFiltersFromConfig(const KSharedConfig::Ptr config, QStringList &emptyFilter)
Reads a list of filters from the given config file.
Definition: filterimporterexporter.cpp:59
void removeFilter(MailCommon::MailFilter *filter)
Removes the given filter from the list.
Definition: filtermanager.cpp:303
Definition: mailfilter.h:42
QMap< QUrl, QString > tagList() const
Definition: filtermanager.cpp:219
void beginUpdate()
Should be called at the beginning of an filter list update.
Definition: filtermanager.cpp:310
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.