File indexing completed on 2024-12-22 05:01:11

0001 /*
0002    SPDX-FileCopyrightText: 2013-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/Item>
0010 #include <KJob>
0011 
0012 class AddEmailToExistingContactJob : public KJob
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit AddEmailToExistingContactJob(const Akonadi::Item &item, const QString &email, QObject *parent = nullptr);
0017     ~AddEmailToExistingContactJob() override;
0018 
0019     void start() override;
0020 
0021 private:
0022     void slotAddEmailDone(KJob *job);
0023     QString mEmail;
0024     Akonadi::Item mItem;
0025 };