Lines Matching refs:element
65 XmppLoginTask::IncomingStanza(const XmlElement *element, bool isStart) { in IncomingStanza() argument
66 pelStanza_ = element; in IncomingStanza()
85 const XmlElement * element = NULL; in Advance() local
109 if (NULL == (element = NextStanza())) in Advance()
112 if (!isStart_ || !HandleStartStream(element)) in Advance()
120 if (NULL == (element = NextStanza())) in Advance()
123 if (!HandleFeatures(element)) in Advance()
159 if (NULL == (element = NextStanza())) in Advance()
161 if (element->Name() != QN_TLS_PROCEED) in Advance()
226 if (NULL == (element = NextStanza())) in Advance()
228 if (element->Name().Namespace() != NS_SASL) in Advance()
230 if (element->Name() == QN_SASL_CHALLENGE) { in Advance()
231 XmlElement * response = sasl_mech_->HandleSaslChallenge(element); in Advance()
240 if (element->Name() != QN_SASL_SUCCESS) { in Advance()
273 if (NULL == (element = NextStanza())) in Advance()
276 if (element->Name() != QN_IQ || element->Attr(QN_ID) != iqId_ || in Advance()
277 element->Attr(QN_TYPE) == "get" || element->Attr(QN_TYPE) == "set") in Advance()
280 if (element->Attr(QN_TYPE) != "result" || element->FirstElement() == NULL || in Advance()
281 element->FirstElement()->Name() != QN_BIND_BIND) in Advance()
284 fullJid_ = Jid(element->FirstElement()->TextNamed(QN_BIND_JID)); in Advance()
303 if (NULL == (element = NextStanza())) in Advance()
305 if (element->Name() != QN_IQ || element->Attr(QN_ID) != iqId_ || in Advance()
306 element->Attr(QN_TYPE) == "get" || element->Attr(QN_TYPE) == "set") in Advance()
309 if (element->Attr(QN_TYPE) != "result") in Advance()
325 XmppLoginTask::HandleStartStream(const XmlElement *element) { in HandleStartStream() argument
327 if (element->Name() != QN_STREAM_STREAM) in HandleStartStream()
330 if (element->Attr(QN_XMLNS) != "jabber:client") in HandleStartStream()
333 if (element->Attr(QN_VERSION) != "1.0") in HandleStartStream()
336 if (!element->HasAttr(QN_ID)) in HandleStartStream()
339 streamId_ = element->Attr(QN_ID); in HandleStartStream()
345 XmppLoginTask::HandleFeatures(const XmlElement *element) { in HandleFeatures() argument
346 if (element->Name() != QN_STREAM_FEATURES) in HandleFeatures()
349 pelFeatures_.reset(new XmlElement(*element)); in HandleFeatures()
366 XmppLoginTask::OutgoingStanza(const XmlElement * element) { in OutgoingStanza() argument
367 XmlElement * pelCopy = new XmlElement(*element); in OutgoingStanza()