• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • akonadi
collectionstatistics.h
1/*
2 Copyright (c) 2006 Volker Krause <vkrause@kde.org>
3
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
8
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 02110-1301, USA.
18*/
19
20#ifndef AKONADI_COLLECTIONSTATISTICS_H
21#define AKONADI_COLLECTIONSTATISTICS_H
22
23#include "akonadi_export.h"
24#include <QtCore/QMetaType>
25#include <QtCore/QSharedDataPointer>
26
27namespace Akonadi {
28
69class AKONADI_EXPORT CollectionStatistics
70{
71public:
75 CollectionStatistics();
76
80 CollectionStatistics(const CollectionStatistics &other);
81
85 ~CollectionStatistics();
86
94 qint64 count() const;
95
102 void setCount(qint64 count);
103
111 qint64 unreadCount() const;
112
119 void setUnreadCount(qint64 count);
120
128 qint64 size() const;
129
137 void setSize(qint64 size);
138
142 CollectionStatistics &operator=(const CollectionStatistics &other);
143
144private:
145 //@cond PRIVATE
146 class Private;
147 QSharedDataPointer<Private> d;
148 //@endcond
149};
150
151}
152
156AKONADI_EXPORT QDebug operator<<(QDebug d, const Akonadi::CollectionStatistics &);
157
158Q_DECLARE_METATYPE(Akonadi::CollectionStatistics)
159
160#endif
Akonadi::CollectionStatistics
Provides statistics information of a Collection.
Definition collectionstatistics.h:70
Akonadi::CollectionStatistics::unreadCount
qint64 unreadCount() const
Returns the number of unread items in this collection or -1 if this information is not available.
Definition collectionstatistics.cpp:77
Akonadi::CollectionStatistics::setUnreadCount
void setUnreadCount(qint64 count)
Sets the number of unread items in this collection.
Definition collectionstatistics.cpp:82
Akonadi::CollectionStatistics::setSize
void setSize(qint64 size)
Sets the total size of the items in this collection.
Definition collectionstatistics.cpp:92
Akonadi::CollectionStatistics::setCount
void setCount(qint64 count)
Sets the number of items in this collection.
Definition collectionstatistics.cpp:72
Akonadi::CollectionStatistics::count
qint64 count() const
Returns the number of items in this collection or -1 if this information is not available.
Definition collectionstatistics.cpp:67
Akonadi::CollectionStatistics::CollectionStatistics
CollectionStatistics()
Creates a new collection statistics object.
Definition collectionstatistics.cpp:53
Akonadi::CollectionStatistics::size
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
Akonadi::CollectionStatistics::operator=
CollectionStatistics & operator=(const CollectionStatistics &other)
Assigns other to this statistics object and returns a reference to this one.
Definition collectionstatistics.cpp:97
Akonadi
FreeBusyManager::Singleton.
Definition actionstatemanager_p.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal