• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

messagelist

  • sources
  • kde-4.12
  • kdepim
  • messagelist
  • core
modelinvariantrowmapper.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Copyright 2008 Szymon Tomasz Stefanek <pragma@kvirc.net>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  *
19  *******************************************************************************/
20 
21 #ifndef __MESSAGELIST_CORE_MODELINVARIANTROWMAPPER_H__
22 #define __MESSAGELIST_CORE_MODELINVARIANTROWMAPPER_H__
23 
24 #include <QHash>
25 #include <QList>
26 
27 #include <messagelist/core/modelinvariantindex.h>
28 #include <messagelist/messagelist_export.h>
29 
30 class QTimer;
31 
32 namespace MessageList
33 {
34 
35 namespace Core
36 {
37 
38 class ModelInvariantRowMapper;
39 class ModelInvariantRowMapperPrivate;
40 class RowShift;
41 
93 class MESSAGELIST_EXPORT ModelInvariantRowMapper : public QObject
94 {
95  friend class ModelInvariantIndex;
96 
97  Q_OBJECT
98 
99 public:
100  explicit ModelInvariantRowMapper();
101  virtual ~ModelInvariantRowMapper();
102 
109  void setLazyUpdateChunkInterval( int chunkInterval );
110 
117  void setLazyUpdateIdleInterval( int idleInterval );
118 
127  int modelInvariantIndexToModelIndexRow( ModelInvariantIndex * invariant );
128 
138  void createModelInvariantIndex( int modelIndexRow, ModelInvariantIndex * invariantToFill );
139 
145  ModelInvariantIndex * modelIndexRowToModelInvariantIndex( int modelIndexRow );
146 
153  QList< ModelInvariantIndex * > * modelIndexRowRangeToModelInvariantIndexList( int startIndexRow, int count );
154 
161  void modelRowsInserted( int modelIndexRowPosition, int count );
162 
177  QList< ModelInvariantIndex * > * modelRowsRemoved( int modelIndexRowPosition, int count );
178 
188  void modelReset();
189 
190 private:
191  Q_PRIVATE_SLOT(d, void slotPerformLazyUpdate())
192 
193  ModelInvariantRowMapperPrivate * const d;
194 };
195 
196 } // namespace Core
197 
198 } // namespace MessageList
199 
200 
201 #endif
modelinvariantindex.h
messagelist_export.h
MessageList::Core::ModelInvariantRowMapper
This class is an optimizing helper for dealing with large flat QAbstractItemModel objects...
Definition: modelinvariantrowmapper.h:93
QObject
MESSAGELIST_EXPORT
#define MESSAGELIST_EXPORT
Definition: messagelist_export.h:34
MessageList::Core::ModelInvariantRowMapperPrivate
Definition: modelinvariantrowmapper_p.h:37
MessageList::Core::ModelInvariantIndex
An invariant index that can be ALWAYS used to reference an item inside a QAbstractItemModel.
Definition: modelinvariantindex.h:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

messagelist

Skip menu "messagelist"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



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