From faa8d73981eed8172410e7662fbf002d9fa35f04 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Wed, 3 Feb 2010 16:18:37 +0000 Subject: integrate XEP-0136 into QXmppClient --- source/QXmppClient.cpp | 9 +++++++++ source/QXmppClient.h | 2 ++ 2 files changed, 11 insertions(+) (limited to 'source') diff --git a/source/QXmppClient.cpp b/source/QXmppClient.cpp index 2666ea27..9794ea24 100644 --- a/source/QXmppClient.cpp +++ b/source/QXmppClient.cpp @@ -482,3 +482,12 @@ QXmppRemoteMethodResult QXmppClient::callRemoteMethod( const QString &jid, return method.call(); } + +/// Returns the reference to QXmppArchiveManager, implementation of XEP-0136. +/// http://xmpp.org/extensions/xep-0136.html +/// + +QXmppArchiveManager& QXmppClient::getArchiveManager() +{ + return m_stream->getArchiveManager(); +} diff --git a/source/QXmppClient.h b/source/QXmppClient.h index 02564250..52139fe9 100644 --- a/source/QXmppClient.h +++ b/source/QXmppClient.h @@ -60,6 +60,7 @@ class QXmppRpcInvokeIq; class QXmppRemoteMethod; class QXmppIbbTransferManager; class QXmppRemoteMethodResult; +class QXmppArchiveManager; class QXmppClient : public QObject { @@ -111,6 +112,7 @@ public: const QXmppPresence& getClientPresence() const; QXmppVCardManager& getVCardManager(); QXmppIbbTransferManager* getIbbTransferManager() const; + QXmppArchiveManager& getArchiveManager(); signals: -- cgit v1.2.3