Akonadi Contacts
grantleecontactformatter.cpp
52 mTemplateLoader = QSharedPointer<KTextTemplate::FileSystemTemplateLoader>(new KTextTemplate::FileSystemTemplateLoader());
216 colorsObject.insert(QStringLiteral("linkColor"), KColorScheme(QPalette::Active, KColorScheme::View).foreground().color().name());
218 colorsObject.insert(QStringLiteral("textColor"), KColorScheme(QPalette::Active, KColorScheme::View).foreground().color().name());
220 colorsObject.insert(QStringLiteral("backgroundColor"), KColorScheme(QPalette::Active, KColorScheme::View).background().color().name());
223 mapping.insert(QStringLiteral("contact"), QVariant::fromValue(ContactGrantleeWrapper(rawContact)));
KContacts::Addressee contact() const
Returns the contact that will be formatted.
Definition abstractcontactformatter.cpp:36
Akonadi::Item item() const
Returns the item who's payload will be formatted.
Definition abstractcontactformatter.cpp:46
QList< QVariantMap > customFieldDescriptions() const
Returns the custom field descriptions that will be used.
Definition abstractcontactformatter.cpp:56
@ EmbeddableForm
Creates a div HTML element that can be embedded.
Definition abstractcontactformatter.h:45
T payload() const
bool isValid() const
bool hasPayload() const
Additional properties for the KContacts::Addressee Grantlee model.
Definition contactgrantleewrapper.h:17
GrantleeContactFormatter()
Creates a new grantlee contact formatter.
Definition grantleecontactformatter.cpp:86
~GrantleeContactFormatter() override
Destroys the grantlee contact formatter.
void setApplicationDomain(const QByteArray &domain)
Translation domain for the Grantlee localizer.
Definition grantleecontactformatter.cpp:240
QString toHtml(HtmlForm form=SelfcontainedForm) const override
Returns the contact formatted as HTML.
Definition grantleecontactformatter.cpp:119
QStringList customs() const
bool isEmpty() const
void setLocalizer(QSharedPointer< AbstractLocalizer > localizer)
QString errorString() const
Error error() const
QString i18nc(const char *context, const char *text, const TYPE &arg...)
#define KTEXTTEMPLATE_END_LOOKUP
#define KTEXTTEMPLATE_BEGIN_LOOKUP(Type)
KCOREADDONS_EXPORT QString tagUrls(const QString &text)
int registerMetaType()
QDate fromString(QStringView string, QStringView format, QCalendar cal)
QDateTime fromString(QStringView string, QStringView format, QCalendar cal)
const_reference at(qsizetype i) const const
iterator insert(const_iterator before, parameter_type value)
qsizetype size() const const
ShortFormat
QLocale system()
QString toString(QDate date, FormatType format) const const
Active
bool contains(const QSet< T > &other) const const
QString & insert(qsizetype position, QChar ch)
QString left(qsizetype n) const const
QString mid(qsizetype position, qsizetype n) const const
QString toHtmlEscaped() const const
ISODate
QTime fromString(QStringView string, QStringView format)
QVariant fromValue(T &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:08 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.