Akonadi
collection.cpp
25 Q_GLOBAL_STATIC(Akonadi::Collection, s_defaultParentCollection) // NOLINT(readability-redundant-member-init)
35 static 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'
368 void Collection::setLocalListPreference(Collection::ListPurpose purpose, Collection::ListPreference preference)
Provides statistics information of a Collection.
Definition: core/collectionstatistics.h:58
Collection & operator=(const Collection &other)
Assigns the other to this collection and returns a reference to this collection.
Definition: collection.cpp:137
static Collection fromUrl(const QUrl &url)
Creates a collection from the given url.
Definition: collection.cpp:267
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
QString number(int n, int base)
Attribute::List attributes() const
Returns a list of all attributes of the collection.
Definition: collection.cpp:166
QString scheme() const const
QUrl url(UrlType type=UrlShort) const
Returns the url of the collection.
Definition: collection.cpp:253
qlonglong toLongLong(bool *ok, int base) const const
void setStatistics(const CollectionStatistics &statistics)
Sets the collection statistics for the collection.
Definition: collection.cpp:331
void removeAttribute()
Removes and deletes the attribute of the requested type.
Definition: collection.h:587
bool operator==(const Collection &other) const
Returns whether this collections's id equals the id of the other collection.
Definition: collection.cpp:126
void clearAttributes()
Removes and deletes all attributes of the collection.
Definition: collection.cpp:171
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
ListPreference localListPreference(ListPurpose purpose) const
Returns the local list preference for the specified purpose.
Definition: collection.cpp:384
bool hasAttribute() const
Returns whether the collection has an attribute of the requested type.
Definition: collection.h:593
Q_GLOBAL_STATIC(Internal::StaticControl, s_instance) class ControlPrivate
Definition: control.cpp:28
void setScheme(const QString &scheme)
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
CachePolicy cachePolicy() const
Returns the cache policy of the collection.
Definition: collection.cpp:336
bool isEmpty() const const
void setCachePolicy(const CachePolicy &policy)
Sets the cache policy of the collection.
Definition: collection.cpp:341
void setRemoteId(const QString &id)
Sets the remote id of the collection.
Definition: collection.cpp:101
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
static QString virtualMimeType()
Returns the mimetype used for virtual collections.
Definition: collection.cpp:297
void setContentMimeTypes(const QStringList &types)
Sets the list of possible content mime types.
Definition: collection.cpp:245
bool operator<(const Collection &other) const
Definition: collection.cpp:146
Collection parentCollection() const
Returns the parent collection of this object.
Definition: collection.cpp:187
void setQuery(const QString &query, QUrl::ParsingMode mode)
void setVirtual(bool isVirtual)
Sets whether the collection is virtual or not.
Definition: collection.cpp:352
CollectionStatistics statistics() const
Returns the collection statistics of the collection.
Definition: collection.cpp:326
QSet< QByteArray > keepLocalChanges() const
Returns what parts are only default values.
Definition: collection.cpp:419
void setParentCollection(const Collection &parent)
Set the parent collection of this object.
Definition: collection.cpp:204
void setRights(Rights rights)
Sets the rights the user has on the collection.
Definition: collection.cpp:235
void setResource(const QString &identifier)
Sets the identifier of the resource owning the collection.
Definition: collection.cpp:307
QString queryItemValue(const QString &key, QUrl::ComponentFormattingOptions encoding) const const
void setShouldList(ListPurpose purpose, bool shouldList)
Sets whether the collection should be listed or not for the specified purpose.
Definition: collection.cpp:405
void setName(const QString &name)
Sets the i18n'ed name of the collection.
Definition: collection.cpp:221
void setRemoteRevision(const QString &revision)
Sets the remote revision of the collection.
Definition: collection.cpp:111
Helper integration between Akonadi and Qt.
void setKeepLocalChanges(const QSet< QByteArray > &parts)
Set during sync to indicate that the provided parts are only default values;.
Definition: collection.cpp:414
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jun 4 2023 03:52:46 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Jun 4 2023 03:52:46 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.