Akonadi
collectionutils.h
49 return (!isRoot(collection) && !isResource(collection) && !isStructural(collection) && collection.resource() != QLatin1String("akonadi_search_resource"));
76 if ((content.size() == 1) || (content.size() == 2 && content.contains(Collection::mimeType()))) {
77 if (content.contains(QLatin1String("text/x-vcard")) || content.contains(QLatin1String("text/directory"))
82 if (content.contains(QLatin1String("akonadi/event")) || content.contains(QLatin1String("text/ical"))) {
96 if (col.hasAttribute<EntityDisplayAttribute>() && !col.attribute<EntityDisplayAttribute>()->iconName().isEmpty()) {
97 if (!col.attribute<EntityDisplayAttribute>()->activeIconName().isEmpty() && col.statistics().unreadCount() > 0) {
AKONADICORE_EXPORT Collection fromIndex(const QModelIndex &index)
Returns the collection represented by index.
Definition: collectionutils.cpp:11
bool contains(const QString &str, Qt::CaseSensitivity cs) const const
Attribute that stores the properties that are used to display an entity.
Definition: entitydisplayattribute.h:29
QString iconName() const
Returns the icon name of the icon returned by icon().
Definition: entitydisplayattribute.cpp:44
Attribute * attribute(const QByteArray &name)
Returns the attribute of the given type name if available, 0 otherwise.
Definition: collection.cpp:176
int size() const const
bool isEmpty() const const
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
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: item.cpp:153
QString activeIconName() const
Returns the icon name of an active item.
Definition: entitydisplayattribute.cpp:129
bool isEmpty() const const
Collection parentCollection() const
Returns the parent collection of this object.
Definition: collection.cpp:187
CollectionStatistics statistics() const
Returns the collection statistics of the collection.
Definition: collection.cpp:326
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jul 2 2022 06:41:47 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Jul 2 2022 06:41:47 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.