Akonadi
collectionutils.h
77 if ((content.size() == 1) || (content.size() == 2 && content.contains(Collection::mimeType()))) {
78 if (content.contains(QLatin1StringView("text/x-vcard")) || content.contains(QLatin1StringView("text/directory"))
83 if (content.contains(QLatin1StringView("akonadi/event")) || content.contains(QLatin1StringView("text/ical"))) {
97 if (col.hasAttribute<EntityDisplayAttribute>() && !col.attribute<EntityDisplayAttribute>()->iconName().isEmpty()) {
98 if (!col.attribute<EntityDisplayAttribute>()->activeIconName().isEmpty() && col.statistics().unreadCount() > 0) {
qint64 unreadCount() const
Returns the number of unread items in this collection or -1 if this information is not available.
Definition core/collectionstatistics.cpp:47
CollectionStatistics statistics() const
Returns the collection statistics of the collection.
Definition collection.cpp:326
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
Collection parentCollection() const
Returns the parent collection of this object.
Definition collection.cpp:195
Attribute * attribute(const QByteArray &name)
Returns the attribute of the given type name if available, 0 otherwise.
Definition collection.cpp:176
Attribute that stores the properties that are used to display an entity.
Definition entitydisplayattribute.h:30
QString activeIconName() const
Returns the icon name of an active item.
Definition entitydisplayattribute.cpp:129
QString iconName() const
Returns the icon name of the icon returned by icon().
Definition entitydisplayattribute.cpp:44
Collection parentCollection() const
Returns the parent collection of this object.
Definition item.cpp:161
AKONADICORE_EXPORT Collection fromIndex(const QModelIndex &index)
Returns the collection represented by index.
Definition collectionutils.cpp:11
Helper integration between Akonadi and Qt.
bool isEmpty() const const
qsizetype size() const const
bool isEmpty() const const
bool contains(QLatin1StringView str, Qt::CaseSensitivity cs) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.