Akonadi
collection.cpp
25Q_GLOBAL_STATIC(Akonadi::Collection, s_defaultParentCollection) // NOLINT(readability-redundant-member-init)
35static void assignCollectionPrivate(QSharedDataPointer<CollectionPrivate> &one, const QSharedDataPointer<CollectionPrivate> &other)
51 const QSharedDataPointer<CollectionPrivate> temp = other; // NOLINT(performance-unnecessary-copy-initialization): see above
314 return d << "Collection ID:" << collection.id() << " remote ID:" << collection.remoteId() << '\n'
317 << " parent:" << collection.parentCollection().id() << collection.parentCollection().remoteId() << '\n'
368void Collection::setLocalListPreference(Collection::ListPurpose purpose, Collection::ListPreference preference)
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
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
void setLocalListPreference(ListPurpose purpose, ListPreference preference)
Sets the local list preference for the specified purpose.
Definition collection.cpp:368
CollectionStatistics statistics() const
Returns the collection statistics of the collection.
Definition collection.cpp:326
bool operator<(const Collection &other) const
Definition collection.cpp:146
void setKeepLocalChanges(const QSet< QByteArray > &parts)
Set during sync to indicate that the provided parts are only default values;.
Definition collection.cpp:414
static QString virtualMimeType()
Returns the mimetype used for virtual collections.
Definition collection.cpp:297
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
CachePolicy cachePolicy() const
Returns the cache policy of the collection.
Definition collection.cpp:336
const T * attribute() const
Returns the attribute of the requested type or 0 if it is not available.
Definition collection.h:573
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
void setRemoteId(const QString &id)
Sets the remote id of the collection.
Definition collection.cpp:101
ListPreference localListPreference(ListPurpose purpose) const
Returns the local list preference for the specified purpose.
Definition collection.cpp:384
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
void setCachePolicy(const CachePolicy &policy)
Sets the cache policy of the collection.
Definition collection.cpp:341
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
QSet< QByteArray > keepLocalChanges() const
Returns what parts are only default values.
Definition collection.cpp:419
bool shouldList(ListPurpose purpose) const
Returns whether the collection should be listed or not for the specified purpose Takes enabled state ...
Definition collection.cpp:397
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
void setStatistics(const CollectionStatistics &statistics)
Sets the collection statistics for the collection.
Definition collection.cpp:331
bool hasAttribute() const
Returns whether the collection has an attribute of the requested type.
Definition collection.h:593
void setShouldList(ListPurpose purpose, bool shouldList)
Sets whether the collection should be listed or not for the specified purpose.
Definition collection.cpp:405
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.
bool isEmpty() const const
QString number(double n, char format, int precision)
qlonglong toLongLong(bool *ok, int base) const const
QString scheme() const const
void setQuery(const QString &query, ParsingMode mode)
void setScheme(const QString &scheme)
QString queryItemValue(const QString &key, QUrl::ComponentFormattingOptions encoding) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.