Akonadi::EmailAddressSelectionDialog

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.

Example:

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();
}
}
Author
Tobias Koenig tokoe[email protected]@kde[email protected].org
Since
4.5

Definition at line 59 of file emailaddressselectiondialog.h.

Constructor & Destructor Documentation

EmailAddressSelectionDialog::EmailAddressSelectionDialog ( QWidget parent = nullptr)
explicit

Creates a new email address selection dialog.

Parameters
parentThe parent widget.

Definition at line 84 of file emailaddressselectiondialog.cpp.

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

Creates a new email address selection dialog.

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

Definition at line 90 of file emailaddressselectiondialog.cpp.

EmailAddressSelectionDialog::~EmailAddressSelectionDialog ( )
override

Destroys the email address selection dialog.

Definition at line 96 of file emailaddressselectiondialog.cpp.

Member Function Documentation

EmailAddressSelection::List EmailAddressSelectionDialog::selectedAddresses ( ) const
override

Returns the list of selected email addresses.

Definition at line 102 of file emailaddressselectiondialog.cpp.

EmailAddressSelectionWidget * EmailAddressSelectionDialog::view ( ) const
override

Returns the email address selection view that is used.

Definition at line 107 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-2020 The KDE developers.
Generated on Sat Jun 6 2020 23:01:35 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.