File indexing completed on 2025-01-19 04:46:51

0001 /*
0002    SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <KJob>
0010 
0011 #include <KContacts/Addressee>
0012 
0013 class UpdateContactJob : public KJob
0014 {
0015     Q_OBJECT
0016 public:
0017     explicit UpdateContactJob(const QString &email, const KContacts::Addressee &contact, QWidget *parentWidget, QObject *parent = nullptr);
0018     ~UpdateContactJob() override;
0019 
0020     void start() override;
0021 
0022 private:
0023     void slotSearchDone(KJob *);
0024     void slotUpdateContactDone(KJob *);
0025 
0026     const QString mEmail;
0027     const KContacts::Addressee mContact;
0028     QWidget *const mParentWidget;
0029 };