File indexing completed on 2024-11-24 04:43:05
0001 /* 0002 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QWidget> 0010 0011 #include <Akonadi/Item> 0012 class QLabel; 0013 namespace KAddressBookGrantlee 0014 { 0015 class GrantleeContactViewer; 0016 } 0017 0018 class QStackedWidget; 0019 namespace KABMergeContacts 0020 { 0021 class MergeContactInfoWidget : public QWidget 0022 { 0023 Q_OBJECT 0024 public: 0025 explicit MergeContactInfoWidget(QWidget *parent = nullptr); 0026 ~MergeContactInfoWidget() override; 0027 0028 public Q_SLOTS: 0029 void setContact(const Akonadi::Item &item); 0030 0031 private: 0032 QStackedWidget *mStackWidget = nullptr; 0033 QLabel *mNoContactSelected = nullptr; 0034 KAddressBookGrantlee::GrantleeContactViewer *const mContactViewer; 0035 }; 0036 }