akonadi
collectionfiltermodel.cpp
48 const Akonadi::Collection collection = index.data( Akonadi::EntityTreeModel::CollectionRole ).value<Akonadi::Collection>();
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
T value() const
QSet< T > toSet() const
const_iterator insert(const T &value)
Can only read items or subcollection of this collection.
Definition: collection.h:87
void invalidateFilter()
Rights rights() const
Returns the rights the user has on the collection.
Definition: collection.cpp:99
QAbstractItemModel * sourceModel() const
QVariant data(int role) const
QSet< T > & intersect(const QSet< T > &other)
bool isEmpty() const
QStringList contentMimeTypes() const
Returns a list of possible content mimetypes, e.g.
Definition: collection.cpp:115
void addContentMimeTypeFilter(const QString &mimeType)
Adds a mime type to the content mime type filter list.
Definition: collectionfiltermodel.cpp:31
CollectionFilterModel(QObject *parent)
Creates a new collection filter model.
Definition: collectionfiltermodel.cpp:26
void setRightsFilter(Akonadi::Collection::Rights rights)
Sets the collection rights filter.
Definition: collectionfiltermodel.cpp:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:02 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:38:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.