Akonadi Contacts

grantleecontactgroupformatter.h
1/*
2 This file is part of KAddressBook.
3
4 SPDX-FileCopyrightText: 2010 Tobias Koenig <tokoe@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#pragma once
10
11#include "abstractcontactgroupformatter.h"
12#include "akonadi-contact-core_export.h"
13
14#include <memory>
15
16namespace GrantleeTheme
17{
18class Theme;
19}
20
21namespace KAddressBookGrantlee
22{
23class GrantleeContactGroupFormatterPrivate;
24
25/**
26 * @short A class that formats a contact group as HTML code.
27 *
28 * @author Tobias Koenig <tokoe@kde.org>
29 */
31{
32public:
33 /**
34 * Creates a new grantlee contact group formatter.
35 */
37
38 void setGrantleeTheme(const GrantleeTheme::Theme &theme);
39 void setAbsoluteThemePath(const QString &path);
40
41 /**
42 * Destroys the grantlee contact group formatter.
43 */
45
46 /**
47 * Returns the contact group formatted as HTML
48 */
49 [[nodiscard]] QString toHtml(HtmlForm form = SelfcontainedForm) const override;
50
51private:
52 //@cond PRIVATE
53 std::unique_ptr<GrantleeContactGroupFormatterPrivate> const d;
54 //@endcond
55};
56}
The interface for all contact group formatters.
HtmlForm
Describes the form of the HTML that is created.
A class that formats a contact group as HTML code.
~GrantleeContactGroupFormatter() override
Destroys the grantlee contact group formatter.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.