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/QXmppEntityTimeIq.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/base/QXmppEntityTimeIq.cpp') diff --git a/src/base/QXmppEntityTimeIq.cpp b/src/base/QXmppEntityTimeIq.cpp index 6e4e4e27..e51fb1b5 100644 --- a/src/base/QXmppEntityTimeIq.cpp +++ b/src/base/QXmppEntityTimeIq.cpp @@ -55,6 +55,11 @@ bool QXmppEntityTimeIq::isEntityTimeIq(const QDomElement &element) } /// \cond +bool QXmppEntityTimeIq::checkIqType(const QString &tagName, const QString &xmlns) +{ + return tagName == QStringLiteral("time") && xmlns == ns_entity_time; +} + void QXmppEntityTimeIq::parseElementFromChild(const QDomElement &element) { QDomElement timeElement = element.firstChildElement("time"); -- cgit v1.2.3