diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-31 10:27:19 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-31 10:27:19 +0000 |
| commit | c815f3a9d7b0a25edbc3f054cd1d5dd1df61ef6a (patch) | |
| tree | b97e253c6a1ff0ccfd7e33821c0c75116b522595 /src/server/mod_stats.cpp | |
| parent | 631fb057c9379b79f425dca138dcc35798b9a855 (diff) | |
| download | qxmpp-c815f3a9d7b0a25edbc3f054cd1d5dd1df61ef6a.tar.gz | |
make the JID on which mod_stats serves statistics configurable
Diffstat (limited to 'src/server/mod_stats.cpp')
| -rw-r--r-- | src/server/mod_stats.cpp | 17 |
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; |
