akonadi
20 #ifndef AKONADI_COLLECTION_H
21 #define AKONADI_COLLECTION_H
23 #include "akonadi_export.h"
25 #include <akonadi/entity.h>
27 #include <QtCore/QMetaType>
28 #include <QtCore/QSharedDataPointer>
35 class CollectionPrivate;
36 class CollectionStatistics;
81 typedef QList<Collection>
List;
91 CanChangeCollection = 0x8,
92 CanCreateCollection = 0x10,
93 CanDeleteCollection = 0x20,
96 AllRights = (CanChangeItem | CanCreateItem | CanDeleteItem |
97 CanChangeCollection | CanCreateCollection | CanDeleteCollection)
99 Q_DECLARE_FLAGS(Rights, Right)
131 QString name()
const;
140 QString displayName()
const;
147 void setName(
const QString &name);
152 Rights rights()
const;
157 void setRights(Rights rights);
164 QStringList contentMimeTypes()
const;
169 void setContentMimeTypes(
const QStringList &types);
175 AKONADI_DEPRECATED Id parent()
const;
182 AKONADI_DEPRECATED
void setParent(Id parent);
189 AKONADI_DEPRECATED
void setParent(
const Collection &collection);
196 AKONADI_DEPRECATED QString parentRemoteId()
const;
203 AKONADI_DEPRECATED
void setParentRemoteId(
const QString &identifier);
213 static QString mimeType();
220 static QString virtualMimeType();
225 QString resource()
const;
230 void setResource(
const QString &identifier);
274 KUrl url(UrlType type)
const;
281 bool isVirtual()
const;
289 void setVirtual(
bool isVirtual);
310 void setEnabled(
bool enabled);
317 bool enabled()
const;
352 void setLocalListPreference(ListPurpose purpose, ListPreference preference);
359 ListPreference localListPreference(ListPurpose purpose)
const;
368 bool shouldList(ListPurpose purpose)
const;
380 void setShouldList(ListPurpose purpose,
bool shouldList);
392 void setReferenced(
bool referenced);
398 bool referenced()
const;
416 Q_DECLARE_OPERATORS_FOR_FLAGS(Akonadi::Collection::Rights)
Provides statistics information of a Collection.
Job that modifies a collection in the Akonadi storage.
Represents a collection of PIM items.
Represents the caching policy for a collection.
Job that fetches collections from the Akonadi storage.
@ ListEnabled
Enable collection for specified purpose.
@ ListDisplay
Listing for display to the user.
@ ListSync
Listing for synchronization.
@ ListDisabled
Disable collectoin for specified purpose.
Right
Describes rights of a collection.
UrlType
Describes the type of url which is returned in url().
The base class for Item and Collection.
ListPurpose
Describes the purpose of the listing.
ListPreference
Describes the list preference value.
FreeBusyManager::Singleton.
QList< Collection > List
Describes a list of collections.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 28 2020 00:00:00 by
doxygen 1.8.18 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.