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

akonadi

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

#include <emailaddressselectiondialog.h>

Inherits KDialog.

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

Definition at line 59 of file emailaddressselectiondialog.h.

Constructor & Destructor Documentation

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

Creates a new email address selection dialog.

Parameters
parentThe parent widget.

Definition at line 69 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 74 of file emailaddressselectiondialog.cpp.

EmailAddressSelectionDialog::~EmailAddressSelectionDialog ( )

Destroys the email address selection dialog.

Definition at line 79 of file emailaddressselectiondialog.cpp.

Member Function Documentation

EmailAddressSelection::List EmailAddressSelectionDialog::selectedAddresses ( ) const

Returns the list of selected email addresses.

Definition at line 85 of file emailaddressselectiondialog.cpp.

EmailAddressSelectionWidget * EmailAddressSelectionDialog::view ( ) const

Returns the email address selection view that is used.

Definition at line 90 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-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:28 by doxygen 1.8.7 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 API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



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