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

akonadi

  • Akonadi
  • Akonadi::AgentTypeDialog
Public Slots | Public Member Functions

Akonadi::AgentTypeDialog Class Reference

A dialog to select an available agent type. More...

#include <agenttypedialog.h>

Inherits KDialog.

List of all members.

Public Slots

virtual void done (int result)

Public Member Functions

 AgentTypeDialog (QWidget *parent=0)
 ~AgentTypeDialog ()
AgentFilterProxyModel * agentFilterProxyModel () const
AgentType agentType () const

Detailed Description

A dialog to select an available agent type.

This dialogs allows the user to select an agent type from the list of all available agent types. The list can be filtered by the proxy model returned by agentFilterProxyModel().

 Akonadi::AgentTypeDialog dlg( this );

 // only list agent types that provide contacts
 dlg.agentFilterProxyModel()->addMimeTypeFilter( "text/directory" );

 if ( dlg.exec() ) {
   const AgentType agentType = dlg.agentType();
   ...
 }
Author:
Tom Albers <tomalbers@kde.nl>
Since:
4.2

Definition at line 53 of file agenttypedialog.h.


Constructor & Destructor Documentation

AgentTypeDialog::AgentTypeDialog ( QWidget *  parent = 0  ) 

Creates a new agent type dialog.

Parameters:
parent The parent widget of the dialog.

Definition at line 39 of file agenttypedialog.cpp.

AgentTypeDialog::~AgentTypeDialog (  ) 

Destroys the agent type dialog.

Definition at line 60 of file agenttypedialog.cpp.


Member Function Documentation

AgentFilterProxyModel * AgentTypeDialog::agentFilterProxyModel (  )  const

Returns the agent filter proxy model that can be used to filter the agent types that shall be shown in the dialog.

Definition at line 80 of file agenttypedialog.cpp.

AgentType AgentTypeDialog::agentType (  )  const

Returns the agent type that was selected by the user, or an empty agent type object if no agent type has been selected.

Definition at line 75 of file agenttypedialog.cpp.


The documentation for this class was generated from the following files:
  • agenttypedialog.h
  • agenttypedialog.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.7.1
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