File indexing completed on 2024-11-24 04:43:05
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "job/mergecontacts.h" 0010 #include "kaddressbookmergelib_export.h" 0011 #include <QWidget> 0012 class QStackedWidget; 0013 namespace KABMergeContacts 0014 { 0015 class MergeContactSelectInformationWidget; 0016 class MergeContactInfoWidget; 0017 class KADDRESSBOOKMERGELIB_EXPORT MergeContactSelectInformationScrollArea : public QWidget 0018 { 0019 Q_OBJECT 0020 public: 0021 explicit MergeContactSelectInformationScrollArea(QWidget *parent = nullptr); 0022 ~MergeContactSelectInformationScrollArea() override; 0023 void setContacts(MergeContacts::ConflictInformations conflictTypes, const Akonadi::Item::List &listItem, const Akonadi::Collection &col); 0024 0025 private: 0026 void slotMergeContacts(); 0027 void slotMergeDone(const Akonadi::Item &item); 0028 void mergeContact(const KContacts::Addressee &addr); 0029 Akonadi::Collection mCollection; 0030 Akonadi::Item::List mListItem; 0031 MergeContactSelectInformationWidget *const mSelectInformationWidget; 0032 QStackedWidget *const mStackWidget; 0033 MergeContactInfoWidget *const mMergedContactWidget; 0034 }; 0035 }