Search for usage in LXR

Akonadi::StandardContactFormatter Class Reference

#include <standardcontactformatter.h>

Inheritance diagram for Akonadi::StandardContactFormatter:

Public Member Functions

 StandardContactFormatter ()
 ~StandardContactFormatter () override
bool displayQRCode () const
void setDisplayQRCode (bool show)
QString toHtml (HtmlForm form=SelfcontainedForm) const override
- Public Member Functions inherited from Akonadi::AbstractContactFormatter
 AbstractContactFormatter ()
virtual ~AbstractContactFormatter ()
KContacts::Addressee contact () const
QVector< QVariantMap > customFieldDescriptions () const
Akonadi::Item item () const
void setContact (const KContacts::Addressee &contact)
void setCustomFieldDescriptions (const QVector< QVariantMap > &descriptions)
void setItem (const Akonadi::Item &item)

Additional Inherited Members

- Public Types inherited from Akonadi::AbstractContactFormatter
enum  HtmlForm { SelfcontainedForm, EmbeddableForm, UserForm = SelfcontainedForm + 42 }

Detailed Description

A class that formats a contact as HTML code.


using namespace Akonadi;
StandardContactFormatter formatter;
formatter.setContact( contact );
view->setHtml( formatter.toHtml() );
Tobias Koenig tokoe[email protected]@kde[email protected].org

Definition at line 43 of file standardcontactformatter.h.

Constructor & Destructor Documentation

◆ StandardContactFormatter()

StandardContactFormatter::StandardContactFormatter ( )

Creates a new standard contact formatter.

Definition at line 31 of file standardcontactformatter.cpp.

◆ ~StandardContactFormatter()

StandardContactFormatter::~StandardContactFormatter ( )

Destroys the standard contact formatter.

Member Function Documentation

◆ toHtml()

QString StandardContactFormatter::toHtml ( HtmlForm  form = SelfcontainedForm) const

Returns the contact formatted as HTML.

Implements Akonadi::AbstractContactFormatter.

Definition at line 48 of file standardcontactformatter.cpp.

The documentation for this class was generated from the following files:
KContacts::Addressee contact() const
Returns the contact that will be formatted.
void setHtml(const QString &text)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 03:56:46 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.