akonadi
standardcontactformatter.cpp
127 QString dispLabel = number.typeLabel().replace( QLatin1String( " " ), QLatin1String( " " ) );
128 QString dispValue = QString::fromLatin1( "<a href=\"phone:?index=%1\">%2</a>" ).arg( counter ).arg( Qt::escape( number.number() ) );
130 QString dispIcon = QString::fromLatin1( "<a href=\"sms:?index=%1\" title=\"%2\"><img src=\"sms_icon\" align=\"top\"/>")
150 const QString fullEmail = QString::fromLatin1( KUrl::toPercentEncoding( rawContact.fullEmail( email ) ) );
160 if ( !url.startsWith( QLatin1String( "http://" ) ) && !url.startsWith( QLatin1String( "https://" ) ) ) {
169 const QString blog = rawContact.custom( QLatin1String( "KADDRESSBOOK" ), QLatin1String( "BlogFeed" ) );
171 dynamicPart += rowFmtStr1.arg( i18n( "Blog Feed" ) ).arg( KStringHandler::tagUrls( Qt::escape( blog ) ) );
185 formattedAddress = formattedAddress.replace( QRegExp( QLatin1String( "\n+" ) ), QLatin1String( "<br>" ) );
187 const QString url = QString::fromLatin1( "<a href=\"address:?index=%1\" title=\"%2\"><img src=\"map_icon\" alt=\"%2\"/></a>" )
201 notes = rowFmtStr1.arg( i18n( "Notes" ) ).arg( Qt::escape( rawContact.note() ).replace( QLatin1Char( '\n' ), QLatin1String( "<br>" ) ) ) ;
212 titleMap.insert( QLatin1String( "SpousesName" ), i18nc( "Wife/Husband/...", "Partner's Name" ) );
309 "<td colspan=\"2\" align=\"left\" width=\"70%\"><font size=\"+2\"><b>%2</b></font></td>" // name
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QString & append(QChar ch)
QDate addYears(int nyears) const
Creates a div HTML element that can be embedded.
Definition: abstractcontactformatter.h:54
const_iterator constFind(const Key &key) const
QTime fromString(const QString &string, Qt::DateFormat format)
const_iterator insert(const T &value)
QString & remove(int position, int n)
QDate fromString(const QString &string, Qt::DateFormat format)
virtual ~StandardContactFormatter()
Destroys the standard contact formatter.
Definition: standardcontactformatter.cpp:55
bool isEmpty() const
const_iterator constEnd() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
bool isValid() const
QList< QVariantMap > customFieldDescriptions() const
Returns the custom field descriptions that will be used.
Definition: abstractcontactformatter.cpp:72
int year() const
KABC::Addressee contact() const
Returns the contact that will be formatted.
Definition: abstractcontactformatter.cpp:52
virtual QString toHtml(HtmlForm form=SelfcontainedForm) const
Returns the contact formatted as HTML.
Definition: standardcontactformatter.cpp:70
QDateTime fromString(const QString &string, Qt::DateFormat format)
bool contains(const T &value) const
QString & replace(int position, int n, QChar after)
StandardContactFormatter()
Creates a new standard contact formatter.
Definition: standardcontactformatter.cpp:50
QString mid(int position, int n) const
QDate date() const
QString escape(const QString &plain)
QDate currentDate()
bool isEmpty() const
QString left(int n) const
QString fromLatin1(const char *str, int size)
iterator insert(const Key &key, const T &value)
bool isEmpty() const
Akonadi::Item item() const
Returns the item who's payload will be formatted.
Definition: abstractcontactformatter.cpp:62
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
const T value(const Key &key) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.