aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppVCard.cpp
diff options
context:
space:
mode:
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());
}