QXmpp Version: 1.5.6
Loading...
Searching...
No Matches
QXmppEntityTimeIq.h
1// SPDX-FileCopyrightText: 2010 Manjeet Dahiya <manjeetdahiya@gmail.com>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPENTITYTIMEIQ_H
6#define QXMPPENTITYTIMEIQ_H
7
8#include "QXmppIq.h"
9
10#include <QDateTime>
11
18class QXMPP_EXPORT QXmppEntityTimeIq : public QXmppIq
19{
20public:
21 int tzo() const;
22 void setTzo(int tzo);
23
24 QDateTime utc() const;
25 void setUtc(const QDateTime &utc);
26
27 static bool isEntityTimeIq(const QDomElement &element);
29 static bool checkIqType(const QString &tagName, const QString &xmlns);
30
31protected:
32 void parseElementFromChild(const QDomElement &element) override;
33 void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
35
36private:
37 int m_tzo;
38 QDateTime m_utc;
39};
40
41#endif // QXMPPENTITYTIMEIQ_H
QXmppEntityTimeIq represents an entity time request/response as defined in XEP-0202: Entity Time.
Definition QXmppEntityTimeIq.h:19
The QXmppIq class is the base class for all IQs.
Definition QXmppIq.h:23