File indexing completed on 2025-02-16 04:45:56

0001 /*
0002    SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "akonadi-contact-widgets_export.h"
0010 
0011 #include "emailaddressselectionwidget.h"
0012 
0013 #include <KContacts/Addressee>
0014 #include <QDialog>
0015 namespace Akonadi
0016 {
0017 class AKONADI_CONTACT_WIDGETS_EXPORT AbstractEmailAddressSelectionDialog : public QDialog
0018 {
0019     Q_OBJECT
0020 public:
0021     explicit AbstractEmailAddressSelectionDialog(QWidget *parent = nullptr);
0022     ~AbstractEmailAddressSelectionDialog() override;
0023 
0024     /**
0025      * Returns the list of selected email addresses.
0026      */
0027     [[nodiscard]] virtual Akonadi::EmailAddressSelection::List selectedAddresses() const = 0;
0028 
0029     /**
0030      * Returns the email address selection view that is used.
0031      */
0032     [[nodiscard]] virtual Akonadi::EmailAddressSelectionWidget *view() const = 0;
0033 Q_SIGNALS:
0034     void insertAddresses(const KContacts::Addressee::List &list);
0035 };
0036 }