akonadi
emailaddressselectionproxymodel_p.h
00001 /* 00002 This file is part of Akonadi Contact. 00003 00004 Copyright (c) 2010 KDAB 00005 Author: Tobias Koenig <tokoe@kde.org> 00006 00007 This library is free software; you can redistribute it and/or modify it 00008 under the terms of the GNU Library General Public License as published by 00009 the Free Software Foundation; either version 2 of the License, or (at your 00010 option) any later version. 00011 00012 This library is distributed in the hope that it will be useful, but WITHOUT 00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00014 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00015 License for more details. 00016 00017 You should have received a copy of the GNU Library General Public License 00018 along with this library; see the file COPYING.LIB. If not, write to the 00019 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00020 02110-1301, USA. 00021 */ 00022 00023 #ifndef EMAILADDRESSSELECTIONPROXYMODEL_H 00024 #define EMAILADDRESSSELECTIONPROXYMODEL_H 00025 00026 #include "leafextensionproxymodel_p.h" 00027 00028 #include "contactstreemodel.h" 00029 00030 namespace Akonadi { 00031 00032 class EmailAddressSelectionProxyModel : public Akonadi::LeafExtensionProxyModel 00033 { 00034 Q_OBJECT 00035 00036 public: 00037 enum Role 00038 { 00039 NameRole = ContactsTreeModel::DateRole + 1, 00040 EmailAddressRole 00041 }; 00042 00043 EmailAddressSelectionProxyModel( QObject *parent = 0 ); 00044 ~EmailAddressSelectionProxyModel(); 00045 00046 QVariant data( const QModelIndex &proxyIndex, int role = Qt::DisplayRole ) const; 00047 00048 protected: 00052 int leafRowCount( const QModelIndex &index ) const; 00053 00057 int leafColumnCount( const QModelIndex &index ) const; 00058 00063 QVariant leafData( const QModelIndex &index, int row, int column, int role = Qt::DisplayRole ) const; 00064 00065 private: 00066 }; 00067 00068 } 00069 00070 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Tue May 8 2012 00:00:42 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Tue May 8 2012 00:00:42 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.