From 7de79b51bb991b6d237522d3d30c73127dedbfa6 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Fri, 20 Apr 2012 15:21:56 +0000 Subject: encapsulate QXmppUtils methods in a QXmppUtils class --- src/base/QXmppEntityTimeIq.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/base/QXmppEntityTimeIq.cpp') 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(); } -- cgit v1.2.3