58 Out() <<
"------------------------------------------------------" << endl;
60 Out() <<
"------------------------------------------------------" << endl;
63 const size_t p1 =
fRdfData.find(
"\r\n\r\n");
66 Warn(
"HTTP header not found.");
72 fRdfData.insert(0,
"<?xml version=\"1.0\"?>\n");
75 if (!doc.setContent(QString(
fRdfData.c_str()),
false))
77 Warn(
"Parsing of html failed.");
83 Out() <<
"Parsed:\n-------\n" << doc.toString().toStdString() << endl;
85 const QDomNodeList imageElems = doc.elementsByTagName(
"span");
87 for (
unsigned int i=0;
i<imageElems.length();
i++)
89 const QDomElement e = imageElems.item(
i).toElement();
91 const QDomNamedNodeMap att = e.attributes();
void Print(std::ostream &out, const char *title, const bool &val, const char *t="enabled", const char *f="disabled")
Adds some functionality to boost::posix_time::ptime for our needs.
bool Set(bool &rc, const QString &value)
virtual void Update(const Power::Status &)