akonadi
Akonadi::StandardContactFormatter Class Reference
#include <standardcontactformatter.h>
Inheritance diagram for Akonadi::StandardContactFormatter:
Public Member Functions | |
StandardContactFormatter () | |
virtual | ~StandardContactFormatter () |
bool | displayQRCode () const |
void | setDisplayQRCode (bool show) |
virtual QString | toHtml (HtmlForm form=SelfcontainedForm) const |
Public Member Functions inherited from Akonadi::AbstractContactFormatter | |
AbstractContactFormatter () | |
virtual | ~AbstractContactFormatter () |
KABC::Addressee | contact () const |
QList< QVariantMap > | customFieldDescriptions () const |
Akonadi::Item | item () const |
void | setContact (const KABC::Addressee &contact) |
void | setCustomFieldDescriptions (const QList< 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.
Examples:
using namespace Akonadi;
const KABC::Addressee contact = ...
StandardContactFormatter formatter;
formatter.setContact( contact );
QTextBrowser *view = new QTextBrowser;
view->setHtml( formatter.toHtml() );
- Since
- 4.5
Definition at line 53 of file standardcontactformatter.h.
Constructor & Destructor Documentation
StandardContactFormatter::StandardContactFormatter | ( | ) |
Creates a new standard contact formatter.
Definition at line 50 of file standardcontactformatter.cpp.
|
virtual |
Destroys the standard contact formatter.
Definition at line 55 of file standardcontactformatter.cpp.
Member Function Documentation
|
virtual |
Returns the contact formatted as HTML.
Implements Akonadi::AbstractContactFormatter.
Definition at line 70 of file standardcontactformatter.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.