summaryrefslogtreecommitdiffstats
path: root/kabc/vcardtool.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/vcardtool.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/vcardtool.cpp')
-rw-r--r--kabc/vcardtool.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/kabc/vcardtool.cpp b/kabc/vcardtool.cpp
index d9fdd03a8..566b5968d 100644
--- a/kabc/vcardtool.cpp
+++ b/kabc/vcardtool.cpp
@@ -320,6 +320,9 @@ QString VCardTool::createVCards( Addressee::List list, VCard::Version version )
// UID
card.addLine( VCardLine( "UID", (*addrIt).uid() ) );
+ // UID
+ card.addLine( VCardLine( "URI", (*addrIt).uri() ) );
+
// URL
card.addLine( VCardLine( "URL", (*addrIt).url().url() ) );
@@ -580,6 +583,10 @@ Addressee::List VCardTool::parseVCards( const QString& vcard )
else if ( identifier == "uid" )
addr.setUid( (*lineIt).value().asString() );
+ // URI
+ else if ( identifier == "uri" )
+ addr.setUri( (*lineIt).value().asString() );
+
// URL
else if ( identifier == "url" )
addr.setUrl( KURL( (*lineIt).value().asString() ) );