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

akonadi

recursivecollectionfilterproxymodel.h
00001 /*
00002     Copyright (c) 2009 Stephen Kelly <steveire@gmail.com>
00003     Copyright (c) 2012 Laurent Montel <montel@kde.org>
00004 
00005     This library is free software; you can redistribute it and/or modify it
00006     under the terms of the GNU Library General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or (at your
00008     option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful, but WITHOUT
00011     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013     License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to the
00017     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00018     02110-1301, USA.
00019 */
00020 
00021 
00022 #ifndef AKONADI_RECURSIVECOLLECTIONFILTERPROXYMODEL_H
00023 #define AKONADI_RECURSIVECOLLECTIONFILTERPROXYMODEL_H
00024 
00025 #include <krecursivefilterproxymodel.h>
00026 
00027 #include "akonadi_export.h"
00028 
00029 namespace Akonadi
00030 {
00031 
00032 class RecursiveCollectionFilterProxyModelPrivate;
00033 
00040 class AKONADI_EXPORT RecursiveCollectionFilterProxyModel : public KRecursiveFilterProxyModel
00041 {
00042   Q_OBJECT
00043 
00044   public:
00050     RecursiveCollectionFilterProxyModel( QObject *parent = 0 );
00051 
00055     virtual ~RecursiveCollectionFilterProxyModel();
00056 
00062     void addContentMimeTypeInclusionFilter( const QString &mimeType );
00063 
00069     void addContentMimeTypeInclusionFilters( const QStringList &mimeTypes );
00070 
00074     void clearFilters();
00075 
00081     void setContentMimeTypeInclusionFilters( const QStringList &mimeTypes );
00082 
00086     QStringList contentMimeTypeInclusionFilters() const;
00087 
00092     void setSearchPattern( const QString &pattern );
00093 
00094   protected:
00095     /* reimp */ bool acceptRow( int sourceRow, const QModelIndex &sourceParent ) const;
00096     /* reimp */ int columnCount( const QModelIndex& index ) const;
00097 
00098   protected:
00099     RecursiveCollectionFilterProxyModelPrivate * const d_ptr;
00100     Q_DECLARE_PRIVATE(RecursiveCollectionFilterProxyModel)
00101 };
00102 
00103 }
00104 
00105 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 04:52:58 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • 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