From ab5bdff45a304730ba5194e328bfc62267e366dc Mon Sep 17 00:00:00 2001 From: 0xd34df00d <0xd34df00d@gmail.com> Date: Wed, 26 Mar 2014 18:13:18 +0400 Subject: Documented QXmppVCardOrganization. --- src/base/QXmppVCardIq.cpp | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'src/base/QXmppVCardIq.cpp') diff --git a/src/base/QXmppVCardIq.cpp b/src/base/QXmppVCardIq.cpp index 9703c5dc..21d44137 100644 --- a/src/base/QXmppVCardIq.cpp +++ b/src/base/QXmppVCardIq.cpp @@ -449,11 +449,15 @@ public: QString title; }; +/// Constructs an empty organization information. + QXmppVCardOrganization::QXmppVCardOrganization() : d(new QXmppVCardOrganizationPrivate) { } +/// Constructs a copy of \a other. + QXmppVCardOrganization::QXmppVCardOrganization(const QXmppVCardOrganization &other) : d(other.d) { @@ -463,47 +467,65 @@ QXmppVCardOrganization::~QXmppVCardOrganization() { } +/// Assigns \a other to this organization info. + QXmppVCardOrganization& QXmppVCardOrganization::operator=(const QXmppVCardOrganization &other) { d = other.d; return *this; } +/// Returns the name of the organization. + QString QXmppVCardOrganization::organization() const { return d->organization; } -void QXmppVCardOrganization::setOrganization(const QString &org) +/// Sets the organization \a name. + +void QXmppVCardOrganization::setOrganization(const QString &name) { - d->organization = org; + d->organization = name; } +/// Returns the organization unit (also known as department). + QString QXmppVCardOrganization::unit() const { return d->unit; } +/// Sets the \a unit within the organization. + void QXmppVCardOrganization::setUnit(const QString &unit) { d->unit = unit; } +/// Returns the job role within the organization. + QString QXmppVCardOrganization::role() const { return d->role; } +/// Sets the job \a role within the organization. + void QXmppVCardOrganization::setRole(const QString &role) { d->role = role; } +/// Returns the job title within the organization. + QString QXmppVCardOrganization::title() const { return d->title; } +/// Sets the job \a title within the organization. + void QXmppVCardOrganization::setTitle(const QString &title) { d->title = title; -- cgit v1.2.3