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

mailcommon

  • sources
  • kde-4.12
  • kdepim
  • mailcommon
  • filter
filtermodel_p.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
3  Copyright (c) 2010 Andras Mantia <andras@kdab.com>
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 along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19 
20 #ifndef MAILCOMMON_FILTERMODEL_P_H
21 #define MAILCOMMON_FILTERMODEL_P_H
22 
23 #include <QModelIndex>
24 
25 namespace MailCommon {
26 
27 class FilterModel : public QAbstractListModel
28 {
29  Q_OBJECT
30 
31  public:
32  explicit FilterModel( QObject *parent = 0 );
33  virtual QVariant data( const QModelIndex &index, int role = Qt::DisplayRole ) const;
34  virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const;
35 
36  void moveRow( int sourceRow, int destinationRow );
37 
38  protected:
39  virtual bool insertRows( int row, int count, const QModelIndex &parent = QModelIndex() );
40  virtual bool removeRows( int row, int count, const QModelIndex &parent = QModelIndex() );
41 
42  private Q_SLOTS:
43  void filterListUpdated();
44 };
45 
46 }
47 
48 #endif
MailCommon::FilterModel::moveRow
void moveRow(int sourceRow, int destinationRow)
Definition: filtermodel.cpp:47
MailCommon::FilterModel
Definition: filtermodel_p.h:27
QAbstractListModel
QObject
MailCommon::FilterModel::data
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: filtermodel.cpp:33
MailCommon::FilterModel::insertRows
virtual bool insertRows(int row, int count, const QModelIndex &parent=QModelIndex())
Definition: filtermodel.cpp:73
MailCommon::FilterModel::FilterModel
FilterModel(QObject *parent=0)
Definition: filtermodel.cpp:26
MailCommon::FilterModel::rowCount
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: filtermodel.cpp:42
MailCommon::FilterModel::removeRows
virtual bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
Definition: filtermodel.cpp:85
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailcommon

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

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