File indexing completed on 2024-11-24 04:39:33

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-contact-widgets_export.h"
0010 #include "contactviewer.h"
0011 
0012 namespace KAddressBookGrantlee
0013 {
0014 class GrantleeContactFormatter;
0015 
0016 /** Grantlee-based contact viewer. */
0017 class AKONADI_CONTACT_WIDGETS_EXPORT GrantleeContactViewer : public Akonadi::ContactViewer
0018 {
0019     Q_OBJECT
0020 public:
0021     explicit GrantleeContactViewer(QWidget *parent = nullptr);
0022     ~GrantleeContactViewer() override;
0023 
0024     void setForceDisableQRCode(bool b);
0025 
0026 private:
0027     [[nodiscard]] AKONADI_CONTACT_WIDGETS_NO_EXPORT QString kaddressBookAbsoluteThemePath() const;
0028     KAddressBookGrantlee::GrantleeContactFormatter *const mFormatter;
0029 };
0030 }