Represents the XMPP vCard.
More...
#include <QXmppVCardIq.h>
List of all members.
Detailed Description
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.
Constructor & Destructor Documentation
QXmppVCardIq::QXmppVCardIq |
( |
const QString & |
jid = "" | ) |
|
Constructs a QXmppVCardIq for the specified recipient.
- Parameters:
-
Member Function Documentation
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 |
QString QXmppVCardIq::fullName |
( |
| ) |
const |
QString QXmppVCardIq::lastName |
( |
| ) |
const |
QString QXmppVCardIq::middleName |
( |
| ) |
const |
QString QXmppVCardIq::nickName |
( |
| ) |
const |
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.
- Parameters:
-
void QXmppVCardIq::setEmail |
( |
const QString & |
email | ) |
|
Sets the email address.
- Parameters:
-
void QXmppVCardIq::setFirstName |
( |
const QString & |
firstName | ) |
|
Sets the first name.
- Parameters:
-
void QXmppVCardIq::setFullName |
( |
const QString & |
fullName | ) |
|
Sets the full name.
- Parameters:
-
void QXmppVCardIq::setLastName |
( |
const QString & |
lastName | ) |
|
Sets the last name.
- Parameters:
-
void QXmppVCardIq::setMiddleName |
( |
const QString & |
middleName | ) |
|
Sets the middle name.
- Parameters:
-
void QXmppVCardIq::setNickName |
( |
const QString & |
nickName | ) |
|
Sets the nickname.
- Parameters:
-
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.
- Parameters:
-
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.
The documentation for this class was generated from the following files: