DataEntry DataEntry::getDeepChildEntry(std::string tagNames) const { std::stringstream stream(tagNames); std::string tag; tinyxml2::XMLHandle handleXml(tag_); while (stream >> tag) { handleXml = handleXml.FirstChildElement(tag.c_str()); } return DataEntry(xml_, handleXml); }
void URLShortener::httpFinished(int i,bool error) { QBuffer *buff; // reqLock.lock(); // QMessageBox::information (0,"assdf",QString::number(i)); if (myReq.contains(i)) { buff=myReq.take(i); if (!error) { QDomDocument *doc = new QDomDocument(); doc->setContent(buff->data()); handleXml(doc); delete doc; } buff->deleteLater(); } // reqLock.unlock(); }
void URLShortener::handleHttpResponse(QString data,QUrl,bool,int) { QDomDocument *doc = new QDomDocument(); doc->setContent(data); handleXml(doc); delete doc; }