aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppPresence.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/QXmppPresence.cpp')
-rw-r--r--src/base/QXmppPresence.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/base/QXmppPresence.cpp b/src/base/QXmppPresence.cpp
index 6351bac8..780ec532 100644
--- a/src/base/QXmppPresence.cpp
+++ b/src/base/QXmppPresence.cpp
@@ -51,6 +51,36 @@ QXmppPresence::~QXmppPresence()
}
+/// Returns the priority level of the resource.
+
+int QXmppPresence::priority() const
+{
+ return m_status.priority();
+}
+
+/// Sets the \a priority level of the resource.
+
+void QXmppPresence::setPriority(int priority)
+{
+ m_status.setPriority(priority);
+}
+
+/// Returns the status text, a textual description of the user's status.
+
+QString QXmppPresence::statusText() const
+{
+ return m_status.statusText();
+}
+
+/// Sets the status text, a textual description of the user's status.
+///
+/// \param str The status text, for example "Gone fishing".
+
+void QXmppPresence::setStatusText(const QString& statusText)
+{
+ m_status.setStatusText(statusText);
+}
+
/// Returns the presence type.
///
/// You can use this method to determine the action which needs to be