From 46f3831fd238b4c1fb10d44e4531d9e59d574c97 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sun, 22 Jan 2023 18:06:09 +0100 Subject: Use QXmppError in all IQ results instead of StanzaError This allows us to report different error types with more information and makes it possible to distinguish stanza errors and errors generated locally. Part of #501. --- src/client/QXmppEntityTimeManager.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/client/QXmppEntityTimeManager.h') diff --git a/src/client/QXmppEntityTimeManager.h b/src/client/QXmppEntityTimeManager.h index 81c6fb45..3b090feb 100644 --- a/src/client/QXmppEntityTimeManager.h +++ b/src/client/QXmppEntityTimeManager.h @@ -1,4 +1,5 @@ // SPDX-FileCopyrightText: 2010 Manjeet Dahiya +// SPDX-FileCopyrightText: 2022 Linus Jahn // // SPDX-License-Identifier: LGPL-2.1-or-later @@ -12,6 +13,7 @@ template class QXmppTask; class QXmppEntityTimeIq; +class QXmppError; /// /// \brief The QXmppEntityTimeManager class provided the functionality to get @@ -26,7 +28,7 @@ class QXMPP_EXPORT QXmppEntityTimeManager : public QXmppClientExtension public: QString requestTime(const QString &jid); - using EntityTimeResult = std::variant; + using EntityTimeResult = std::variant; QXmppTask requestEntityTime(const QString &jid); /// \cond -- cgit v1.2.3