Search for usage in LXR

Akonadi::EmailAddressSelectionDialog Class Reference

#include <emailaddressselectiondialog.h>

Inherits Akonadi::AbstractEmailAddressSelectionDialog.

Public Member Functions

 EmailAddressSelectionDialog (QAbstractItemModel *model, QWidget *parent=nullptr)
 EmailAddressSelectionDialog (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 48 of file emailaddressselectiondialog.h.

Constructor & Destructor Documentation

◆ EmailAddressSelectionDialog() [1/2]

EmailAddressSelectionDialog::EmailAddressSelectionDialog ( QWidget parent = nullptr)

Creates a new email address selection dialog.

parentThe parent widget.

Definition at line 69 of file emailaddressselectiondialog.cpp.

◆ EmailAddressSelectionDialog() [2/2]

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::~EmailAddressSelectionDialog ( )

Destroys the email address selection dialog.

Definition at line 81 of file emailaddressselectiondialog.cpp.

Member Function Documentation

◆ selectedAddresses()

EmailAddressSelection::List EmailAddressSelectionDialog::selectedAddresses ( ) const

Returns the list of selected email addresses.

Definition at line 86 of file emailaddressselectiondialog.cpp.

◆ view()

EmailAddressSelectionWidget * EmailAddressSelectionDialog::view ( ) const

Returns the email address selection view that is used.

Definition at line 91 of file emailaddressselectiondialog.cpp.

The documentation for this class was generated from the following files:
A dialog to select email addresses from Akonadi.
virtual int exec()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Mar 27 2023 04:14:34 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.