From 6f98c70f93e45260319685d46d0fac6667745c79 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Wed, 1 Sep 2010 07:25:01 +0000 Subject: improve code documentation --- src/QXmppVCard.cpp | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 63 insertions(+), 4 deletions(-) (limited to 'src/QXmppVCard.cpp') diff --git a/src/QXmppVCard.cpp b/src/QXmppVCard.cpp index 1ff181a4..9b4b93b2 100644 --- a/src/QXmppVCard.cpp +++ b/src/QXmppVCard.cpp @@ -69,81 +69,140 @@ QXmppVCard::QXmppVCard(const QString& jid) : QXmppIq(QXmppIq::Get) setTo(jid); } +/// Returns the date of birth of the individual associated with the vCard. +/// + QDate QXmppVCard::birthday() const { return m_birthday; } +/// Sets the date of birth of the individual associated with the vCard. +/// +/// \param birthday + void QXmppVCard::setBirthday(const QDate &birthday) { m_birthday = birthday; } +/// Returns the email address. +/// + QString QXmppVCard::email() const { return m_email; } +/// Sets the email address. +/// +/// \param email + void QXmppVCard::setEmail(const QString &email) { m_email = email; } +/// Returns the first name. +/// + QString QXmppVCard::firstName() const { return m_firstName; } +/// Sets the first name. +/// +/// \param firstName + void QXmppVCard::setFirstName(const QString &firstName) { m_firstName = firstName; } +/// Returns the full name. +/// + QString QXmppVCard::fullName() const { return m_fullName; } -void QXmppVCard::setFullName(const QString& str) +/// Sets the full name. +/// +/// \param fullName + +void QXmppVCard::setFullName(const QString &fullName) { - m_fullName = str; + m_fullName = fullName; } +/// Returns the last name. +/// + QString QXmppVCard::lastName() const { return m_lastName; } +/// Sets the last name. +/// +/// \param lastName + void QXmppVCard::setLastName(const QString &lastName) { m_lastName = lastName; } +/// Returns the middle name. +/// + QString QXmppVCard::middleName() const { return m_middleName; } +/// Sets the middle name. +/// +/// \param middleName + void QXmppVCard::setMiddleName(const QString &middleName) { m_middleName = middleName; } +/// Returns the nickname. +/// + QString QXmppVCard::nickName() const { return m_nickName; } -void QXmppVCard::setNickName(const QString& str) +/// Sets the nickname. +/// +/// \param nickName + +void QXmppVCard::setNickName(const QString &nickName) { - m_nickName = str; + m_nickName = nickName; } +/// 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. + QString QXmppVCard::url() const { return m_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. +/// +/// \param vCard + void QXmppVCard::setUrl(const QString& url) { m_url = url; -- cgit v1.2.3