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

akonadi

  • 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
29class QAbstractItemModel;
30class KCheckableProxyModel;
31
32namespace Akonadi {
33
34class EntityTreeModel;
35class ETMCalendarPrivate;
36class CollectionSelection;
37
54class AKONADI_CALENDAR_EXPORT ETMCalendar : public CalendarBase
55{
56 Q_OBJECT
57public:
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
91 explicit ETMCalendar(ETMCalendar *calendar, QObject *parent = 0);
92
96 ~ETMCalendar();
97
103 Akonadi::Collection collection(Akonadi::Collection::Id) const;
104
108 bool hasRight(const Akonadi::Item &item, Akonadi::Collection::Right right) const;
109
116 bool hasRight(const QString &uid, Akonadi::Collection::Right right) const;
117
122 KCheckableProxyModel *checkableProxyModel() const;
123
134 QAbstractItemModel *model() const;
135
149 Akonadi::EntityTreeModel *entityTreeModel() const;
150
159 using KCalCore::MemoryCalendar::alarms;
160 KCalCore::Alarm::List alarms(const KDateTime &from,
161 const KDateTime &to,
162 bool excludeBlockedAlarms) const;
163
171 void setCollectionFilteringEnabled(bool enable);
172
177 bool collectionFilteringEnabled() const;
178
183 bool isLoaded() const;
184
185Q_SIGNALS:
192 void collectionChanged(const Akonadi::Collection &, const QSet<QByteArray> &attributeNames);
193
199 void collectionsAdded(const Akonadi::Collection::List &collection);
200
206 void collectionsRemoved(const Akonadi::Collection::List &collection);
207
211 void calendarChanged();
212
213private:
214 Q_DECLARE_PRIVATE(ETMCalendar)
215};
216}
217
218#endif
Akonadi::CalendarBase
The base class for all akonadi aware calendars.
Definition calendarbase.h:51
Akonadi::Collection
Represents a collection of PIM items.
Definition collection.h:76
Akonadi::Collection::List
QList< Collection > List
Describes a list of collections.
Definition collection.h:81
Akonadi::Collection::Right
Right
Describes rights of a collection.
Definition collection.h:86
Akonadi::ETMCalendar
A KCalCore::Calendar that uses an EntityTreeModel to populate itself.
Definition etmcalendar.h:55
Akonadi::ETMCalendar::collectionsAdded
void collectionsAdded(const Akonadi::Collection::List &collection)
This signal is emitted when one or more collections are added to the ETM.
Akonadi::ETMCalendar::collectionChanged
void collectionChanged(const Akonadi::Collection &, const QSet< QByteArray > &attributeNames)
This signal is emitted if a collection has been changed (properties or attributes).
Akonadi::ETMCalendar::collectionsRemoved
void collectionsRemoved(const Akonadi::Collection::List &collection)
This signal is emitted when one or more collections are deleted from the ETM.
Akonadi::ETMCalendar::calendarChanged
void calendarChanged()
Emitted whenever an Item is inserted, removed or modified.
Akonadi::EntityTreeModel
A model for collections and items together.
Definition entitytreemodel.h:319
Akonadi::Entity::Id
qint64 Id
Describes the unique id type.
Definition entity.h:65
Akonadi
FreeBusyManager::Singleton.
Definition actionstatemanager_p.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 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
  • Related Pages

kdepimlibs-4.14.10 API Reference

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