Akonadi

core/collectionstatistics.h
1 /*
2  SPDX-FileCopyrightText: 2006 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_COLLECTIONSTATISTICS_H
8 #define AKONADI_COLLECTIONSTATISTICS_H
9 
10 #include "akonadicore_export.h"
11 
12 #include <QMetaType>
13 #include <QSharedDataPointer>
14 
15 namespace Akonadi
16 {
17 
58 class AKONADICORE_EXPORT CollectionStatistics
59 {
60 public:
65 
70 
75 
83  Q_REQUIRED_RESULT qint64 count() const;
84 
91  void setCount(qint64 count);
92 
100  Q_REQUIRED_RESULT qint64 unreadCount() const;
101 
108  void setUnreadCount(qint64 count);
109 
117  Q_REQUIRED_RESULT qint64 size() const;
118 
126  void setSize(qint64 size);
127 
131  CollectionStatistics &operator=(const CollectionStatistics &other);
132 
133 private:
134  //@cond PRIVATE
135  class Private;
137  //@endcond
138 };
139 
140 }
141 
145 AKONADICORE_EXPORT QDebug operator<<(QDebug d, const Akonadi::CollectionStatistics &);
146 
147 Q_DECLARE_METATYPE(Akonadi::CollectionStatistics)
148 
149 #endif
Provides statistics information of a Collection.
QDataStream & operator<<(QDataStream &out, const KDateTime::Spec &spec)
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Aug 8 2020 23:14:44 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.