• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • AgentTypeModel
Public Types | Public Member Functions | List of all members
Akonadi::AgentTypeModel Class Reference

#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.

Akonadi::AgentTypeModel *model = new Akonadi::AgentTypeModel( this );
QListView *view = new QListView( this );
view->setModel( model );
Akonadi::AgentTypeModel
Provides a data model for agent types.
Definition: agenttypemodel.h:51

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.nosp@m.@kde.nosp@m..org

Definition at line 50 of file agenttypemodel.h.

Member Enumeration Documentation

◆ Roles

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::AgentTypeModel ( QObject *  parent = 0)
explicit

Creates a new agent type model.

Definition at line 62 of file agenttypemodel.cpp.

◆ ~AgentTypeModel()

AgentTypeModel::~AgentTypeModel ( )
virtual

Destroys the agent type model.

Definition at line 72 of file agenttypemodel.cpp.

Member Function Documentation

◆ columnCount()

int AgentTypeModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

Definition at line 77 of file agenttypemodel.cpp.

◆ data()

QVariant AgentTypeModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual

Definition at line 87 of file agenttypemodel.cpp.

◆ flags()

Qt::ItemFlags AgentTypeModel::flags ( const QModelIndex &  index) const
virtual

Definition at line 148 of file agenttypemodel.cpp.

◆ index()

QModelIndex AgentTypeModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
virtual

Definition at line 130 of file agenttypemodel.cpp.

◆ parent()

QModelIndex AgentTypeModel::parent ( const QModelIndex &  index) const
virtual

Definition at line 143 of file agenttypemodel.cpp.

◆ rowCount()

int AgentTypeModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

Definition at line 82 of file agenttypemodel.cpp.


The documentation for this class was generated from the following files:
  • agenttypemodel.h
  • agenttypemodel.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

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

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal