diff options
| author | 0xd34df00d <0xd34df00d@gmail.com> | 2014-03-26 18:13:18 +0400 |
|---|---|---|
| committer | 0xd34df00d <0xd34df00d@gmail.com> | 2014-03-26 18:13:18 +0400 |
| commit | ab5bdff45a304730ba5194e328bfc62267e366dc (patch) | |
| tree | e1c12601da2f40ffa3cebe8f0cf5884081e8c8fd /src/base | |
| parent | 58cbb3f6c322ce33c0a841dfb9abf9936eeed8bb (diff) | |
| download | qxmpp-ab5bdff45a304730ba5194e328bfc62267e366dc.tar.gz | |
Documented QXmppVCardOrganization.
Diffstat (limited to 'src/base')
| -rw-r--r-- | src/base/QXmppVCardIq.cpp | 26 |
1 files changed, 24 insertions, 2 deletions
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; |
