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

akonadi

  • sources
  • kde-4.12
  • kdepimlibs
  • akonadi
  • calendar
etmcalendar.h
1 /*
2  Copyright (C) 2011 Sérgio Martins <sergio.martins@kdab.com>
3  Copyright (C) 2012 Sérgio Martins <iamsergio@gmail.com>
4 
5  This library is free software; you can redistribute it and/or modify it
6  under the terms of the GNU Library General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or (at your
8  option) any later version.
9 
10  This library is distributed in the hope that it will be useful, but WITHOUT
11  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13  License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to the
17  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18  02110-1301, USA.
19 */
20 
21 #ifndef _AKONADI_ETMCALENDAR_H_
22 #define _AKONADI_ETMCALENDAR_H_
23 
24 #include "akonadi-calendar_export.h"
25 #include "calendarbase.h"
26 
27 #include <akonadi/collection.h>
28 
29 class QAbstractItemModel;
30 class KCheckableProxyModel;
31 
32 namespace Akonadi {
33 
34 class EntityTreeModel;
35 class ETMCalendarPrivate;
36 class CollectionSelection;
37 
54 class AKONADI_CALENDAR_EXPORT ETMCalendar : public CalendarBase
55 {
56  Q_OBJECT
57 public:
58 
59  enum CollectionColumn {
60  CollectionTitle = 0,
61  CollectionColumnCount
62  };
63 
64  typedef QSharedPointer<ETMCalendar> Ptr;
65 
69  explicit ETMCalendar(QObject *parent = 0);
70 
76  explicit ETMCalendar(const QStringList &mimeTypes, QObject *parent = 0);
77 
81  ~ETMCalendar();
82 
88  Akonadi::Collection collection(Akonadi::Collection::Id) const;
89 
93  bool hasRight(const Akonadi::Item &item, Akonadi::Collection::Right right) const;
94 
101  bool hasRight(const QString &uid, Akonadi::Collection::Right right) const;
102 
107  KCheckableProxyModel *checkableProxyModel() const;
108 
119  QAbstractItemModel *model() const;
120 
134  Akonadi::EntityTreeModel *entityTreeModel() const;
135 
144  using KCalCore::MemoryCalendar::alarms;
145  KCalCore::Alarm::List alarms(const KDateTime &from,
146  const KDateTime &to,
147  bool excludeBlockedAlarms) const;
148 
156  void setCollectionFilteringEnabled(bool enable);
157 
162  bool collectionFilteringEnabled() const;
163 
164 Q_SIGNALS:
171  void collectionChanged(const Akonadi::Collection &, const QSet<QByteArray> &attributeNames);
172 
178  void collectionsAdded(const Akonadi::Collection::List &collection);
179 
185  void collectionsRemoved(const Akonadi::Collection::List &collection);
186 
190  void calendarChanged();
191 
192 private:
193  Q_DECLARE_PRIVATE(ETMCalendar)
194 };
195 }
196 
197 #endif
Akonadi::Collection
Represents a collection of PIM items.
Definition: collection.h:75
Akonadi::Entity::Id
qint64 Id
Describes the unique id type.
Definition: entity.h:65
Akonadi::Collection::Right
Right
Describes rights of a collection.
Definition: collection.h:86
Akonadi::EntityTreeModel
A model for collections and items together.
Definition: entitytreemodel.h:317
Akonadi::CalendarBase
The base class for all akonadi aware calendars.
Definition: calendarbase.h:50
Akonadi::Collection::List
QList< Collection > List
Describes a list of collections.
Definition: collection.h:81
Akonadi::ETMCalendar
A KCalCore::Calendar that uses an EntityTreeModel to populate itself.
Definition: etmcalendar.h:54
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:27 by doxygen 1.8.7 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 API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

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