summaryrefslogtreecommitdiffstats
path: root/kabc/vcardtool.cpp
diff options
context:
space:
mode:
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() ) );