aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppVCard.cpp
diff options
context:
space:
mode:
authorManjeet Dahiya <manjeetdahiya@gmail.com>2010-03-08 06:11:27 +0000
committerManjeet Dahiya <manjeetdahiya@gmail.com>2010-03-08 06:11:27 +0000
commit6c7caacc78493d9d87abd1219b89442bb4415f84 (patch)
tree70ebde0fca608ca7ddb48e2b3a46f266a7bc8fb0 /source/QXmppVCard.cpp
parentf74ba12f07c0640437fbccfa1c1d234af95b1baa (diff)
downloadqxmpp-6c7caacc78493d9d87abd1219b89442bb4415f84.tar.gz
remove deprecated functions calls
Diffstat (limited to 'source/QXmppVCard.cpp')
-rw-r--r--source/QXmppVCard.cpp16
1 files changed, 8 insertions, 8 deletions
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());
}