akonadi
Akonadi::AgentTypeModel Class Reference
Provides a data model for agent types. More...
#include <agenttypemodel.h>
Inherits QAbstractItemModel.
Public Types | |
Public Member Functions | |
AgentTypeModel (QObject *parent=0) | |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
virtual QVariant | data (const QModelIndex &index, 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 | ~AgentTypeModel () |
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.
Akonadi::AgentTypeModel *model = new Akonadi::AgentTypeModel( this ); QListView *view = new QListView( this ); view->setModel( model );
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
AgentTypeModel::AgentTypeModel | ( | QObject * | parent = 0 |
) | [explicit] |
AgentTypeModel::~AgentTypeModel | ( | ) | [virtual] |
The documentation for this class was generated from the following files: