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.
Member Function Documentation
◆ columnCount()
|
virtual |
Definition at line 77 of file agenttypemodel.cpp.
◆ data()
|
virtual |
Definition at line 87 of file agenttypemodel.cpp.
◆ flags()
|
virtual |
Definition at line 148 of file agenttypemodel.cpp.
◆ index()
|
virtual |
Definition at line 130 of file agenttypemodel.cpp.
◆ parent()
|
virtual |
Definition at line 143 of file agenttypemodel.cpp.
◆ rowCount()
|
virtual |
Definition at line 82 of file agenttypemodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.