QXmpp
Version:0.9.3
|
Represents the XMPP vCard. More...
#include <QXmppVCardIq.h>
Public Member Functions | |
QXmppVCardIq (const QString &bareJid=QString()) | |
QXmppVCardIq (const QXmppVCardIq &other) | |
Constructs a copy of other. | |
QXmppVCardIq & | operator= (const QXmppVCardIq &other) |
Assigns other to this vCard IQ. | |
QDate | birthday () const |
void | setBirthday (const QDate &birthday) |
QString | description () const |
Returns the free-form descriptive text. | |
void | setDescription (const QString &description) |
Sets the free-form descriptive text. | |
QString | email () const |
void | setEmail (const QString &) |
QString | firstName () const |
void | setFirstName (const QString &) |
QString | fullName () const |
void | setFullName (const QString &) |
QString | lastName () const |
void | setLastName (const QString &) |
QString | middleName () const |
void | setMiddleName (const QString &) |
QString | nickName () const |
void | setNickName (const QString &) |
QByteArray | photo () const |
void | setPhoto (const QByteArray &) |
Sets the photo's binary contents. | |
QString | photoType () const |
Returns the photo's MIME type. | |
void | setPhotoType (const QString &type) |
Sets the photo's MIME type. | |
QString | url () const |
void | setUrl (const QString &) |
QList< QXmppVCardAddress > | addresses () const |
Returns the addresses. | |
void | setAddresses (const QList< QXmppVCardAddress > &addresses) |
Sets the addresses. | |
QList< QXmppVCardEmail > | emails () const |
Returns the e-mail addresses. | |
void | setEmails (const QList< QXmppVCardEmail > &emails) |
Sets the e-mail addresses. | |
QList< QXmppVCardPhone > | phones () const |
Returns the phone numbers. | |
void | setPhones (const QList< QXmppVCardPhone > &phones) |
Sets the phone numbers. | |
QXmppVCardOrganization | organization () const |
Returns the organization info. | |
void | setOrganization (const QXmppVCardOrganization &) |
Sets the organization info. |
Represents the XMPP vCard.
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.
QXmppVCardIq::QXmppVCardIq | ( | const QString & | jid = QString() | ) |
Constructs a QXmppVCardIq for the specified recipient.
jid |
QDate QXmppVCardIq::birthday | ( | ) | const |
Returns the date of birth of the individual associated with the vCard.
QString QXmppVCardIq::email | ( | ) | const |
Returns the email address.
QString QXmppVCardIq::firstName | ( | ) | const |
Returns the first name.
QString QXmppVCardIq::fullName | ( | ) | const |
Returns the full name.
QString QXmppVCardIq::lastName | ( | ) | const |
Returns the last name.
QString QXmppVCardIq::middleName | ( | ) | const |
Returns the middle name.
QString QXmppVCardIq::nickName | ( | ) | const |
Returns the nickname.
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();
void QXmppVCardIq::setBirthday | ( | const QDate & | birthday | ) |
Sets the date of birth of the individual associated with the vCard.
birthday |
void QXmppVCardIq::setEmail | ( | const QString & | ) |
Sets the email address.
void QXmppVCardIq::setFirstName | ( | const QString & | firstName | ) |
Sets the first name.
firstName |
void QXmppVCardIq::setFullName | ( | const QString & | fullName | ) |
Sets the full name.
fullName |
void QXmppVCardIq::setLastName | ( | const QString & | lastName | ) |
Sets the last name.
lastName |
void QXmppVCardIq::setMiddleName | ( | const QString & | middleName | ) |
Sets the middle name.
middleName |
void QXmppVCardIq::setNickName | ( | const QString & | nickName | ) |
Sets the nickname.
nickName |
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 |
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.