akonadi
#include <agentfilterproxymodel.h>
Inherits QSortFilterProxyModel.
Public Member Functions | |
| AgentFilterProxyModel (QObject *parent=0) | |
| ~AgentFilterProxyModel () | |
| void | addCapabilityFilter (const QString &capability) | 
| void | addMimeTypeFilter (const QString &mimeType) | 
| void | clearFilters () | 
| void | excludeCapabilities (const QString &capability) | 
Protected Member Functions | |
| bool | filterAcceptsRow (int row, const QModelIndex &parent) const | 
Detailed Description
A proxy model for filtering AgentType or AgentInstance.
This filter proxy model works on top of a AgentTypeModel or AgentInstanceModel and can be used to show only AgentType or AgentInstance objects which provide a given mime type or capability.
Definition at line 52 of file agentfilterproxymodel.h.
Constructor & Destructor Documentation
      
  | 
  explicit | 
Create a new agent filter proxy model.
By default no filtering is done.
- Parameters
 - 
  
parent parent object  
Definition at line 49 of file agentfilterproxymodel.cpp.
| AgentFilterProxyModel::~AgentFilterProxyModel | ( | ) | 
Destroys the agent filter proxy model.
Definition at line 56 of file agentfilterproxymodel.cpp.
Member Function Documentation
| void AgentFilterProxyModel::addCapabilityFilter | ( | const QString & | capability | ) | 
Accept agents with the given capability. 
Definition at line 67 of file agentfilterproxymodel.cpp.
| void AgentFilterProxyModel::addMimeTypeFilter | ( | const QString & | mimeType | ) | 
Accept agents supporting mimeType. 
Definition at line 61 of file agentfilterproxymodel.cpp.
| void AgentFilterProxyModel::clearFilters | ( | ) | 
Clear the filters ( mimeTypes & capabilities ).
Definition at line 79 of file agentfilterproxymodel.cpp.
| void AgentFilterProxyModel::excludeCapabilities | ( | const QString & | capability | ) | 
Excludes agents with the given capability. 
- Parameters
 - 
  
capability undesired agent capability  
- Since
 - 4.6
 
Definition at line 73 of file agentfilterproxymodel.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.
    KDE API Reference