Akonadi Contacts

grantleecontactgroupformatter.h
1 /*
2  This file is part of KAddressBook.
3 
4  SPDX-FileCopyrightText: 2010 Tobias Koenig <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #pragma once
10 
11 #include "abstractcontactgroupformatter.h"
12 #include "akonadi-contact_export.h"
13 
14 #include <memory>
15 
16 namespace GrantleeTheme
17 {
18 class Theme;
19 }
20 
21 namespace KAddressBookGrantlee
22 {
23 class GrantleeContactGroupFormatterPrivate;
24 
25 /**
26  * @short A class that formats a contact group as HTML code.
27  *
28  * @author Tobias Koenig <[email protected]>
29  */
31 {
32 public:
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  Q_REQUIRED_RESULT QString toHtml(HtmlForm form = SelfcontainedForm) const override;
50 
51 private:
52  //@cond PRIVATE
53  std::unique_ptr<GrantleeContactGroupFormatterPrivate> const d;
54  //@endcond
55 };
56 }
HtmlForm
Describes the form of the HTML that is created.
The interface for all contact group formatters.
A class that formats a contact group as HTML code.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.