akonadi
collectionstatisticsmodel.cpp
171QVariant CollectionStatisticsModel::headerData(int section, Qt::Orientation orientation, int role) const
void fetchCollectionStatistics(bool enable)
Sets whether collection statistics information shall be provided by the model.
Definition collectionmodel.cpp:313
Collection collectionForId(Collection::Id id) const
Returns the collection for a given collection id.
Definition collectionmodel.cpp:307
A model that provides statistics for collections.
Definition collectionstatisticsmodel.h:53
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition collectionstatisticsmodel.cpp:85
virtual QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition collectionstatisticsmodel.cpp:171
CollectionStatisticsModel(QObject *parent=0)
Creates a new collection statistics model.
Definition collectionstatisticsmodel.cpp:79
@ RecursiveTotalRole
The number of items in this collection and its children.
Definition collectionstatisticsmodel.h:66
@ RecursiveUnreadRole
The number of unread items in this collection and its children.
Definition collectionstatisticsmodel.h:65
@ RecursiveStatisticsRole
A statistics object of this collection and its children.
Definition collectionstatisticsmodel.h:67
@ RecursiveSizeRole
The total size of the items in this collection and its children.
Definition collectionstatisticsmodel.h:69
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition collectionstatisticsmodel.cpp:93
Provides statistics information of a Collection.
Definition collectionstatistics.h:70
qint64 unreadCount() const
Returns the number of unread items in this collection or -1 if this information is not available.
Definition collectionstatistics.cpp:77
qint64 count() const
Returns the number of items in this collection or -1 if this information is not available.
Definition collectionstatistics.cpp:67
qint64 size() const
Returns the total size of the items in this collection or -1 if this information is not available.
Definition collectionstatistics.cpp:87
CollectionStatistics statistics() const
Returns the collection statistics of the collection.
Definition collection.cpp:238
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.