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/QXmppVCardIq.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/base/QXmppVCardIq.cpp') diff --git a/src/base/QXmppVCardIq.cpp b/src/base/QXmppVCardIq.cpp index fa8e7444..59023ebb 100644 --- a/src/base/QXmppVCardIq.cpp +++ b/src/base/QXmppVCardIq.cpp @@ -984,6 +984,11 @@ bool QXmppVCardIq::isVCard(const QDomElement &nodeRecv) return nodeRecv.firstChildElement(QStringLiteral("vCard")).namespaceURI() == ns_vcard; } +bool QXmppVCardIq::checkIqType(const QString &tagName, const QString &xmlNamespace) +{ + return tagName == "vCard" && xmlNamespace == ns_vcard; +} + void QXmppVCardIq::parseElementFromChild(const QDomElement &nodeRecv) { // vCard -- cgit v1.2.3