diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-04-20 15:21:56 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-04-20 15:21:56 +0000 |
| commit | 7de79b51bb991b6d237522d3d30c73127dedbfa6 (patch) | |
| tree | 8f4c38bba237fb02be1f35ad9208fef06d4e38e3 /src/base/QXmppEntityTimeIq.cpp | |
| parent | d648473c16ac3fe5ce4f4b79c188b9bade381425 (diff) | |
| download | qxmpp-7de79b51bb991b6d237522d3d30c73127dedbfa6.tar.gz | |
encapsulate QXmppUtils methods in a QXmppUtils class
Diffstat (limited to 'src/base/QXmppEntityTimeIq.cpp')
| -rw-r--r-- | src/base/QXmppEntityTimeIq.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/base/QXmppEntityTimeIq.cpp b/src/base/QXmppEntityTimeIq.cpp index 5e41e39f..fcb6a99c 100644 --- a/src/base/QXmppEntityTimeIq.cpp +++ b/src/base/QXmppEntityTimeIq.cpp @@ -72,8 +72,8 @@ bool QXmppEntityTimeIq::isEntityTimeIq(const QDomElement &element) void QXmppEntityTimeIq::parseElementFromChild(const QDomElement &element) { QDomElement timeElement = element.firstChildElement("time"); - m_tzo = timezoneOffsetFromString(timeElement.firstChildElement("tzo").text()); - m_utc = datetimeFromString(timeElement.firstChildElement("utc").text()); + m_tzo = QXmppUtils::timezoneOffsetFromString(timeElement.firstChildElement("tzo").text()); + m_utc = QXmppUtils::datetimeFromString(timeElement.firstChildElement("utc").text()); } void QXmppEntityTimeIq::toXmlElementFromChild(QXmlStreamWriter *writer) const @@ -83,8 +83,8 @@ void QXmppEntityTimeIq::toXmlElementFromChild(QXmlStreamWriter *writer) const if(m_utc.isValid()) { - helperToXmlAddTextElement(writer, "tzo", timezoneOffsetToString(m_tzo)); - helperToXmlAddTextElement(writer, "utc", datetimeToString(m_utc)); + helperToXmlAddTextElement(writer, "tzo", QXmppUtils::timezoneOffsetToString(m_tzo)); + helperToXmlAddTextElement(writer, "utc", QXmppUtils::datetimeToString(m_utc)); } writer->writeEndElement(); } |
