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_export.h"
10 
11 #include "emailaddressselectionwidget.h"
12 
13 #include <KContacts/Addressee>
14 #include <QDialog>
15 namespace Akonadi
16 {
17 class AKONADI_CONTACT_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  Q_REQUIRED_RESULT virtual EmailAddressSelection::List selectedAddresses() const = 0;
28 
29  /**
30  * Returns the email address selection view that is used.
31  */
32  Q_REQUIRED_RESULT virtual EmailAddressSelectionWidget *view() const = 0;
33 Q_SIGNALS:
34  void insertAddresses(const KContacts::Addressee::List &list);
35 };
36 }
QVector< EmailAddressSelection > List
A list of email address selection objects.
AddresseeList List
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:04 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.