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

akonadi

  • akonadi
  • contact
contactstreemodel.h
1 /*
2  This file is part of Akonadi Contact.
3 
4  Copyright (c) 2009 Stephen Kelly <steveire@gmail.com>
5  Copyright (c) 2009 Tobias Koenig <tokoe@kde.org>
6 
7  This library is free software; you can redistribute it and/or modify it
8  under the terms of the GNU Library General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or (at your
10  option) any later version.
11 
12  This library is distributed in the hope that it will be useful, but WITHOUT
13  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
15  License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to the
19  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20  02110-1301, USA.
21 */
22 
23 #ifndef AKONADI_CONTACTSTREEMODEL_H
24 #define AKONADI_CONTACTSTREEMODEL_H
25 
26 #include "akonadi-contact_export.h"
27 
28 #include <akonadi/entitytreemodel.h>
29 
30 namespace Akonadi {
31 
78 class AKONADI_CONTACT_EXPORT ContactsTreeModel : public EntityTreeModel
79 {
80  Q_OBJECT
81 
82  public:
86  enum Column
87  {
91  FullName,
92 
96  FamilyName,
97 
101  GivenName,
102 
106  Birthday,
107 
111  HomeAddress,
112 
116  BusinessAddress,
117 
121  PhoneNumbers,
122 
126  PreferredEmail,
127 
131  AllEmails,
132 
136  Organization,
137 
141  Role,
142 
146  Homepage,
147 
151  Note
152  };
153 
157  typedef QList<Column> Columns;
158 
162  enum Roles
163  {
164  DateRole = EntityTreeModel::UserRole + 1,
165  UserRole = DateRole + 42
166  };
167 
174  explicit ContactsTreeModel( ChangeRecorder *monitor, QObject *parent = 0 );
175 
179  virtual ~ContactsTreeModel();
180 
184  void setColumns( const Columns &columns );
185 
189  Columns columns() const;
190 
191  //@cond PRIVATE
192  virtual QVariant entityData( const Item &item, int column, int role = Qt::DisplayRole ) const;
193  virtual QVariant entityData( const Collection &collection, int column, int role = Qt::DisplayRole ) const;
194  virtual QVariant entityHeaderData( int section, Qt::Orientation orientation, int role, HeaderGroup headerGroup ) const;
195  virtual int entityColumnCount( HeaderGroup headerGroup ) const;
196  //@endcond
197 
198  private:
199  //@cond PRIVATE
200  class Private;
201  Private* const d;
202  //@endcond
203 };
204 
205 }
206 
207 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Wed Nov 28 2012 21:51:28 by doxygen 1.8.1.2 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.9.3 API Reference

Skip menu "kdepimlibs-4.9.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