akonadi
entitytreemodel.h
326 //sebsauer, 2009-05-07; to be able here to keep the akonadi_next EntityTreeModel compatible with
330 ItemIdRole = Qt::UserRole + 1,
331 ItemRole = Qt::UserRole + 2,
332 MimeTypeRole = Qt::UserRole + 3,
334 CollectionIdRole = Qt::UserRole + 10,
335 CollectionRole = Qt::UserRole + 11,
353 UserRole = Qt::UserRole + 500,
354 TerminalUserRole = 2000,
374 FetchingState
385 UserHeaders = 10,
386 EndHeaderGroup = 32
387 // Note that we're splitting up available roles for the header data hack and int(EndRole / TerminalUserRole) == 32
409 LazyPopulation
488 InvisibleCollectionFetch
505 virtual QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;
512 virtual bool dropMimeData( const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent );
513 virtual bool setData( const QModelIndex &index, const QVariant &value, int role = Qt::EditRole );
515 virtual QModelIndex index( int row, int column, const QModelIndex & parent = QModelIndex() ) const;
542 virtual QModelIndexList match( const QModelIndex& start, int role, const QVariant& value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags( Qt::MatchStartsWith | Qt::MatchWrap ) ) const;
574 static QModelIndex modelIndexForCollection( const QAbstractItemModel *model, const Collection &collection );
584 static QModelIndexList modelIndexesForItem( const QAbstractItemModel *model, const Item &item );
629 virtual QVariant entityData( const Collection &collection, int column, int role = Qt::DisplayRole ) const;
635 virtual QVariant entityHeaderData( int section, Qt::Orientation orientation, int role, HeaderGroup headerGroup ) const;
642 virtual bool entityMatch( const Item &item, const QVariant &value, Qt::MatchFlags flags ) const;
647 virtual bool entityMatch( const Collection &collection, const QVariant &value, Qt::MatchFlags flags ) const;
686 Q_PRIVATE_SLOT( d_func(), void monitoredCollectionsChanged( const Akonadi::Collection&, bool ) )
690 Q_PRIVATE_SLOT( d_func(), void monitoredCollectionAdded( const Akonadi::Collection&, const Akonadi::Collection& ) )
693 Q_PRIVATE_SLOT( d_func(), void monitoredCollectionMoved( const Akonadi::Collection&, const Akonadi::Collection&,
695 Q_PRIVATE_SLOT( d_func(), void collectionSubscribed( const Akonadi::Collection&, const Akonadi::Collection& ) )
698 Q_PRIVATE_SLOT( d_func(), void monitoredItemAdded( const Akonadi::Item&, const Akonadi::Collection& ) )
700 Q_PRIVATE_SLOT( d_func(), void monitoredItemChanged( const Akonadi::Item&, const QSet<QByteArray>& ) )
701 Q_PRIVATE_SLOT( d_func(), void monitoredItemMoved( const Akonadi::Item&, const Akonadi::Collection&,
704 Q_PRIVATE_SLOT( d_func(), void monitoredItemLinked( const Akonadi::Item&, const Akonadi::Collection& ) )
705 Q_PRIVATE_SLOT( d_func(), void monitoredItemUnlinked( const Akonadi::Item&, const Akonadi::Collection& ) )
708 Q_PRIVATE_SLOT( d_func(), void agentInstanceAdvancedStatusChanged( const QString&, const QVariantMap& ) )
Parts available in the model for the item.
Definition: entitytreemodel.h:342
Returns the number of unread items in a collection.
Definition: entitytreemodel.h:349
Header information for a tree with collections and items.
Definition: entitytreemodel.h:382
Provides statistics information of a Collection.
Definition: collectionstatistics.h:69
Returns the FetchState of a particular item.
Definition: entitytreemodel.h:350
ItemPopulationStrategy
Describes how the model should populated its items.
Definition: entitytreemodel.h:406
Do not include items in the model.
Definition: entitytreemodel.h:407
Fetches collections in the root collection recursively. This is the default.
Definition: entitytreemodel.h:487
Fetches first level collections in the root collection.
Definition: entitytreemodel.h:486
There is no fetch of items in this collection in progress.
Definition: entitytreemodel.h:373
Returns the progress of synchronization in percent for a particular collection.
Definition: entitytreemodel.h:351
Header information for a collection-only tree.
Definition: entitytreemodel.h:383
HeaderGroup
Describes what header information the model shall return.
Definition: entitytreemodel.h:381
Returns whether a Collection has been populated, i.e. whether its items have been fetched...
Definition: entitytreemodel.h:352
Role used to implement amazing completion.
Definition: entitytreemodel.h:339
The parent collection of the entity.
Definition: entitytreemodel.h:340
Retrieve items immediately when their parent is in the model. This is the default.
Definition: entitytreemodel.h:408
Fetches nothing. This creates an empty model.
Definition: entitytreemodel.h:485
Header information for a list of items.
Definition: entitytreemodel.h:384
Parts available in the Akonadi server for the item.
Definition: entitytreemodel.h:343
A model for collections and items together.
Definition: entitytreemodel.h:317
FetchState
Describes the state of fetch jobs related to particular collections.
Definition: entitytreemodel.h:372
Ordered list of child items if available.
Definition: entitytreemodel.h:338
The akonadi:/ Url of the entity as a string. Item urls will contain the mimetype. ...
Definition: entitytreemodel.h:348
CollectionFetchStrategy
Describes what collections shall be fetched by and represent in the model.
Definition: entitytreemodel.h:484
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.