akonadi
#include <agenttypemodel.h>
Inherits QAbstractItemModel.
Public Types | |
enum | Roles { TypeRole = Qt::UserRole + 1, IdentifierRole, DescriptionRole, MimeTypesRole, CapabilitiesRole, UserRole = Qt::UserRole + 42 } |
Public Member Functions | |
AgentTypeModel (QObject *parent=0) | |
virtual | ~AgentTypeModel () |
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 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 |
Detailed Description
Provides a data model for agent types.
This class provides the interface of a QAbstractItemModel to access all available agent types: their name, identifier, supported mimetypes and capabilities.
To show only agent types that match a given mime type or special capabilities, use the AgentFilterProxyModel on top of this model.
Definition at line 50 of file agenttypemodel.h.
Member Enumeration Documentation
Describes the roles of this model.
- Enumerator:
Definition at line 58 of file agenttypemodel.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new agent type model.
Definition at line 62 of file agenttypemodel.cpp.
|
virtual |
Destroys the agent type model.
Definition at line 71 of file agenttypemodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2012 The KDE developers.
Generated on Wed Nov 28 2012 21:51:54 by doxygen 1.8.1.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.