diff options
Diffstat (limited to 'src')
| -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; |
