From 7e936d200db4855ceaf9eabc1e84c3574a12ec98 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Tue, 8 Sep 2020 20:53:39 +0200 Subject: QXmppClient: Add send() function with QFuture --- src/client/QXmppClient.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/client/QXmppClient.h') diff --git a/src/client/QXmppClient.h b/src/client/QXmppClient.h index 2625e606..56da95ee 100644 --- a/src/client/QXmppClient.h +++ b/src/client/QXmppClient.h @@ -28,10 +28,15 @@ #include "QXmppLogger.h" #include "QXmppPresence.h" +#include + #include #include #include +template +class QFuture; + class QXmppClientExtension; class QXmppClientPrivate; class QXmppPresence; @@ -214,6 +219,8 @@ public: State state() const; QXmppStanza::Error::Condition xmppStreamError(); + QFuture send(const QXmppStanza &); + #if QXMPP_DEPRECATED_SINCE(1, 1) QT_DEPRECATED_X("Use QXmppClient::findExtension() instead") QXmppRosterManager &rosterManager(); -- cgit v1.2.3