• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

akonadi/contact

Public Member Functions | Protected Member Functions | List of all members
CollectionFilterModel Class Reference

#include <collectionfiltermodel_p.h>

Inherits QSortFilterProxyModel.

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.nosp@m.@kde.nosp@m..org

Definition at line 39 of file collectionfiltermodel_p.h.

Constructor & Destructor Documentation

◆ CollectionFilterModel()

CollectionFilterModel::CollectionFilterModel ( QObject *  parent)
explicit

Creates a new collection filter model.

Parameters
parentThe parent object.

Definition at line 26 of file collectionfiltermodel.cpp.

Member Function Documentation

◆ addContentMimeTypeFilter()

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.

Parameters
mimeTypemime type content filter

Definition at line 31 of file collectionfiltermodel.cpp.

◆ filterAcceptsRow()

bool CollectionFilterModel::filterAcceptsRow ( int  row,
const QModelIndex &  parent 
) const
protectedvirtual

Definition at line 43 of file collectionfiltermodel.cpp.

◆ setRightsFilter()

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.

Parameters
rightscollection rights filter

Definition at line 37 of file collectionfiltermodel.cpp.


The documentation for this class was generated from the following files:
  • collectionfiltermodel_p.h
  • collectionfiltermodel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi/contact

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

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal