Provides statistics information of a Collection.
This class contains information such as total number of items,
number of new and unread items, etc.
These information might be expensive to obtain and are thus
not included when fetching collection with a CollectionFetchJob.
They can be retrieved spearately using CollectionStatisticsJob.
Example:
Akonadi.Collection collection = ...
Akonadi.CollectionStatisticsJob *job = new Akonadi.CollectionStatisticsJob( collection );
if ( job->exec() ) {
Akonadi.CollectionStatistics statistics = job->statistics();
qDebug() << "Unread items:" << statistics.unreadCount();
}
This class is implicitely shared.
Author Volker Krause
|