Akonadi Contacts
grantleecontactgroupformatter.cpp
30 mTemplateLoader = QSharedPointer<KTextTemplate::FileSystemTemplateLoader>(new KTextTemplate::FileSystemTemplateLoader);
98 const QString emailLink = QStringLiteral("<a href=\"mailto:") + QString::fromLatin1(QUrl::toPercentEncoding(contact.fullEmail()))
157 setHashField(fieldObject, QStringLiteral("key"), field.value(QStringLiteral("key")).toString());
159 setHashField(fieldObject, QStringLiteral("title"), field.value(QStringLiteral("title")).toString());
161 setHashField(fieldObject, QStringLiteral("value"), field.value(QStringLiteral("value")).toString());
169 colorsObject.insert(QStringLiteral("linkColor"), KColorScheme(QPalette::Active, KColorScheme::View).foreground().color().name());
171 colorsObject.insert(QStringLiteral("textColor"), KColorScheme(QPalette::Active, KColorScheme::View).foreground().color().name());
173 colorsObject.insert(QStringLiteral("backgroundColor"), KColorScheme(QPalette::Active, KColorScheme::View).background().color().name());
QList< QVariantMap > additionalFields() const
Returns the additional fields that will be shown.
Definition abstractcontactgroupformatter.cpp:56
Akonadi::Item item() const
Returns the item who's payload will be formatted.
Definition abstractcontactgroupformatter.cpp:46
KContacts::ContactGroup contactGroup() const
Returns the contact group that will be formatted.
Definition abstractcontactgroupformatter.cpp:36
HtmlForm
Describes the form of the HTML that is created.
Definition abstractcontactgroupformatter.h:43
@ EmbeddableForm
Creates a div HTML element that can be embedded.
Definition abstractcontactgroupformatter.h:45
Job that expands a ContactGroup to a list of contacts.
Definition contactgroupexpandjob.h:55
bool hasPayload() const
T payload() const
bool isValid() const
GrantleeContactGroupFormatter()
Creates a new grantlee contact group formatter.
Definition grantleecontactgroupformatter.cpp:63
~GrantleeContactGroupFormatter() override
Destroys the grantlee contact group formatter.
QString toHtml(HtmlForm form=SelfcontainedForm) const override
Returns the contact group formatted as HTML.
Definition grantleecontactgroupformatter.cpp:106
void addEmail(const Email &email)
AddresseeList List
QString preferredEmail() const
QString realName() const
QString fullEmail(const QString &email=QString()) const
void setFormattedName(const QString &formattedName)
QString name() const
QString email() const
int contactReferenceCount() const
Data & data(int index)
void append(const ContactGroupReference &reference)
int count() const
void removeAllContactData()
QString name() const
int dataCount() const
Template loadByName(const QString &name) const
void addTemplateLoader(QSharedPointer< AbstractTemplateLoader > loader)
QString errorString() const
Error error() const
const_reference at(qsizetype i) const const
qsizetype size() const const
Active
QString arg(Args &&... args) const const
QString fromLatin1(QByteArrayView str)
bool isEmpty() const const
QByteArray toPercentEncoding(const QString &input, const QByteArray &exclude, const QByteArray &include)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.