diff options
Diffstat (limited to 'src/base/QXmppEntityTimeIq.cpp')
| -rw-r--r-- | src/base/QXmppEntityTimeIq.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/base/QXmppEntityTimeIq.cpp b/src/base/QXmppEntityTimeIq.cpp index ce9e6d1b..7ba76000 100644 --- a/src/base/QXmppEntityTimeIq.cpp +++ b/src/base/QXmppEntityTimeIq.cpp @@ -28,47 +28,52 @@ #include <QDomElement> +/// /// Returns the timezone offset in seconds. /// - int QXmppEntityTimeIq::tzo() const { return m_tzo; } +/// /// Sets the timezone offset in seconds. /// /// \param tzo - +/// void QXmppEntityTimeIq::setTzo(int tzo) { m_tzo = tzo; } +/// /// Returns the date/time in Coordinated Universal Time (UTC). /// - QDateTime QXmppEntityTimeIq::utc() const { return m_utc; } +/// /// Sets the date/time in Coordinated Universal Time (UTC). /// /// \param utc - +/// void QXmppEntityTimeIq::setUtc(const QDateTime &utc) { m_utc = utc; } -/// \cond +/// +/// Returns true, if the element is a valid entity time IQ. +/// bool QXmppEntityTimeIq::isEntityTimeIq(const QDomElement &element) { QDomElement timeElement = element.firstChildElement("time"); return timeElement.namespaceURI() == ns_entity_time; } +/// \cond void QXmppEntityTimeIq::parseElementFromChild(const QDomElement &element) { QDomElement timeElement = element.firstChildElement("time"); |
