diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-12-11 19:38:15 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-12-11 19:38:15 +0000 |
| commit | 7999763cc5239dade9807996895982b99893f90b (patch) | |
| tree | 13e11a162b34e9e5b4b44cf1842eb98b0eacdd98 /src/QXmppPresence.cpp | |
| parent | 09cf930f6c2b693bac5f487b070c2f846b4b7bb8 (diff) | |
| download | qxmpp-7999763cc5239dade9807996895982b99893f90b.tar.gz | |
document QXmppPresence::Status
Diffstat (limited to 'src/QXmppPresence.cpp')
| -rw-r--r-- | src/QXmppPresence.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/QXmppPresence.cpp b/src/QXmppPresence.cpp index 81a47d63..64ed0d58 100644 --- a/src/QXmppPresence.cpp +++ b/src/QXmppPresence.cpp @@ -303,6 +303,8 @@ void QXmppPresence::setTypeFromStr(const QString& str) } } +/// Constructs a presence status. + QXmppPresence::Status::Status(QXmppPresence::Status::Type type, const QString statusText, int priority) : m_type(type), @@ -310,11 +312,15 @@ QXmppPresence::Status::Status(QXmppPresence::Status::Type type, { } +/// Returns the status type, for instance busy or away. + QXmppPresence::Status::Type QXmppPresence::Status::type() const { return m_type; } +/// Sets the status type. + void QXmppPresence::Status::setType(QXmppPresence::Status::Type type) { m_type = type; @@ -396,21 +402,33 @@ QString QXmppPresence::Status::getTypeStr() const return text; } +/// Returns the status text, a textual description of the user's status. + QString QXmppPresence::Status::statusText() const { return m_statusText; } +/// Sets the status text, a textual description of the user's status. +/// +/// \param str The status text, for example "Gone fishing". + void QXmppPresence::Status::setStatusText(const QString& str) { m_statusText = str; } +/// Returns the priority level of the resource. + int QXmppPresence::Status::priority() const { return m_priority; } +/// Sets the priority level of the resource. +/// +/// \param priority + void QXmppPresence::Status::setPriority(int priority) { m_priority = priority; |
