File indexing completed on 2025-02-16 04:45:49
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 "akonadi-contact-core_export.h" 0010 0011 #include <GrantleeTheme/GenericFormatter> 0012 #include <KContacts/Addressee> 0013 0014 namespace KAddressBookGrantlee 0015 { 0016 /** Grantlee-based contact printing. */ 0017 class AKONADI_CONTACT_CORE_EXPORT GrantleePrint : public GrantleeTheme::GenericFormatter 0018 { 0019 public: 0020 GrantleePrint(); 0021 explicit GrantleePrint(const QString &themePath); 0022 ~GrantleePrint(); 0023 0024 [[nodiscard]] QString contactsToHtml(const KContacts::Addressee::List &contacts); 0025 0026 private: 0027 AKONADI_CONTACT_CORE_NO_EXPORT void init(); 0028 }; 0029 }