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>
35class CollectionPrivate;
36class 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;
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().
ListPurpose
Describes the purpose of the listing.
@ ListSync
Listing for synchronization.
@ ListDisplay
Listing for display to the user.
QList< Collection > List
Describes a list of collections.
Right
Describes rights of a collection.
ListPreference
Describes the list preference value.
@ ListDisabled
Disable collectoin for specified purpose.
@ ListEnabled
Enable collection for specified purpose.
The base class for Item and Collection.
FreeBusyManager::Singleton.
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.