• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

akonadi/contact

CollectionFilterModel Class Reference

A filter model for Akonadi collections. More...

#include <collectionfiltermodel_p.h>

Inherits QSortFilterProxyModel.

List of all members.

Public Member Functions

 CollectionFilterModel (QObject *parent)
void addContentMimeTypeFilter (const QString &mimeType)
void setRightsFilter (Akonadi::Collection::Rights rights)

Protected Member Functions

virtual bool filterAcceptsRow (int row, const QModelIndex &parent) const

Detailed Description

A filter model for Akonadi collections.

This proxy model filters Akonadi collections by content mime type and rights. It works on a flat list of collections, so a EntityTreeModel has to be adapted by using Akonadi::DescendantsProxyModel.

Author:
Tobias Koenig <tokoe@kde.org>

Definition at line 39 of file collectionfiltermodel_p.h.


Constructor & Destructor Documentation

CollectionFilterModel::CollectionFilterModel ( QObject *  parent  ) 

Creates a new collection filter model.

Parameters:
parent The parent object.

Definition at line 26 of file collectionfiltermodel.cpp.


Member Function Documentation

void CollectionFilterModel::addContentMimeTypeFilter ( const QString &  mimeType  ) 

Adds a mime type to the content mime type filter list.

If a mime type has been added, only collections that contain this mime type in their content mime types will be listed by this proxy model.

Definition at line 31 of file collectionfiltermodel.cpp.

void CollectionFilterModel::setRightsFilter ( Akonadi::Collection::Rights  rights  ) 

Sets the collection rights filter.

Only collections that allows this rights combination will be listed by this proxy model.

Definition at line 37 of file collectionfiltermodel.cpp.


The documentation for this class was generated from the following files:
  • collectionfiltermodel_p.h
  • collectionfiltermodel.cpp

akonadi/contact

Skip menu "akonadi/contact"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.2-20100208
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal