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 namespace GrantleeTheme
15 {
16 class Theme;
17 }
18 
19 namespace KAddressBookGrantlee
20 {
21 /**
22  * @short A class that formats a contact group as HTML code.
23  *
24  * @author Tobias Koenig <[email protected]>
25  */
27 {
28 public:
29  /**
30  * Creates a new grantlee contact group formatter.
31  */
33 
34  void setGrantleeTheme(const GrantleeTheme::Theme &theme);
35  void setAbsoluteThemePath(const QString &path);
36 
37  /**
38  * Destroys the grantlee contact group formatter.
39  */
41 
42  /**
43  * Returns the contact group formatted as HTML
44  */
45  Q_REQUIRED_RESULT QString toHtml(HtmlForm form = SelfcontainedForm) const override;
46 
47 private:
48  //@cond PRIVATE
49  class Private;
50  Private *const d;
51  //@endcond
52 };
53 }
54 
The interface for all contact group formatters.
A class that formats a contact group as HTML code.
HtmlForm
Describes the form of the HTML that is created.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Jun 18 2021 23:08:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.