akonadi
20#ifndef AKONADI_COLLECTIONMODEL_P_H
21#define AKONADI_COLLECTIONMODEL_P_H
23#include "collection.h"
25#include <klocalizedstring.h>
27#include <QtCore/QHash>
28#include <QtCore/QList>
29#include <QtCore/QModelIndex>
30#include <QtCore/QStringList>
37class CollectionStatistics;
52 , fetchStatistics(
false)
54 , headerContent(i18nc(
"@title:column, name of a thing",
"Name"))
61 QHash<Collection::Id, Collection> collections;
62 QHash<Collection::Id, QVector<Collection::Id> > childCollections;
64 QHash<Collection::Id, Collection> m_newCollections;
65 QHash< Collection::Id, QVector<Collection::Id> > m_newChildCollections;
69 QStringList mimeTypes;
72 QString headerContent;
75 void startFirstListJob();
78 void updateDone(KJob *);
80 void listDone(KJob *);
81 void editDone(KJob *);
82 void dropResult(KJob *);
86 bool removeRowFromModel(
int row,
const QModelIndex &parent = QModelIndex());
87 bool supportsContentType(
const QModelIndex &index,
const QStringList &contentTypes);
93 QStringList::ConstIterator constEnd(l.constEnd());
94 for (QStringList::ConstIterator it = l.constBegin(); it != constEnd; ++it) {
98 if (!mimeTypes.contains(*it)) {
Provides statistics information of a Collection.
Represents a collection of PIM items.
QStringList contentMimeTypes() const
Returns a list of possible content mimetypes, e.g.
static QString mimeType()
Returns the mimetype used for collections.
QList< Collection > List
Describes a list of collections.
qint64 Id
Describes the unique id type.
Monitors an item or collection for changes.
A communication session with the Akonadi storage.
FreeBusyManager::Singleton.
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
KDE's Doxygen guidelines are available online.