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

akonadi

  • Akonadi
  • AgentTypeDialog
Public Slots | Public Member Functions | List of all members
Akonadi::AgentTypeDialog Class Reference

#include <agenttypedialog.h>

Inherits KDialog.

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();
...
}
Akonadi::AgentTypeDialog
A dialog to select an available agent type.
Definition: agenttypedialog.h:54
Akonadi::AgentTypeDialog::agentType
AgentType agentType() const
Returns the agent type that was selected by the user, or an empty agent type object if no agent type ...
Definition: agenttypedialog.cpp:102
Akonadi::AgentType
A representation of an agent type.
Definition: agenttype.h:59
Author
Tom Albers tomal.nosp@m.bers.nosp@m.@kde..nosp@m.nl
Since
4.2

Definition at line 53 of file agenttypedialog.h.

Constructor & Destructor Documentation

◆ AgentTypeDialog()

AgentTypeDialog::AgentTypeDialog ( QWidget *  parent = 0)

Creates a new agent type dialog.

Parameters
parentThe parent widget of the dialog.

Definition at line 61 of file agenttypedialog.cpp.

◆ ~AgentTypeDialog()

AgentTypeDialog::~AgentTypeDialog ( )

Destroys the agent type dialog.

Definition at line 85 of file agenttypedialog.cpp.

Member Function Documentation

◆ agentFilterProxyModel()

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 107 of file agenttypedialog.cpp.

◆ agentType()

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 102 of file agenttypedialog.cpp.

◆ done

void AgentTypeDialog::done ( int  result)
virtualslot

Definition at line 91 of file agenttypedialog.cpp.


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