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

akonadi/contact

  • Akonadi
  • EmailAddressSelectionDialog
Public Member Functions
Akonadi::EmailAddressSelectionDialog Class Reference

#include <emailaddressselectiondialog.h>

Inherits KDialog.

List of all members.

Public Member Functions

 EmailAddressSelectionDialog (QWidget *parent=0)
 EmailAddressSelectionDialog (QAbstractItemModel *model, QWidget *parent=0)
 ~EmailAddressSelectionDialog ()
EmailAddressSelection::List selectedAddresses () const
EmailAddressSelectionWidget * view () const

Detailed Description

A dialog to select email addresses from Akonadi.

This dialog allows the user to select an name and email address from the Akonadi storage. The selected addresses are returned as EmailAddressSelectionWidget::Selection objects which encapsulate the name, email address and the Akonadi item that has been selected.

Example:

 Akonadi::EmailAddressSelectionDialog dlg( this );
 if ( dlg.exec() ) {
   const Akonadi::EmailAddressSelectionWidget::Selection::List selections = dlg.selectedAddresses();
   foreach ( const Akonadi::EmailAddressSelectionWidget::Selection &selection, selections ) {
     qDebug() << "Name:" << selection.name() << "Email:" << selection.email();
   }
 }
Author:
Tobias Koenig <tokoe@kde.org>
Since:
4.5

Constructor & Destructor Documentation

EmailAddressSelectionDialog::EmailAddressSelectionDialog ( QWidget *  parent = 0) [explicit]

Creates a new email address selection dialog.

Parameters:
parentThe parent widget.

Definition at line 46 of file emailaddressselectiondialog.cpp.

EmailAddressSelectionDialog::EmailAddressSelectionDialog ( QAbstractItemModel *  model,
QWidget *  parent = 0 
) [explicit]

Creates a new email address selection dialog.

Parameters:
modelA custom, ContactsTreeModel based model to use.
parentThe parent widget.

Definition at line 51 of file emailaddressselectiondialog.cpp.

EmailAddressSelectionDialog::~EmailAddressSelectionDialog ( )

Destroys the email address selection dialog.

Definition at line 56 of file emailaddressselectiondialog.cpp.


Member Function Documentation

EmailAddressSelection::List EmailAddressSelectionDialog::selectedAddresses ( ) const

Returns the list of selected email addresses.

Definition at line 61 of file emailaddressselectiondialog.cpp.

EmailAddressSelectionWidget * EmailAddressSelectionDialog::view ( ) const

Returns the email address selection view that is used.

Definition at line 66 of file emailaddressselectiondialog.cpp.


The documentation for this class was generated from the following files:
  • emailaddressselectiondialog.h
  • emailaddressselectiondialog.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 05:01:51 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi/contact

Skip menu "akonadi/contact"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • 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