Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 74934d80 authored by Laurent Montel's avatar Laurent Montel 😁

Add KIND support (vcard4.0)

parent 2b853686
......@@ -485,6 +485,11 @@ QByteArray VCardTool::createVCards( const Addressee::List &list,
VCardLine line( QLatin1String( "GENDER" ), genderStr );
card.addLine( line );
}
// KIND
if (!( *addrIt ).kind().isEmpty()) {
VCardLine line( QLatin1String( "KIND" ), ( *addrIt ).kind() );
card.addLine(line);
}
}
if (identifier.toLower() == QLatin1String( "x-kaddressbook-x-anniversary" ) && version == VCard::v4_0) {
// ANNIVERSARY
......@@ -626,7 +631,10 @@ Addressee::List VCardTool::parseVCards( const QByteArray &vcard ) const
lang.setParameters((*lineIt).parameterMap());
addr.insertLang(lang);
}
// KIND
else if ( identifier == QLatin1String( "kind" ) ) {
addr.setKind( ( *lineIt ).value().toString() );
}
// FN
else if ( identifier == QLatin1String( "fn" ) ) {
addr.setFormattedName( ( *lineIt ).value().toString() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment