aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppMucIq.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/QXmppMucIq.cpp')
-rw-r--r--src/base/QXmppMucIq.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/base/QXmppMucIq.cpp b/src/base/QXmppMucIq.cpp
index 97328a2f..30dc9697 100644
--- a/src/base/QXmppMucIq.cpp
+++ b/src/base/QXmppMucIq.cpp
@@ -33,6 +33,8 @@ QXmppMucItem::QXmppMucItem()
{
}
+/// Returns true if the current item is null.
+
bool QXmppMucItem::isNull() const
{
return m_actor.isEmpty() &&
@@ -43,11 +45,17 @@ bool QXmppMucItem::isNull() const
m_role == UnspecifiedRole;
}
+/// Returns the actor for this item, for instance the admin who kicked
+/// a user out of a room.
+
QString QXmppMucItem::actor() const
{
return m_actor;
}
+/// Sets the \a actor for this item, for instance the admin who kicked
+/// a user out of a room.
+
void QXmppMucItem::setActor(const QString &actor)
{
m_actor = actor;
@@ -135,11 +143,17 @@ void QXmppMucItem::setNick(const QString &nick)
m_nick = nick;
}
+/// Returns the reason for this item, for example the reason for kicking
+/// a user out of a room.
+
QString QXmppMucItem::reason() const
{
return m_reason;
}
+/// Sets the \a reason for this item, for example the reason for kicking
+/// a user out of a room.
+
void QXmppMucItem::setReason(const QString &reason)
{
m_reason = reason;