akonadi
#include <entityrightsfiltermodel.h>
Inherits KRecursiveFilterProxyModel.
Public Member Functions | |
EntityRightsFilterModel (QObject *parent=0) | |
virtual | ~EntityRightsFilterModel () |
Collection::Rights | accessRights () const |
virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
virtual QModelIndexList | match (const QModelIndex &start, int role, const QVariant &value, int hits=1, Qt::MatchFlags flags=Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap)) const |
void | setAccessRights (Collection::Rights rights) |
Protected Member Functions | |
virtual bool | acceptRow (int sourceRow, const QModelIndex &sourceParent) const |
Detailed Description
A proxy model that filters entities by access rights.
This class can be used on top of an EntityTreeModel to exclude entities by access type or to include only certain entities with special access rights.
- For collections the access rights are checked against the collections own rights.
- For items the access rights are checked against the item's parent collection rights.
- Since
- 4.6
Definition at line 60 of file entityrightsfiltermodel.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new entity rights filter model.
- Parameters
-
parent The parent object.
Definition at line 71 of file entityrightsfiltermodel.cpp.
|
virtual |
Destroys the entity rights filter model.
Definition at line 77 of file entityrightsfiltermodel.cpp.
Member Function Documentation
Collection::Rights EntityRightsFilterModel::accessRights | ( | ) | const |
Returns the access rights that are used for filtering.
Definition at line 89 of file entityrightsfiltermodel.cpp.
|
virtual |
- Reimplemented from superclass.
Definition at line 104 of file entityrightsfiltermodel.cpp.
|
virtual |
- Reimplemented from superclass.
Definition at line 115 of file entityrightsfiltermodel.cpp.
void EntityRightsFilterModel::setAccessRights | ( | Collection::Rights | rights | ) |
Sets the access rights
the entities shall be filtered against.
If no rights are set explicitly, Collection::AllRights is assumed.
- Parameters
-
rights the access rights filter values
Definition at line 82 of file entityrightsfiltermodel.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:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.