File indexing completed on 2024-10-27 04:50:57

0001 /*
0002   SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
0003 
0004   SPDX-License-Identifier: GPL-2.0-only
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QDialog>
0010 class QPushButton;
0011 namespace Akonadi
0012 {
0013 class EmailAddressSelectionWidget;
0014 class Item;
0015 }
0016 class AddEmailToExistingContactDialog : public QDialog
0017 {
0018     Q_OBJECT
0019 public:
0020     explicit AddEmailToExistingContactDialog(QWidget *parent);
0021     ~AddEmailToExistingContactDialog() override;
0022 
0023     [[nodiscard]] Akonadi::Item selectedContact() const;
0024 
0025 private:
0026     void slotSelectionChanged();
0027 
0028     void slotDoubleClicked();
0029     void readConfig();
0030     void writeConfig();
0031     Akonadi::EmailAddressSelectionWidget *mEmailSelectionWidget = nullptr;
0032     QPushButton *mOkButton = nullptr;
0033 };