akonadi
collectionmodel.cpp
134 return createIndex(row, column, reinterpret_cast<void *>(d->collections.value(list.at(row)).id()));
187 bool CollectionModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role)
278 bool CollectionModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
Job that modifies a collection in the Akonadi storage.
Definition: collectionmodifyjob.h:82
void fetchCollectionStatistics(bool enable)
Enables automatic fetching of changed collection statistics information from the Akonadi storage...
Definition: monitor.cpp:225
QString displayName() const
Returns the display name (EntityDisplayAttribute::displayName()) if set, and Collection::name() other...
Definition: collection.cpp:86
int indexOf(const T &value, int from) const
KJob * paste(const QMimeData *mimeData, const Collection &collection, bool copy=true, Session *session=0)
Paste/drop the given mime data into the given collection.
Definition: pastehelper.cpp:272
Can create new subcollections in this collection.
Definition: collection.h:92
qint64 internalId() const
void setName(const QString &name)
Sets the i18n'ed name of the collection.
Definition: collection.cpp:93
The actual collection object. For binary compatibility to <4.3.
Definition: collectionmodel.h:64
Attribute * attribute(const QByteArray &name) const
Returns the attribute of the given type name if available, 0 otherwise.
Definition: entity.cpp:167
bool isValid() const
Collection collectionForId(Collection::Id id) const
Returns the collection for a given collection id.
Definition: collectionmodel.cpp:307
Collection parentCollection() const
Returns the parent collection of this object.
Definition: entity.cpp:185
void fetchCollectionStatistics(bool enable)
Sets whether collection statistics information shall be provided by the model.
Definition: collectionmodel.cpp:313
bool isEmpty() const
Can create new items in this collection.
Definition: collection.h:89
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const
Rights rights() const
Returns the rights the user has on the collection.
Definition: collection.cpp:99
void includeUnsubscribed(bool include=true)
Sets whether unsubscribed collections shall be listed in the model.
Definition: collectionmodel.cpp:320
QModelIndex createIndex(int row, int column, void *ptr) const
QVariant fromValue(const T &value)
const T & at(int i) const
The actual collection object.
Definition: collectionmodel.h:66
Definition: kcolumnfilterproxymodel_p.h:27
typedef DropActions
CollectionModel(QObject *parent=0)
Creates a new collection model.
Definition: collectionmodel.cpp:38
bool hasAttribute(const QByteArray &name) const
Returns true if the entity has an attribute of the given type name, false otherwise.
Definition: entity.cpp:148
int column() const
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
virtual Qt::ItemFlags flags(const QModelIndex &index) const
The collection identifier. For binary compatibility to <4.3.
Definition: collectionmodel.h:63
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
int size() const
The collection identifier.
Definition: collectionmodel.h:65
QString toString() const
Attribute that stores the properties that are used to display an entity.
Definition: entitydisplayattribute.h:39
typedef ItemFlags
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.