QXmppVCardIq Class
Represents the XMPP vCard. More...
| Header: | #include <QXmppVCardIq.h> |
| Inherits: | QXmppIq |
Public Functions
| QXmppVCardIq(const QString &jid = QString()) | |
| QXmppVCardIq(const QXmppVCardIq &other) | |
| QList<QXmppVCardAddress> | addresses() const |
| QDate | birthday() const |
| QString | description() const |
| QString | email() const |
| QList<QXmppVCardEmail> | emails() const |
| QString | firstName() const |
| QString | fullName() const |
| QString | lastName() const |
| QString | middleName() const |
| QString | nickName() const |
| QXmppVCardOrganization | organization() const |
| QList<QXmppVCardPhone> | phones() const |
| QByteArray | photo() const |
| QString | photoType() const |
| void | setAddresses(const QList<QXmppVCardAddress> &addresses) |
| void | setBirthday(const QDate &birthday) |
| void | setDescription(const QString &description) |
| void | setEmail(const QString &email) |
| void | setEmails(const QList<QXmppVCardEmail> &emails) |
| void | setFirstName(const QString &firstName) |
| void | setFullName(const QString &fullName) |
| void | setLastName(const QString &lastName) |
| void | setMiddleName(const QString &middleName) |
| void | setNickName(const QString &nickName) |
| void | setOrganization(const QXmppVCardOrganization &org) |
| void | setPhones(const QList<QXmppVCardPhone> &phones) |
| void | setPhoto(const QByteArray &photo) |
| void | setPhotoType(const QString &photoType) |
| void | setUrl(const QString &url) |
| QString | url() const |
| QXmppVCardIq & | operator=(const QXmppVCardIq &other) |
Related Non-Members
| bool | operator!=(const QXmppVCardIq &left, const QXmppVCardIq &right) |
| bool | operator==(const QXmppVCardIq &left, const QXmppVCardIq &right) |
Detailed Description
The functions names are self explanatory. Look at QXmppVCardManager and XEP-0054: vcard-temp for more details.
There are many field of XMPP vCard which are not present in this class. File a issue for the same. We will add the requested field to this class.
Member Function Documentation
QXmppVCardIq::QXmppVCardIq(const QString &jid = QString())
Constructs a QXmppVCardIq for the specified recipient.
QXmppVCardIq::QXmppVCardIq(const QXmppVCardIq &other)
Constructs a copy of other.
QList<QXmppVCardAddress> QXmppVCardIq::addresses() const
Returns the addresses.
See also setAddresses().
QDate QXmppVCardIq::birthday() const
Returns the date of birth of the individual associated with the vCard.
See also setBirthday().
QString QXmppVCardIq::description() const
Returns the free-form descriptive text.
See also setDescription().
QString QXmppVCardIq::email() const
Returns the email address.
See also setEmail().
QList<QXmppVCardEmail> QXmppVCardIq::emails() const
Returns the e-mail addresses.
See also setEmails().
QString QXmppVCardIq::firstName() const
Returns the first name.
See also setFirstName().
QString QXmppVCardIq::fullName() const
Returns the full name.
See also setFullName().
QString QXmppVCardIq::lastName() const
Returns the last name.
See also setLastName().
QString QXmppVCardIq::middleName() const
Returns the middle name.
See also setMiddleName().
QString QXmppVCardIq::nickName() const
Returns the nickname.
See also setNickName().
QXmppVCardOrganization QXmppVCardIq::organization() const
Returns the organization info.
See also setOrganization().
QList<QXmppVCardPhone> QXmppVCardIq::phones() const
Returns the phone numbers.
See also setPhones().
QByteArray QXmppVCardIq::photo() const
Returns the photo's binary contents.
If you want to use the photo as a QImage you can use:
QBuffer buffer;
buffer.setData(myCard.photo());
buffer.open(QIODevice::ReadOnly);
QImageReader imageReader(&buffer);
QImage myImage = imageReader.read();
See also setPhoto().
QString QXmppVCardIq::photoType() const
Returns the photo's MIME type.
See also setPhotoType().
void QXmppVCardIq::setAddresses(const QList<QXmppVCardAddress> &addresses)
Sets the addresses.
See also addresses().
void QXmppVCardIq::setBirthday(const QDate &birthday)
Sets the date of birth of the individual associated with the vCard.
birthday.
See also birthday().
void QXmppVCardIq::setDescription(const QString &description)
Sets the free-form descriptive text.
description.
See also description().
void QXmppVCardIq::setEmail(const QString &email)
Sets the email address.
See also email().
void QXmppVCardIq::setEmails(const QList<QXmppVCardEmail> &emails)
Sets the e-mail addresses.
emails.
See also emails().
void QXmppVCardIq::setFirstName(const QString &firstName)
Sets the first name.
firstName.
See also firstName().
void QXmppVCardIq::setFullName(const QString &fullName)
Sets the full name.
fullName.
See also fullName().
void QXmppVCardIq::setLastName(const QString &lastName)
Sets the last name.
lastName.
See also lastName().
void QXmppVCardIq::setMiddleName(const QString &middleName)
Sets the middle name.
middleName.
See also middleName().
void QXmppVCardIq::setNickName(const QString &nickName)
Sets the nickname.
nickName.
See also nickName().
void QXmppVCardIq::setOrganization(const QXmppVCardOrganization &org)
Sets the organization info.
org.
See also organization().
void QXmppVCardIq::setPhones(const QList<QXmppVCardPhone> &phones)
Sets the phone numbers.
phones.
See also phones().
void QXmppVCardIq::setPhoto(const QByteArray &photo)
Sets the photo's binary contents.
See also photo().
void QXmppVCardIq::setPhotoType(const QString &photoType)
Sets the photo's MIME type.
photoType.
See also photoType().
void QXmppVCardIq::setUrl(const QString &url)
Sets the URL associated with the vCard. It can represent the user's homepage or a location at which you can find real-time information about the vCard.
url.
See also url().
QString QXmppVCardIq::url() const
Returns the URL associated with the vCard. It can represent the user's homepage or a location at which you can find real-time information about the vCard.
See also setUrl().
QXmppVCardIq &QXmppVCardIq::operator=(const QXmppVCardIq &other)
Assigns other to this vCard IQ.
Related Non-Members
bool operator!=(const QXmppVCardIq &left, const QXmppVCardIq &right)
Returns true if left and right are not equal.
bool operator==(const QXmppVCardIq &left, const QXmppVCardIq &right)
Returns true if left and right are equal.