[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kaddressbook
From: Tobias Koenig <tokoe () kde ! org>
Date: 2010-09-29 16:17:33
Message-ID: 20100929161733.C3669AC88E () svn ! kde ! org
[Download RAW message or body]
SVN commit 1180978 by tokoe:
Handle sending of SMS
M +5 -0 grantleecontactformatter.cpp
M +8 -0 viewertemplates/contact_embedded.html
--- trunk/KDE/kdepim/kaddressbook/grantleecontactformatter.cpp #1180977:1180978
@@ -96,7 +96,12 @@
if ( !phoneNumber.isEmpty() ) {
const QString url = QString::fromLatin1( "<a href=\"phone:?index=%1\">%2</a>" \
).arg( counter ).arg( phoneNumber.number() ); numberObject.insert( QLatin1String( \
"numberLink" ), url ); +
+ if ( phoneNumber.type() & KABC::PhoneNumber::Cell ) {
+ const QString url = QString::fromLatin1( "<a href=\"sms:?index=%1\">(SMS)</a>" \
).arg( counter ); + numberObject.insert( QLatin1String( "smsLink" ), url );
}
+ }
return numberObject;
}
--- trunk/KDE/kdepim/kaddressbook/viewertemplates/contact_embedded.html \
#1180977:1180978 @@ -21,11 +21,19 @@
{% endif %}
{% for phoneNumber in contact.phoneNumbers %}
+ {% if phoneNumber.smsLink %}
{% with phoneNumber.type as title %}
+ {% with phoneNumber.numberLink|safe|add:" "|add:phoneNumber.smsLink|safe \
as value %} + {% include "contact_row.html" %}
+ {% endwith %}
+ {% endwith %}
+ {% else %}
+ {% with phoneNumber.type as title %}
{% with phoneNumber.numberLink|safe as value %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
+ {% endif %}
{% endfor %}
{% for email in contact.emails %}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic