aboutsummaryrefslogtreecommitdiff
path: root/src/server/mod_stats.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/mod_stats.cpp')
-rw-r--r--src/server/mod_stats.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/server/mod_stats.cpp b/src/server/mod_stats.cpp
index d7855667..8d8eaeac 100644
--- a/src/server/mod_stats.cpp
+++ b/src/server/mod_stats.cpp
@@ -151,6 +151,23 @@ void QXmppServerStats::setFile(const QString &file)
}
}
+/// Returns the JID from which statistics are served using Service Discovery.
+///
+
+QString QXmppServerStats::jid() const
+{
+ return d->jid;
+}
+
+/// Sets the JID from which statistics are served using Service Discovery.
+///
+/// \param jid
+
+void QXmppServerStats::setJid(const QString &jid)
+{
+ d->jid = jid;
+}
+
QStringList QXmppServerStats::discoveryItems() const
{
return QStringList() << d->jid;