akonadi
partfetcher.cpp
39 PartFetcherPrivate(PartFetcher *partFetcher, const QModelIndex &index, const QByteArray &partName)
85 const QSet<QByteArray> loadedParts = m_persistentIndex.data(EntityTreeModel::LoadedPartsRole).value<QSet<QByteArray> >();
122 const QSet<QByteArray> loadedParts = index.data(EntityTreeModel::LoadedPartsRole).value<QSet<QByteArray> >();
130 const QSet<QByteArray> availableParts = index.data(EntityTreeModel::AvailablePartsRole).value<QSet<QByteArray> >();
133 setErrorText(i18n("Payload part '%1' is not available for this index" , QString::fromLatin1(d->m_partName)));
138 Akonadi::Session *session = qobject_cast<Akonadi::Session *>(qvariant_cast<QObject *>(index.data(EntityTreeModel::SessionRole)));
Parts available in the model for the item.
Definition: entitytreemodel.h:343
T value() const
void setFetchScope(ItemFetchScope &fetchScope)
Sets the item fetch scope.
Definition: itemfetchjob.cpp:247
QByteArray partName() const
Returns the name of the part that has been fetched.
Definition: partfetcher.cpp:172
Specifies which parts of an item should be fetched from the Akonadi storage.
Definition: itemfetchscope.h:69
QVariant fromValue(const T &value)
bool contains(const T &value) const
Item item() const
Returns the item that contains the fetched payload part.
Definition: partfetcher.cpp:179
Parts available in the Akonadi server for the item.
Definition: entitytreemodel.h:344
QVariant data(int role) const
Convenience class for getting payload parts from an Akonadi Model.
Definition: partfetcher.h:73
QModelIndex index() const
Returns the index of the item the part was fetched from.
Definition: partfetcher.cpp:165
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
QString fromLatin1(const char *str, int size)
PartFetcher(const QModelIndex &index, const QByteArray &partName, QObject *parent=0)
Creates a new part fetcher.
Definition: partfetcher.cpp:105
QChar * data()
void fetchPayloadPart(const QByteArray &part, bool fetch=true)
Sets which payload parts shall be fetched.
Definition: itemfetchscope.cpp:56
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 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:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.