Akonadi Contacts

abstractemailaddressselectiondialog.h
1 /*
2  SPDX-FileCopyrightText: 2019-2023 Laurent Montel <[email protected]>
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>
15 namespace Akonadi
16 {
17 class AKONADI_CONTACT_WIDGETS_EXPORT AbstractEmailAddressSelectionDialog : public QDialog
18 {
19  Q_OBJECT
20 public:
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;
33 Q_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-2023 The KDE developers.
Generated on Tue Dec 5 2023 03:51:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.