Akonadi Contacts

abstractemailaddressselectiondialog.h
1/*
2 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "akonadi-contact-widgets_export.h"
10
11#include "emailaddressselectionwidget.h"
12
13#include <KContacts/Addressee>
14#include <QDialog>
15namespace Akonadi
16{
17class AKONADI_CONTACT_WIDGETS_EXPORT AbstractEmailAddressSelectionDialog : public QDialog
18{
19 Q_OBJECT
20public:
21 explicit AbstractEmailAddressSelectionDialog(QWidget *parent = nullptr);
22 ~AbstractEmailAddressSelectionDialog() override;
23
24 /**
25 * Returns the list of selected email addresses.
26 */
27 [[nodiscard]] virtual Akonadi::EmailAddressSelection::List selectedAddresses() const = 0;
28
29 /**
30 * Returns the email address selection view that is used.
31 */
32 [[nodiscard]] virtual Akonadi::EmailAddressSelectionWidget *view() const = 0;
33Q_SIGNALS:
34 void insertAddresses(const KContacts::Addressee::List &list);
35};
36}
A widget to select email addresses from Akonadi.
AddresseeList List
A widget for editing the display name of a contact.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:20 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.