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

akonadi

  • akonadi
  • calendar
etmcalendar_p.h
1 /*
2  Copyright (c) 2011-2012 Sérgio Martins <iamsergio@gmail.com>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef AKONADI_ETMCALENDAR_P_H
21 #define AKONADI_ETMCALENDAR_P_H
22 
23 #include "etmcalendar.h"
24 #include "calendarbase_p.h"
25 #include "incidencechanger.h"
26 
27 #include <QVector>
28 #include <QModelIndex>
29 
30 class QAbstractItemModel;
31 class KCheckableProxyModel;
32 
33 namespace Akonadi {
34 
35 class EntityMimeTypeFilterModel;
36 
37 class ETMCalendarPrivate : public CalendarBasePrivate
38 {
39  Q_OBJECT
40 public:
41 
42  explicit ETMCalendarPrivate( ETMCalendar *qq );
43  ~ETMCalendarPrivate();
44 
45  void init();
46  void setupFilteredETM();
47  void loadFromETM();
48 
49 public Q_SLOTS:
50  Akonadi::Item::List itemsFromModel( const QAbstractItemModel *model,
51  const QModelIndex &parentIndex = QModelIndex(),
52  int start = 0,
53  int end = -1 );
54 
55  Akonadi::Collection::List collectionsFromModel( const QAbstractItemModel *model,
56  const QModelIndex &parentIndex = QModelIndex(),
57  int start = 0,
58  int end = -1 );
59  void clear();
60  Akonadi::Item itemFromIndex( const QModelIndex &idx );
61  Akonadi::Collection collectionFromIndex( const QModelIndex &index );
62  void itemsAdded( const Akonadi::Item::List &items );
63  void itemsRemoved( const Akonadi::Item::List &items );
64 
65  void onRowsInserted( const QModelIndex &index, int start, int end );
66  void onRowsRemoved( const QModelIndex &index, int start, int end );
67  void onDataChanged( const QModelIndex &topLeft, const QModelIndex &bottomRight );
68  void onRowsMoved( const QModelIndex &sourceParent, int sourceStart, int sourceEnd,
69  const QModelIndex &destinationParent, int destinationRow );
70 
71  void onLayoutChangedInFilteredModel();
72  void onModelResetInFilteredModel();
73  void onDataChangedInFilteredModel( const QModelIndex &topLeft, const QModelIndex &bottomRight );
74  void onRowsInsertedInFilteredModel( const QModelIndex &index, int start, int end );
75  void onRowsAboutToBeRemovedInFilteredModel( const QModelIndex &index, int start, int end );
76 
77 public:
78  QAbstractItemModel *mETM;
79  Akonadi::EntityMimeTypeFilterModel *mFilteredETM;
80 
81  // akonadi id to collections
82  QHash<Akonadi::Entity::Id, Akonadi::Collection> mCollectionMap;
83  KCheckableProxyModel *mCheckableProxyModel;
84 private:
85  ETMCalendar *const q;
86 };
87 
88 }
89 
90 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:36 by doxygen 1.8.3.1 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.10.5 API Reference

Skip menu "kdepimlibs-4.10.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • 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