• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

akonadi

Akonadi::AgentTypeModel

Akonadi::AgentTypeModel Class Reference

Provides a data model for agent types. More...

#include <agenttypemodel.h>

Inherits QAbstractItemModel.

List of all members.

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.

 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.

Author:
Tobias Koenig <tokoe@kde.org>

Definition at line 50 of file agenttypemodel.h.


Member Enumeration Documentation

enum Akonadi::AgentTypeModel::Roles

Describes the roles of this model.

Enumerator:
TypeRole 

The agent type itself.

IdentifierRole 

The identifier of the agent type.

DescriptionRole 

A description of the agent type.

MimeTypesRole 

A list of supported mimetypes.

CapabilitiesRole 

A list of supported capabilities.

UserRole 

Role for user extensions.

Definition at line 58 of file agenttypemodel.h.


Constructor & Destructor Documentation

AgentTypeModel::AgentTypeModel ( QObject *  parent = 0  )  [explicit]

Creates a new agent type model.

Definition at line 62 of file agenttypemodel.cpp.

AgentTypeModel::~AgentTypeModel (  )  [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:
  • agenttypemodel.h
  • agenttypemodel.cpp

akonadi

Skip menu "akonadi"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.2-20100208
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal