Search for usage in LXR

Akonadi::EmailAddressSelectionDialog Class Reference

#include <emailaddressselectiondialog.h>

Inherits Akonadi::AbstractEmailAddressSelectionDialog.

Public Member Functions

 EmailAddressSelectionDialog (QWidget *parent=nullptr)
 EmailAddressSelectionDialog (QAbstractItemModel *model, QWidget *parent=nullptr)
 ~EmailAddressSelectionDialog () override
EmailAddressSelection::List selectedAddresses () const override
EmailAddressSelectionWidgetview () const override

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.


if ( dlg.exec() ) {
const Akonadi::EmailAddressSelectionWidget::Selection::List selections = dlg.selectedAddresses();
foreach ( const Akonadi::EmailAddressSelectionWidget::Selection &selection, selections ) {
qCDebug(AKONADICONTACT_LOG) << "Name:" << selection.name() << "Email:" << selection.email();
Tobias Koenig tokoe[email protected]@kde[email protected].org

Definition at line 44 of file emailaddressselectiondialog.h.

Constructor & Destructor Documentation

EmailAddressSelectionDialog::EmailAddressSelectionDialog ( QWidget parent = nullptr)

Creates a new email address selection dialog.

parentThe parent widget.

Definition at line 69 of file emailaddressselectiondialog.cpp.

EmailAddressSelectionDialog::EmailAddressSelectionDialog ( QAbstractItemModel model,
QWidget parent = nullptr 

Creates a new email address selection dialog.

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

Definition at line 75 of file emailaddressselectiondialog.cpp.

EmailAddressSelectionDialog::~EmailAddressSelectionDialog ( )

Destroys the email address selection dialog.

Definition at line 81 of file emailaddressselectiondialog.cpp.

Member Function Documentation

EmailAddressSelection::List EmailAddressSelectionDialog::selectedAddresses ( ) const

Returns the list of selected email addresses.

Definition at line 87 of file emailaddressselectiondialog.cpp.

EmailAddressSelectionWidget * EmailAddressSelectionDialog::view ( ) const

Returns the email address selection view that is used.

Definition at line 92 of file emailaddressselectiondialog.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Jul 27 2021 23:09:36 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.