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

akonadi

entityorderproxymodel.h
00001 /*
00002     Copyright (C) 2010 Klarälvdalens Datakonsult AB,
00003         a KDAB Group company, info@kdab.net,
00004         author Stephen Kelly <stephen@kdab.com>
00005 
00006     This library is free software; you can redistribute it and/or modify it
00007     under the terms of the GNU Library General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or (at your
00009     option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful, but WITHOUT
00012     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00013     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00014     License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to the
00018     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019     02110-1301, USA.
00020 */
00021 
00022 #ifndef AKONADI_ENTITYORDERPROXYMODEL_H
00023 #define AKONADI_ENTITYORDERPROXYMODEL_H
00024 
00025 #include <QtGui/QSortFilterProxyModel>
00026 
00027 #include "akonadi_export.h"
00028 
00029 class KConfigGroup;
00030 
00031 namespace Akonadi
00032 {
00033 class EntityOrderProxyModelPrivate;
00034 
00044 class AKONADI_EXPORT EntityOrderProxyModel : public QSortFilterProxyModel
00045 {
00046   Q_OBJECT
00047 
00048   public:
00054     EntityOrderProxyModel( QObject *parent = 0 );
00055 
00059     virtual ~EntityOrderProxyModel();
00060 
00064     void setOrderConfig( KConfigGroup &group );
00065 
00069     void saveOrder();
00070 
00071     void clearOrder( const QModelIndex &index );
00072     void clearTreeOrder();
00073 
00077     virtual bool lessThan( const QModelIndex &left, const QModelIndex &right ) const;
00078 
00082     virtual bool dropMimeData( const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent );
00083 
00087     virtual QModelIndexList match( const QModelIndex& start, int role, const QVariant& value, int hits = 1,
00088                                    Qt::MatchFlags flags = Qt::MatchFlags( Qt::MatchStartsWith | Qt::MatchWrap ) ) const;
00089 
00090   protected:
00091     EntityOrderProxyModelPrivate * const d_ptr;
00092 
00093     virtual QString parentConfigString( const QModelIndex &index ) const;
00094     virtual QString configString( const QModelIndex &index ) const;
00095 
00096   private:
00097     //@cond PRIVATE
00098     Q_DECLARE_PRIVATE( EntityOrderProxyModel )
00099     //@endcond
00100 };
00101 
00102 }
00103 
00104 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 04:52:54 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