| 71 | // ============================================================================= |
| 72 | |
| 73 | void SatPI::doAddToXML(std::string &xml) const { |
| 74 | xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"; |
| 75 | ADD_XML_BEGIN_ELEMENT(xml, "data"); |
| 76 | |
| 77 | // application data |
| 78 | ADD_XML_BEGIN_ELEMENT(xml, "appdata"); |
| 79 | ADD_XML_ELEMENT(xml, "uptime", std::time(nullptr) - _properties.getApplicationStartTime()); |
| 80 | ADD_XML_ELEMENT(xml, "appversion", _properties.getSoftwareVersion()); |
| 81 | ADD_XML_ELEMENT(xml, "uuid", _properties.getUUID()); |
| 82 | ADD_XML_END_ELEMENT(xml, "appdata"); |
| 83 | |
| 84 | ADD_XML_ELEMENT(xml, "streams", _streamManager.toXML()); |
| 85 | ADD_XML_ELEMENT(xml, "configdata", _properties.toXML()); |
| 86 | ADD_XML_ELEMENT(xml, "ssdp", _ssdpServer.toXML()); |
| 87 | ADD_XML_END_ELEMENT(xml, "data"); |
| 88 | } |
| 89 | |
| 90 | void SatPI::doFromXML(const std::string &xml) { |
| 91 | std::string element; |
nothing calls this directly
no test coverage detected