akonadi
#include <agentinstancemodel.h>
Inherits QAbstractItemModel.
Public Types | |
enum | Roles { TypeRole = Qt::UserRole + 1, TypeIdentifierRole, DescriptionRole, MimeTypesRole, CapabilitiesRole, InstanceRole, InstanceIdentifierRole, StatusRole, StatusMessageRole, ProgressRole, OnlineRole, UserRole = Qt::UserRole + 42 } |
Public Member Functions | |
AgentInstanceModel (QObject *parent=0) | |
virtual | ~AgentInstanceModel () |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
virtual QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
virtual QModelIndex | parent (const QModelIndex &index) const |
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
virtual bool | setData (const QModelIndex &index, const QVariant &value, int role) |
Detailed Description
Provides a data model for agent instances.
This class provides the interface of a QAbstractItemModel to access all available agent instances: their name, identifier, supported mimetypes and capabilities.
To show only agent instances that match a given mime type or special capabilities, use the AgentFilterProxyModel on top of this model.
Definition at line 50 of file agentinstancemodel.h.
Member Enumeration Documentation
Describes the roles of this model.
Definition at line 58 of file agentinstancemodel.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new agent instance model.
- Parameters
-
parent The parent object.
Definition at line 85 of file agentinstancemodel.cpp.
|
virtual |
Destroys the agent instance model.
Definition at line 111 of file agentinstancemodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.