From c85c9c460907e26604554f1b2c6f54734bc8f303 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sun, 16 Oct 2022 21:54:40 +0200 Subject: Add checkIqType() function to IQs This is required so they can be parsed just be specifying the type. --- src/base/QXmppVersionIq.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/base/QXmppVersionIq.cpp') diff --git a/src/base/QXmppVersionIq.cpp b/src/base/QXmppVersionIq.cpp index 039ba48a..a610bfc1 100644 --- a/src/base/QXmppVersionIq.cpp +++ b/src/base/QXmppVersionIq.cpp @@ -67,6 +67,11 @@ bool QXmppVersionIq::isVersionIq(const QDomElement &element) return queryElement.namespaceURI() == ns_version; } +bool QXmppVersionIq::checkIqType(const QString &tagName, const QString &xmlNamespace) +{ + return tagName == "query" && xmlNamespace == ns_version; +} + void QXmppVersionIq::parseElementFromChild(const QDomElement &element) { QDomElement queryElement = element.firstChildElement(QStringLiteral("query")); -- cgit v1.2.3