akonadi
partfetcher.cpp
39 PartFetcherPrivate( PartFetcher *partFetcher, const QModelIndex &index, const QByteArray &partName )
83 const QSet<QByteArray> loadedParts = m_persistentIndex.data( EntityTreeModel::LoadedPartsRole ).value<QSet<QByteArray> >();
103 PartFetcher::PartFetcher( const QModelIndex &index, const QByteArray &partName, QObject *parent )
119 const QSet<QByteArray> loadedParts = index.data( EntityTreeModel::LoadedPartsRole ).value<QSet<QByteArray> >();
127 const QSet<QByteArray> availableParts = index.data( EntityTreeModel::AvailablePartsRole ).value<QSet<QByteArray> >();
130 setErrorText( i18n( "Payload part '%1' is not available for this index" , QString::fromLatin1( d->m_partName ) ) );
135 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:342
void setFetchScope(ItemFetchScope &fetchScope)
Sets the item fetch scope.
Definition: itemfetchjob.cpp:242
QByteArray partName() const
Returns the name of the part that has been fetched.
Definition: partfetcher.cpp:169
Specifies which parts of an item should be fetched from the Akonadi storage.
Definition: itemfetchscope.h:68
Item item() const
Returns the item that contains the fetched payload part.
Definition: partfetcher.cpp:176
Parts available in the Akonadi server for the item.
Definition: entitytreemodel.h:343
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:162
PartFetcher(const QModelIndex &index, const QByteArray &partName, QObject *parent=0)
Creates a new part fetcher.
Definition: partfetcher.cpp:103
void fetchPayloadPart(const QByteArray &part, bool fetch=true)
Sets which payload parts shall be fetched.
Definition: itemfetchscope.cpp:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.