Lines Matching refs:QName
14 using buzz::QName;
50 DCHECK(element->Name() == QName(kP2PTransportNamespace, "candidate")); in ParseCandidate()
52 const std::string& name = element->Attr(QName(kEmptyNamespace, "name")); in ParseCandidate()
53 const std::string& address = element->Attr(QName(kEmptyNamespace, "address")); in ParseCandidate()
54 const std::string& port_str = element->Attr(QName(kEmptyNamespace, "port")); in ParseCandidate()
55 const std::string& type = element->Attr(QName(kEmptyNamespace, "type")); in ParseCandidate()
57 element->Attr(QName(kEmptyNamespace, "protocol")); in ParseCandidate()
59 element->Attr(QName(kEmptyNamespace, "username")); in ParseCandidate()
61 element->Attr(QName(kEmptyNamespace, "password")); in ParseCandidate()
63 element->Attr(QName(kEmptyNamespace, "preference")); in ParseCandidate()
65 element->Attr(QName(kEmptyNamespace, "generation")); in ParseCandidate()
93 new XmlElement(QName(kP2PTransportNamespace, "candidate")); in FormatCandidate()
94 result->SetAttr(QName(kEmptyNamespace, "name"), candidate.name); in FormatCandidate()
95 result->SetAttr(QName(kEmptyNamespace, "address"), in FormatCandidate()
97 result->SetAttr(QName(kEmptyNamespace, "port"), in FormatCandidate()
99 result->SetAttr(QName(kEmptyNamespace, "type"), candidate.candidate.type()); in FormatCandidate()
100 result->SetAttr(QName(kEmptyNamespace, "protocol"), in FormatCandidate()
102 result->SetAttr(QName(kEmptyNamespace, "username"), in FormatCandidate()
104 result->SetAttr(QName(kEmptyNamespace, "password"), in FormatCandidate()
106 result->SetAttr(QName(kEmptyNamespace, "preference"), in FormatCandidate()
108 result->SetAttr(QName(kEmptyNamespace, "generation"), in FormatCandidate()
127 return stanza->Name() == QName(kJabberNamespace, "iq") && in IsJingleMessage()
128 stanza->Attr(QName(std::string(), "type")) == "set" && in IsJingleMessage()
129 stanza->FirstNamed(QName(kJingleNamespace, "jingle")) != NULL; in IsJingleMessage()
163 stanza->FirstNamed(QName(kJingleNamespace, "jingle")); in ParseXml()
169 from = stanza->Attr(QName(kEmptyNamespace, "from")); in ParseXml()
170 to = stanza->Attr(QName(kEmptyNamespace, "to")); in ParseXml()
171 initiator = jingle_tag->Attr(QName(kEmptyNamespace, "initiator")); in ParseXml()
173 std::string action_str = jingle_tag->Attr(QName(kEmptyNamespace, "action")); in ParseXml()
183 sid = jingle_tag->Attr(QName(kEmptyNamespace, "sid")); in ParseXml()
203 jingle_tag->FirstNamed(QName(kJingleNamespace, "reason")); in ParseXml()
215 jingle_tag->FirstNamed(QName(kJingleNamespace, "content")); in ParseXml()
221 std::string content_name = content_tag->Attr(QName(kEmptyNamespace, "name")); in ParseXml()
230 QName(kChromotingXmlNamespace, "description")); in ParseXml()
245 QName(kP2PTransportNamespace, "transport")); in ParseXml()
247 QName qn_candidate(kP2PTransportNamespace, "candidate"); in ParseXml()
266 new XmlElement(QName("jabber:client", "iq"), true)); in ToXml()
269 root->AddAttr(QName(kEmptyNamespace, "to"), to); in ToXml()
271 root->AddAttr(QName(kEmptyNamespace, "from"), from); in ToXml()
272 root->SetAttr(QName(kEmptyNamespace, "type"), "set"); in ToXml()
275 new XmlElement(QName(kJingleNamespace, "jingle"), true); in ToXml()
277 jingle_tag->AddAttr(QName(kEmptyNamespace, "sid"), sid); in ToXml()
282 jingle_tag->AddAttr(QName(kEmptyNamespace, "action"), action_attr); in ToXml()
291 jingle_tag->AddAttr(QName(kEmptyNamespace, "initiator"), initiator); in ToXml()
294 XmlElement* reason_tag = new XmlElement(QName(kJingleNamespace, "reason")); in ToXml()
301 QName(kJingleNamespace, reason_string))); in ToXml()
306 new XmlElement(QName(kJingleNamespace, "content")); in ToXml()
309 content_tag->AddAttr(QName(kEmptyNamespace, "name"), in ToXml()
311 content_tag->AddAttr(QName(kEmptyNamespace, "creator"), "initiator"); in ToXml()
317 new XmlElement(QName(kP2PTransportNamespace, "transport"), true); in ToXml()
350 new XmlElement(QName(kJabberNamespace, "iq"), true)); in ToXml()
351 iq->SetAttr(QName(kEmptyNamespace, "to"), in ToXml()
352 request_stanza->Attr(QName(kEmptyNamespace, "from"))); in ToXml()
353 iq->SetAttr(QName(kEmptyNamespace, "id"), in ToXml()
354 request_stanza->Attr(QName(kEmptyNamespace, "id"))); in ToXml()
357 iq->SetAttr(QName(kEmptyNamespace, "type"), "result"); in ToXml()
363 iq->SetAttr(QName(kEmptyNamespace, "type"), "error"); in ToXml()
371 new buzz::XmlElement(QName(kJabberNamespace, "error")); in ToXml()
376 QName name; in ToXml()
380 name = QName(kJabberNamespace, "bad-request"); in ToXml()
384 name = QName(kJabberNamespace, "feature-bad-request"); in ToXml()
388 name = QName(kJabberNamespace, "item-not-found"); in ToXml()
393 name = QName(kJabberNamespace, "unexpected-request"); in ToXml()
397 name = QName(kJabberNamespace, "feature-not-implemented"); in ToXml()
406 error->SetAttr(QName(kEmptyNamespace, "type"), type); in ToXml()
412 new buzz::XmlElement(QName(kJabberNamespace, "undefined-condition"))); in ToXml()
420 new buzz::XmlElement(QName(kJabberNamespace, "text")); in ToXml()
421 text_elem->SetAttr(QName(kXmlNamespace, "lang"), "en"); in ToXml()