summaryrefslogtreecommitdiffstats
path: root/kabc/vcardformatimpl.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-06-22 21:54:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-06-22 21:54:39 +0000
commitf5dfb1faa646f3705a5789f7bdf3ece561697596 (patch)
treeae30a37980fdd182bfc77c355718ae04a3467563 /kabc/vcardformatimpl.cpp
parentd855ad0ae05f0f43e625b92a691fff77cf206b9d (diff)
downloadtdelibs-f5dfb1faa646f3705a5789f7bdf3ece561697596.tar.gz
tdelibs-f5dfb1faa646f3705a5789f7bdf3ece561697596.zip
Added new hidden vCard URI parameter for certain CardDAV systems (such as Zimbra) that do not handle UID properly
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1141499 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kabc/vcardformatimpl.cpp')
-rw-r--r--kabc/vcardformatimpl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/kabc/vcardformatimpl.cpp b/kabc/vcardformatimpl.cpp
index cfaccd056..51e6f2eb5 100644
--- a/kabc/vcardformatimpl.cpp
+++ b/kabc/vcardformatimpl.cpp
@@ -137,6 +137,10 @@ bool VCardFormatImpl::loadAddressee( Addressee& addressee, VCARD::VCard &v )
addressee.setUid( readTextValue( cl ) );
break;
+ case EntityURI:
+ addressee.setUri( readTextValue( cl ) );
+ break;
+
case EntityEmail:
addressee.insertEmail( readTextValue( cl ) );
break;
@@ -278,6 +282,7 @@ void VCardFormatImpl::saveAddressee( const Addressee &addressee, VCARD::VCard *v
addTextValue( v, EntityName, addressee.name() );
addTextValue( v, EntityUID, addressee.uid() );
+ addTextValue( v, EntityURI, addressee.uri() );
addTextValue( v, EntityFullName, addressee.formattedName() );
QStringList emails = addressee.emails();