akonadi
entityrightsfiltermodel.cpp
56 const Collection collection = index.data( EntityTreeModel::ParentCollectionRole ).value<Collection>();
112 return KRecursiveFilterProxyModel::flags( index ) & ~( Qt::ItemIsSelectable | Qt::ItemIsEnabled );
116 QModelIndexList EntityRightsFilterModel::match( const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags ) const
124 foreach ( const QModelIndex &idx, sourceModel()->match( mapToSource( start ), role, value, hits, flags ) ) {
void setAccessRights(Collection::Rights rights)
Sets the access rights the entities shall be filtered against.
Definition: entityrightsfiltermodel.cpp:83
Has all rights on this storage collection.
Definition: collection.h:96
Collection::Rights accessRights() const
Returns the access rights that are used for filtering.
Definition: entityrightsfiltermodel.cpp:90
A proxy model that filters entities by access rights.
Definition: entityrightsfiltermodel.h:60
Can only read items or subcollection of this collection.
Definition: collection.h:87
The parent collection of the entity.
Definition: entitytreemodel.h:340
Rights rights() const
Returns the rights the user has on the collection.
Definition: collection.cpp:99
virtual Qt::ItemFlags flags(const QModelIndex &index) const
Definition: entityrightsfiltermodel.cpp:105
virtual QModelIndexList match(const QModelIndex &start, int role, const QVariant &value, int hits=1, Qt::MatchFlags flags=Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const
Definition: entityrightsfiltermodel.cpp:116
virtual ~EntityRightsFilterModel()
Destroys the entity rights filter model.
Definition: entityrightsfiltermodel.cpp:78
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Nov 26 2013 09:03:17 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Nov 26 2013 09:03:17 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.