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.
// Show only running agent instances that provide contacts
Akonadi.AgentInstanceModel *model = new Akonadi.AgentInstanceModel( this );
Akonadi.AgentFilterProxyModel *proxy = new Akonadi.AgentFilterProxyModel( this );
proxy->addMimeTypeFilter( "text/directory" );
proxy->setSourceModel( model );
QListView *view = new QListView( this );
view->setModel( proxy );
Author Volker Krause
|