diff options
| author | Linus Jahn <lnj@kaidan.im> | 2022-10-16 21:54:40 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-10-17 16:26:03 +0200 |
| commit | c85c9c460907e26604554f1b2c6f54734bc8f303 (patch) | |
| tree | 917fd8553b2606c141cc4ac0ba377e5ecf9eb242 /src/base/QXmppVersionIq.cpp | |
| parent | 556442eab0bdbd5b30a5fad3112d88c4b124ff5e (diff) | |
| download | qxmpp-c85c9c460907e26604554f1b2c6f54734bc8f303.tar.gz | |
Add checkIqType() function to IQs
This is required so they can be parsed just be specifying the type.
Diffstat (limited to 'src/base/QXmppVersionIq.cpp')
| -rw-r--r-- | src/base/QXmppVersionIq.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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")); |
