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>
81 typedef QList<Collection>
List;
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;
416Q_DECLARE_OPERATORS_FOR_FLAGS(Akonadi::Collection::Rights)
Represents the caching policy for a collection.
Job that fetches collections from the Akonadi storage.
Job that modifies a collection in the Akonadi storage.
Provides statistics information of a Collection.
Represents a collection of PIM items.
UrlType
Describes the type of url which is returned in url().
@ UrlWithName
A url with identifier and name.
@ UrlShort
A short url which contains the identifier only (equivalent to url())
Collection()
Creates an invalid collection.
ListPurpose
Describes the purpose of the listing.
@ ListSync
Listing for synchronization.
@ ListIndex
Listing for indexing the content.
@ ListDisplay
Listing for display to the user.
QList< Collection > List
Describes a list of collections.
Right
Describes rights of a collection.
@ CanDeleteItem
Can delete items in this collection.
@ ReadOnly
Can only read items or subcollection of this collection.
@ CanDeleteCollection
Can delete this collection.
@ CanChangeCollection
Can change this collection.
@ CanCreateItem
Can create new items in this collection.
@ CanLinkItem
Can create links to existing items in this virtual collection.
@ CanCreateCollection
Can create new subcollections in this collection.
@ CanUnlinkItem
Can remove links to items in this virtual collection.
@ AllRights
Has all rights on this storage collection.
@ CanChangeItem
Can change items in this collection.
ListPreference
Describes the list preference value.
@ ListDefault
Fallback to enabled state.
@ ListDisabled
Disable collectoin for specified purpose.
@ ListEnabled
Enable collection for specified purpose.
Entity(const Entity &other)
Creates an entity from an other entity.
FreeBusyManager::Singleton.