From 6c7caacc78493d9d87abd1219b89442bb4415f84 Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Mon, 8 Mar 2010 06:11:27 +0000 Subject: remove deprecated functions calls --- source/QXmppVCard.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'source/QXmppVCard.cpp') diff --git a/source/QXmppVCard.cpp b/source/QXmppVCard.cpp index 05967abb..de865f5b 100644 --- a/source/QXmppVCard.cpp +++ b/source/QXmppVCard.cpp @@ -96,15 +96,15 @@ 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()); + helperToXmlAddTextElement(writer, "FN", fullName()); + if(!nickName().isEmpty()) + helperToXmlAddTextElement(writer, "NICKNAME", nickName()); - if(!getPhoto().isEmpty()) + if(!photo().isEmpty()) { writer->writeStartElement("PHOTO"); - helperToXmlAddTextElement(writer, "TYPE", getImageType(getPhoto())); - helperToXmlAddTextElement(writer, "BINVAL", getPhoto().toBase64()); + helperToXmlAddTextElement(writer, "TYPE", getImageType(photo())); + helperToXmlAddTextElement(writer, "BINVAL", photo().toBase64()); writer->writeEndElement(); } @@ -113,7 +113,7 @@ void QXmppVCard::toXmlElementFromChild(QXmlStreamWriter *writer) const QImage QXmppVCard::photoAsImage() const { - return getImageFromByteArray(getPhoto()); + return getImageFromByteArray(photo()); } QString QXmppVCard::getFullName() const @@ -133,6 +133,6 @@ const QByteArray& QXmppVCard::getPhoto() const QImage QXmppVCard::getPhotoAsImage() const { - return getImageFromByteArray(getPhoto()); + return getImageFromByteArray(photo()); } -- cgit v1.2.3