From cfb679216a139bc80dd75ad24f48ba97c5b98c55 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Mon, 1 Feb 2010 11:45:43 +0000 Subject: add nickname when serializing vCard --- source/QXmppVCard.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/QXmppVCard.cpp') diff --git a/source/QXmppVCard.cpp b/source/QXmppVCard.cpp index 55aa3b34..d23711c1 100644 --- a/source/QXmppVCard.cpp +++ b/source/QXmppVCard.cpp @@ -102,6 +102,8 @@ void QXmppVCard::toXmlElementFromChild(QXmlStreamWriter *writer) const writer->writeStartElement("vCard"); helperToXmlAddAttribute(writer,"xmlns", ns_vcard); helperToXmlAddTextElement(writer, "FN", getFullName()); + if(!getNickname().isEmpty()) + helperToXmlAddTextElement(writer, "NICKNAME", getNickName()); if(!getPhoto().isEmpty()) { -- cgit v1.2.3