1 /* This file is part of the KDE project
2    SPDX-FileCopyrightText: 2002 Daniel Molkentin <molkentin@kde.org>
3    SPDX-FileCopyrightText: 2013-2021 Laurent Montel <montel@kde.org>
4 
5    SPDX-License-Identifier: GPL-2.0-or-later
6  */
7 
8 #pragma once
9 #include <KContacts/Addressee>
10 #include <QDialog>
11 
12 namespace KAddressBookGrantlee
13 {
14 class GrantleeContactViewer;
15 }
16 class QPushButton;
17 namespace MessageViewer
18 {
19 class VCardViewer : public QDialog
20 {
21     Q_OBJECT
22 public:
23     explicit VCardViewer(QWidget *parent, const QByteArray &vCard);
24     ~VCardViewer() override;
25 
26 private:
27     void slotUser1();
28     void slotUser2();
29     void slotUser3();
30     void readConfig();
31     void writeConfig();
32 
33     KContacts::Addressee::List mAddresseeList;
34     int mAddresseeListIndex = 0;
35     KAddressBookGrantlee::GrantleeContactViewer *const mContactViewer;
36     QPushButton *const mUser2Button;
37     QPushButton *const mUser3Button;
38 };
39 }
40 
41