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
◆ Roles
Describes the roles of this model.
Definition at line 58 of file agenttypemodel.h.
Constructor & Destructor Documentation
◆ AgentTypeModel()
|
explicit |
Creates a new agent type model.
Definition at line 62 of file agenttypemodel.cpp.
◆ ~AgentTypeModel()
|
virtual |
Destroys the agent type model.
Definition at line 72 of file agenttypemodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2019 The KDE developers.
Generated on Fri Apr 5 2019 15:20:43 by doxygen 1.8.15 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.