aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppEntityTimeIq.cpp
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2022-10-16 21:54:40 +0200
committerLinus Jahn <lnj@kaidan.im>2022-10-17 16:26:03 +0200
commitc85c9c460907e26604554f1b2c6f54734bc8f303 (patch)
tree917fd8553b2606c141cc4ac0ba377e5ecf9eb242 /src/base/QXmppEntityTimeIq.cpp
parent556442eab0bdbd5b30a5fad3112d88c4b124ff5e (diff)
downloadqxmpp-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/QXmppEntityTimeIq.cpp')
-rw-r--r--src/base/QXmppEntityTimeIq.cpp5
1 files changed, 5 insertions, 0 deletions
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");