akonadi/contact
#include <collectionfiltermodel_p.h>
Inherits QSortFilterProxyModel.
Public Member Functions | |
CollectionFilterModel (QObject *parent) | |
void | addContentMimeTypeFilter (const QString &mimeType) |
void | setRightsFilter (Akonadi::Collection::Rights rights) |
Protected Member Functions | |
virtual bool | filterAcceptsRow (int row, const QModelIndex &parent) const |
Detailed Description
A filter model for Akonadi collections.
This proxy model filters Akonadi collections by content mime type and rights. It works on a flat list of collections, so a EntityTreeModel has to be adapted by using Akonadi::DescendantsProxyModel.
Definition at line 39 of file collectionfiltermodel_p.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new collection filter model.
- Parameters
-
parent The parent object.
Definition at line 26 of file collectionfiltermodel.cpp.
Member Function Documentation
void CollectionFilterModel::addContentMimeTypeFilter | ( | const QString & | mimeType | ) |
Adds a mime type to the content mime type filter list.
If a mime type has been added, only collections that contain this mime type in their content mime types will be listed by this proxy model.
- Parameters
-
mimeType mime type content filter
Definition at line 31 of file collectionfiltermodel.cpp.
void CollectionFilterModel::setRightsFilter | ( | Akonadi::Collection::Rights | rights | ) |
Sets the collection rights
filter.
Only collections that allows this rights combination will be listed by this proxy model.
- Parameters
-
rights collection rights filter
Definition at line 37 of file collectionfiltermodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.