add device types

This commit is contained in:
Sean C. Rhea
2008-05-27 03:53:22 +00:00
parent 61161a7b5d
commit ec38e8ca1d
5 changed files with 13 additions and 3 deletions

View File

@@ -50,6 +50,9 @@ RideFile::writeAsXml(QFile &file, QString &err)
QDomElement xstart = xroot.createElement("start").toElement();
xride.appendChild(xstart);
xstart.setAttribute("date", startTime_.toString("yyyy/MM/dd hh:mm:ss"));
QDomElement xdevtype = xroot.createElement("device_type").toElement();
xride.appendChild(xdevtype);
xdevtype.setAttribute("name", deviceType_);
QDomElement xrecint = xroot.createElement("sampling_period").toElement();
xride.appendChild(xrecint);
xrecint.setAttribute("secs", QString("%1").arg(recIntSecs_, 0, 'f', 3));