KAddressBookGrantlee::GrantleeContactGroupFormatter Class

A class that formats a contact group as HTML code. More...

Header: #include <Akonadi/GrantleeContactGroupFormatter>
CMake: find_package(KPim6AkonadiContactCore REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::AkonadiContactCore)
Inherits: Akonadi::AbstractContactGroupFormatter

Public Functions

GrantleeContactGroupFormatter()
virtual ~GrantleeContactGroupFormatter() override
void setAbsoluteThemePath(const QString &path)
void setGrantleeTheme(const GrantleeTheme::Theme &theme)

Reimplemented Public Functions

virtual QString toHtml(Akonadi::AbstractContactGroupFormatter::HtmlForm form = SelfcontainedForm) const override

Detailed Description

Author: Tobias Koenig <tokoe@kde.org>

Member Function Documentation

[explicit] GrantleeContactGroupFormatter::GrantleeContactGroupFormatter()

Creates a new grantlee contact group formatter.

[override virtual noexcept] GrantleeContactGroupFormatter::~GrantleeContactGroupFormatter()

Destroys the grantlee contact group formatter.

void GrantleeContactGroupFormatter::setAbsoluteThemePath(const QString &path)

Sets the absolute path to the Grantlee theme.

path The absolute path to the theme directory.

void GrantleeContactGroupFormatter::setGrantleeTheme(const GrantleeTheme::Theme &theme)

Sets the Grantlee theme to be used for formatting the contact group.

theme The Grantlee theme to apply.

[override virtual] QString GrantleeContactGroupFormatter::toHtml(Akonadi::AbstractContactGroupFormatter::HtmlForm form = SelfcontainedForm) const

Reimplements: AbstractContactGroupFormatter::toHtml(Akonadi::AbstractContactGroupFormatter::HtmlForm form) const.

Returns the contact group formatted as HTML