Akonadi
collection.h
37 * CollectionFetchJob *job = new CollectionFetchJob( Collection::root(), CollectionFetchJob::Recursive );
97 CanLinkItem = 0x40, ///< Can create links to existing items in this virtual collection @since 4.4
444 * For example: A collection is by default enabled, meaning it is displayed to the user, synchronized by the resource,
445 * and indexed by the indexer. A disabled collection on the other hand is not displayed, synchronized or indexed.
446 * The local list preference allows to locally override that default value for each purpose individually.
551AKONADICORE_EXPORT size_t qHash(const Akonadi::Collection &collection, size_t seed = 0) noexcept;
Job that creates a new collection in the Akonadi storage.
Definition collectioncreatejob.h:41
Job that fetches collections from the Akonadi storage.
Definition collectionfetchjob.h:39
Job that modifies a collection in the Akonadi storage.
Definition collectionmodifyjob.h:62
Provides statistics information of a Collection.
Definition core/collectionstatistics.h:59
void setVirtual(bool isVirtual)
Sets whether the collection is virtual or not.
Definition collection.cpp:352
@ UrlShort
A short url which contains the identifier only (equivalent to url())
Definition collection.h:409
void setParentCollection(const Collection &parent)
Set the parent collection of this object.
Definition collection.cpp:204
void addAttribute(Attribute *attribute)
Adds an attribute to the collection.
Definition collection.cpp:151
bool hasAttribute(const QByteArray &name) const
Returns true if the collection has an attribute of the given type name, false otherwise.
Definition collection.cpp:161
bool operator<(const Collection &other) const
Definition collection.cpp:146
Attribute::List attributes() const
Returns a list of all attributes of the collection.
Definition collection.cpp:166
void setName(const QString &name)
Sets the i18n'ed name of the collection.
Definition collection.cpp:221
const T * attribute() const
Returns the attribute of the requested type or 0 if it is not available.
Definition collection.h:573
CreateOption
Describes the options that can be passed to access attributes.
Definition collection.h:280
bool operator!=(const Collection &other) const
Returns whether the collection's id does not equal the id of the other collection.
Definition collection.cpp:132
void clearAttributes()
Removes and deletes all attributes of the collection.
Definition collection.cpp:171
Collection & operator=(const Collection &other)
Assigns the other to this collection and returns a reference to this collection.
Definition collection.cpp:137
void setRemoteId(const QString &id)
Sets the remote id of the collection.
Definition collection.cpp:101
void setResource(const QString &identifier)
Sets the identifier of the resource owning the collection.
Definition collection.cpp:307
static Collection fromUrl(const QUrl &url)
Creates a collection from the given url.
Definition collection.cpp:267
@ CanLinkItem
Can create links to existing items in this virtual collection.
Definition collection.h:97
Collection parentCollection() const
Returns the parent collection of this object.
Definition collection.cpp:195
void setContentMimeTypes(const QStringList &types)
Sets the list of possible content mime types.
Definition collection.cpp:245
bool operator==(const Collection &other) const
Returns whether this collections's id equals the id of the other collection.
Definition collection.cpp:126
void setRights(Rights rights)
Sets the rights the user has on the collection.
Definition collection.cpp:235
bool hasAttribute() const
Returns whether the collection has an attribute of the requested type.
Definition collection.h:593
void removeAttribute(const QByteArray &name)
Removes and deletes the attribute of the given type name.
Definition collection.cpp:156
Attribute * attribute(const QByteArray &name)
Returns the attribute of the given type name if available, 0 otherwise.
Definition collection.cpp:176
QUrl url(UrlType type=UrlShort) const
Returns the url of the collection.
Definition collection.cpp:253
void setRemoteRevision(const QString &revision)
Sets the remote revision of the collection.
Definition collection.cpp:111
void removeAttribute()
Removes and deletes the attribute of the requested type.
Definition collection.h:587
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:56 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:56 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.