Home
last modified time | relevance | path

Searched refs:XmlElement (Results 1 – 25 of 84) sorted by relevance

1234

/external/webrtc/webrtc/libjingle/xmpp/
Dpubsubtasks.cc26 bool IsPubSubEventItemsElem(const XmlElement* stanza, in IsPubSubEventItemsElem()
32 const XmlElement* event_elem = stanza->FirstNamed(QN_PUBSUB_EVENT); in IsPubSubEventItemsElem()
37 const XmlElement* items_elem = event_elem->FirstNamed(QN_PUBSUB_EVENT_ITEMS); in IsPubSubEventItemsElem()
48 XmlElement* CreatePubSubItemsElem(const std::string& node) { in CreatePubSubItemsElem()
49 XmlElement* items_elem = new XmlElement(QN_PUBSUB_ITEMS, false); in CreatePubSubItemsElem()
51 XmlElement* pubsub_elem = new XmlElement(QN_PUBSUB, false); in CreatePubSubItemsElem()
58 XmlElement* CreatePubSubPublishItemElem( in CreatePubSubPublishItemElem()
61 const std::vector<XmlElement*>& children) { in CreatePubSubPublishItemElem()
62 XmlElement* pubsub_elem = new XmlElement(QN_PUBSUB, true); in CreatePubSubPublishItemElem()
63 XmlElement* publish_elem = new XmlElement(QN_PUBSUB_PUBLISH, false); in CreatePubSubPublishItemElem()
[all …]
Dmucroomlookuptask.cc57 XmlElement* query) in MucRoomLookupTask()
61 XmlElement* MucRoomLookupTask::MakeNameQuery( in MakeNameQuery()
63 XmlElement* name_elem = new XmlElement(QN_SEARCH_ROOM_NAME, false); in MakeNameQuery()
66 XmlElement* domain_elem = new XmlElement(QN_SEARCH_ROOM_DOMAIN, false); in MakeNameQuery()
69 XmlElement* query = new XmlElement(QN_SEARCH_QUERY, true); in MakeNameQuery()
75 XmlElement* MucRoomLookupTask::MakeJidQuery(const Jid& room_jid) { in MakeJidQuery()
76 XmlElement* jid_elem = new XmlElement(QN_SEARCH_ROOM_JID); in MakeJidQuery()
79 XmlElement* query = new XmlElement(QN_SEARCH_QUERY); in MakeJidQuery()
84 XmlElement* MucRoomLookupTask::MakeExternalIdQuery( in MakeExternalIdQuery()
86 XmlElement* external_id_elem = new XmlElement(QN_SEARCH_EXTERNAL_ID); in MakeExternalIdQuery()
[all …]
Dhangoutpubsubclient.h31 class XmlElement; variable
67 sigslot::signal2<const std::string&, const XmlElement*> SignalRequestError;
101 const XmlElement*> SignalPublishAudioMuteError;
103 const XmlElement*> SignalPublishVideoMuteError;
105 const XmlElement*> SignalPublishVideoPauseError;
107 const XmlElement*> SignalPublishPresenterError;
109 const XmlElement*> SignalPublishRecordingError;
111 const XmlElement*> SignalPublishMediaBlockError;
115 const XmlElement*> SignalRemoteMuteError;
119 const XmlElement*> SignalMediaBlockError;
[all …]
Dhangoutpubsubclient.cc34 virtual XmlElement* Write(const QName& state_name, const bool& state) { in Write()
39 return new XmlElement(state_name, true); in Write()
42 virtual void Parse(const XmlElement* state_elem, bool *state_out) { in Parse()
61 XmlElement* presenter_elem = new XmlElement(QN_PRESENTER_PRESENTER, true); in Publish()
64 XmlElement* presentation_item_elem = in Publish()
65 new XmlElement(QN_PRESENTER_PRESENTATION_ITEM, false); in Publish()
73 std::vector<XmlElement*> children; in Publish()
83 const XmlElement* presenter_elem = in ParseStateItem()
85 const XmlElement* presentation_item_elem = in ParseStateItem()
190 PubSubClient* client, const XmlElement* stanza) { in OnPresenterRequestError()
[all …]
Dmucroomconfigtask.cc31 XmlElement* MucRoomConfigTask::MakeRequest( in MakeRequest()
34 buzz::XmlElement* owner_query = new in MakeRequest()
35 buzz::XmlElement(buzz::QN_MUC_OWNER_QUERY, true); in MakeRequest()
37 buzz::XmlElement* x_form = new buzz::XmlElement(buzz::QN_XDATA_X, true); in MakeRequest()
40 buzz::XmlElement* roomname_field = in MakeRequest()
41 new buzz::XmlElement(buzz::QN_XDATA_FIELD, false); in MakeRequest()
45 buzz::XmlElement* roomname_value = in MakeRequest()
46 new buzz::XmlElement(buzz::QN_XDATA_VALUE, false); in MakeRequest()
52 buzz::XmlElement* features_field = in MakeRequest()
53 new buzz::XmlElement(buzz::QN_XDATA_FIELD, false); in MakeRequest()
[all …]
Dxmpptask.cc49 XmppReturnStatus XmppTask::SendStanza(const XmlElement* stanza) { in SendStanza()
55 XmppReturnStatus XmppTask::SendStanzaError(const XmlElement* element_original, in SendStanzaError()
72 void XmppTask::QueueStanza(const XmlElement* stanza) { in QueueStanza()
78 stanza_queue_.push_back(new XmlElement(*stanza)); in QueueStanza()
82 const XmlElement* XmppTask::NextStanza() { in NextStanza()
83 XmlElement* result = NULL; in NextStanza()
92 XmlElement* XmppTask::MakeIq(const std::string& type, in MakeIq()
95 XmlElement* result = new XmlElement(QN_IQ); in MakeIq()
105 XmlElement* XmppTask::MakeIqResult(const XmlElement * query) { in MakeIqResult()
106 XmlElement* result = new XmlElement(QN_IQ); in MakeIqResult()
[all …]
Dxmpplogintask.cc55 pvecQueuedStanzas_(new std::vector<XmlElement *>()), in XmppLoginTask()
65 XmppLoginTask::IncomingStanza(const XmlElement *element, bool isStart) { in IncomingStanza()
73 const XmlElement *
75 const XmlElement * result = pelStanza_; in NextStanza()
85 const XmlElement * element = NULL; in Advance()
148 const XmlElement * pelTls = GetFeature(QN_TLS_STARTTLS); in Advance()
152 XmlElement el(QN_TLS_STARTTLS, true); in Advance()
176 const XmlElement * pelSaslAuth = GetFeature(QN_SASL_MECHANISMS); in Advance()
183 for (const XmlElement * pelMech = in Advance()
204 XmlElement * auth = sasl_mech_->StartSaslAuth(); in Advance()
[all …]
Dxmpptask.h62 virtual XmppReturnStatus SendStanza(const XmlElement* stanza) = 0;
63 virtual XmppReturnStatus SendStanzaError(const XmlElement* original_stanza,
126 virtual bool HandleStanza(const XmlElement* stanza) { return false; } in HandleStanza()
129 XmppReturnStatus SendStanza(const XmlElement* stanza);
131 XmppReturnStatus SendStanzaError(const XmlElement* element_original,
138 virtual void QueueStanza(const XmlElement* stanza);
139 const XmlElement* NextStanza();
141 bool MatchStanzaFrom(const XmlElement* stanza, const Jid& match_jid);
143 bool MatchResponseIq(const XmlElement* stanza, const Jid& to,
146 static bool MatchRequestIq(const XmlElement* stanza, const std::string& type,
[all …]
Dpubsub_task.cc32 bool PubsubTask::HandleStanza(const buzz::XmlElement* stanza) { in HandleStanza()
36 const buzz::XmlElement* pubsub_event_item = in HandleStanza()
45 const buzz::XmlElement* pubsub_item = stanza->FirstNamed(QN_PUBSUB); in HandleStanza()
56 const buzz::XmlElement* stanza = NextStanza(); in ProcessResponse()
85 rtc::scoped_ptr<buzz::XmlElement> get_iq_request( in SubscribeToNode()
90 buzz::XmlElement* pubsub_element = new buzz::XmlElement(QN_PUBSUB, true); in SubscribeToNode()
91 buzz::XmlElement* items_element = new buzz::XmlElement(QN_PUBSUB_ITEMS, true); in SubscribeToNode()
108 void PubsubTask::OnPubsubError(const buzz::XmlElement* error_stanza) { in OnPubsubError()
135 const buzz::XmlElement* pubsub_event) { in HandlePubsubEventMessage()
140 const buzz::XmlElement* child_element = child->AsElement(); in HandlePubsubEventMessage()
[all …]
Dpubsubclient.h29 class XmlElement; variable
57 const XmlElement*> SignalRequestError;
61 const XmlElement*,
62 const XmlElement*> SignalPublishError;
66 const XmlElement*> SignalPublishResult;
70 const XmlElement*> SignalRetractError;
77 XmlElement* payload,
81 const std::vector<XmlElement*>& children,
88 const std::string GetPublisherNickFromPubSubItem(const XmlElement* item_elem);
92 const XmlElement* stanza);
[all …]
Dpresenceouttask.cc26 XmlElement * presence = TranslateStatus(s); in Send()
37 XmlElement * presence = TranslateStatus(s); in SendDirected()
48 XmlElement * presence = new XmlElement(QN_PRESENCE); in SendProbe()
59 const XmlElement * stanza = NextStanza(); in ProcessStart()
69 XmlElement *
71 XmlElement * result = new XmlElement(QN_PRESENCE); in TranslateStatus()
78 result->AddElement(new XmlElement(QN_SHOW)); in TranslateStatus()
95 result->AddElement(new XmlElement(QN_STATUS)); in TranslateStatus()
99 result->AddElement(new XmlElement(QN_NICKNAME)); in TranslateStatus()
106 result->AddElement(new XmlElement(QN_PRIORITY)); in TranslateStatus()
[all …]
Dxmpplogintask.h24 class XmlElement; variable
38 void IncomingStanza(const XmlElement * element, bool isStart);
39 void OutgoingStanza(const XmlElement *element);
58 const XmlElement * NextStanza();
60 bool HandleStartStream(const XmlElement * element);
61 bool HandleFeatures(const XmlElement * element);
62 const XmlElement * GetFeature(const QName & name);
70 const XmlElement * pelStanza_;
73 rtc::scoped_ptr<XmlElement> pelFeatures_;
76 rtc::scoped_ptr<std::vector<XmlElement *> > pvecQueuedStanzas_;
Dchatroommoduleimpl.cc58 virtual XmppReturnStatus SendMessage(const XmlElement& message);
61 …virtual void IqResponse(XmppIqCookie cookie, const XmlElement * pelStanza) {RTC_UNUSED2(cookie, pe… in IqResponse()
62 virtual bool HandleStanza(const XmlElement *);
67 XmppReturnStatus ServerChangeMyPresence(const XmlElement& presence);
69 …XmppReturnStatus ChangePresence(XmppChatroomState new_state, const XmlElement* presence, bool isSe…
70 XmppReturnStatus ServerChangedOtherPresence(const XmlElement& presence_element);
71 XmppChatroomEnteredStatus GetEnterFailureFromXml(const XmlElement* presence);
72 XmppChatroomExitedStatus GetExitFailureFromXml(const XmlElement* presence);
76 void FireEnteredStatus(const XmlElement* presence,
79 void FireMessageReceived(const XmlElement& message);
[all …]
Dpubsubclient.cc37 const std::string& itemid, XmlElement* payload, std::string* task_id_out) { in PublishItem()
38 std::vector<XmlElement*> children; in PublishItem()
44 const std::string& itemid, const std::vector<XmlElement*>& children, in PublishItem()
74 const XmlElement* stanza) { in OnRequestError()
83 const XmlElement* GetItemFromStanza(const XmlElement* stanza) { in GetItemFromStanza()
85 const XmlElement* pubsub = stanza->FirstNamed(QN_PUBSUB); in GetItemFromStanza()
87 const XmlElement* publish = pubsub->FirstNamed(QN_PUBSUB_PUBLISH); in GetItemFromStanza()
97 const XmlElement* item = GetItemFromStanza(task->stanza()); in OnPublishResult()
102 const XmlElement* error_stanza) { in OnPublishError()
105 const XmlElement* item = GetItemFromStanza(publish_task->stanza()); in OnPublishError()
[all …]
Drostermoduleimpl.h73 virtual const XmlElement* raw_xml() const;
77 virtual XmppReturnStatus set_raw_xml(const XmlElement * xml);
89 rtc::scoped_ptr<XmlElement> raw_xml_;
130 virtual const XmlElement* raw_xml() const;
134 virtual XmppReturnStatus set_raw_xml(const XmlElement * xml);
140 void SetXmlFromWire(const XmlElement * xml);
144 XmlElement** element,
153 XmlElement * group_returned_;
154 rtc::scoped_ptr<XmlElement> raw_xml_;
248 virtual void IqResponse(XmppIqCookie cookie, const XmlElement * stanza);
[all …]
Drostermoduleimpl.cc190 raw_xml_->AddElement(new XmlElement(QN_SHOW)); in set_presence_show()
225 raw_xml_->AddElement(new XmlElement(QN_PRIORITY)); in set_priority()
238 XmlElement* status_element; in status()
239 XmlElement* element; in status()
267 raw_xml_->AddElement(new XmlElement(QN_STATUS)); in set_status()
279 XmlElement* con = raw_xml_->FirstNamed(QN_GOOGLE_PSTN_CONFERENCE_STATUS); in connection_status()
300 XmlElement* muc_user_x = raw_xml_->FirstNamed(QN_MUC_USER_X); in google_user_id()
302 XmlElement* muc_user_item = muc_user_x->FirstNamed(QN_MUC_USER_ITEM); in google_user_id()
316 XmlElement* nickname = raw_xml_->FirstNamed(QN_NICKNAME); in nickname()
324 const XmlElement*
[all …]
Djingleinfotask.cc27 rtc::scoped_ptr<XmlElement> get( in ProcessStart()
29 get->AddElement(new XmlElement(QN_JINGLE_INFO_QUERY, true)); in ProcessStart()
42 virtual bool HandleStanza(const XmlElement * stanza) { in HandleStanza()
69 JingleInfoTask::HandleStanza(const XmlElement * stanza) { in HandleStanza()
89 const XmlElement * stanza = NextStanza(); in ProcessStart()
92 const XmlElement * query = stanza->FirstNamed(QN_JINGLE_INFO_QUERY); in ProcessStart()
95 const XmlElement *stun = query->FirstNamed(QN_JINGLE_INFO_STUN); in ProcessStart()
97 for (const XmlElement *server = stun->FirstNamed(QN_JINGLE_INFO_SERVER); in ProcessStart()
107 const XmlElement *relay = query->FirstNamed(QN_JINGLE_INFO_RELAY); in ProcessStart()
110 for (const XmlElement *server = relay->FirstNamed(QN_JINGLE_INFO_SERVER); in ProcessStart()
Dpubsubclient_unittest.cc46 const buzz::XmlElement* stanza) { in OnRequestError()
52 const buzz::XmlElement* item) { in OnPublishResult()
58 const buzz::XmlElement* item, in OnPublishError()
59 const buzz::XmlElement* stanza) { in OnPublishError()
71 const buzz::XmlElement* stanza) { in OnRetractError()
144 xmpp_client->HandleStanza(buzz::XmlElement::ForStr(result_iq)); in TEST_F()
167 xmpp_client->HandleStanza(buzz::XmlElement::ForStr(items_message)); in TEST_F()
188 xmpp_client->HandleStanza(buzz::XmlElement::ForStr(result_iq)); in TEST_F()
193 buzz::XmlElement* payload = in TEST_F()
194 new buzz::XmlElement(buzz::QName(buzz::NS_PUBSUB, "value")); in TEST_F()
[all …]
Dsaslmechanism.cc20 XmlElement *
22 return new XmlElement(QN_SASL_AUTH, true); in StartSaslAuth()
25 XmlElement *
26 SaslMechanism::HandleSaslChallenge(const XmlElement * challenge) { in HandleSaslChallenge()
27 return new XmlElement(QN_SASL_ABORT, true); in HandleSaslChallenge()
31 SaslMechanism::HandleSaslSuccess(const XmlElement * success) { in HandleSaslSuccess()
35 SaslMechanism::HandleSaslFailure(const XmlElement * failure) { in HandleSaslFailure()
Dmucroomdiscoverytask.cc21 new buzz::XmlElement(buzz::QN_DISCO_INFO_QUERY)) { in MucRoomDiscoveryTask()
24 void MucRoomDiscoveryTask::HandleResult(const XmlElement* stanza) { in HandleResult()
25 const XmlElement* query = stanza->FirstNamed(QN_DISCO_INFO_QUERY); in HandleResult()
33 const XmlElement* identity = query->FirstNamed(QN_DISCO_IDENTITY); in HandleResult()
42 const XmlElement* conversation = in HandleResult()
49 for (const XmlElement* feature = query->FirstNamed(QN_DISCO_FEATURE); in HandleResult()
54 const XmlElement* data_x = query->FirstNamed(QN_XDATA_X); in HandleResult()
56 for (const XmlElement* field = data_x->FirstNamed(QN_XDATA_FIELD); in HandleResult()
Dpresencereceivetask.cc32 const XmlElement * stanza = NextStanza(); in ProcessStart()
43 bool PresenceReceiveTask::HandleStanza(const XmlElement * stanza) { in HandleStanza()
56 const XmlElement* stanza) { in HandlePresence()
67 const XmlElement* stanza, in DecodeStatus()
74 const XmlElement * status_elem = stanza->FirstNamed(QN_STATUS); in DecodeStatus()
91 const XmlElement * priority = stanza->FirstNamed(QN_PRIORITY); in DecodeStatus()
99 const XmlElement * show = stanza->FirstNamed(QN_SHOW); in DecodeStatus()
114 const XmlElement * caps = stanza->FirstNamed(QN_CAPS_C); in DecodeStatus()
125 const XmlElement* delay = stanza->FirstNamed(kQnDelayX); in DecodeStatus()
134 const XmlElement* nick = stanza->FirstNamed(QN_NICKNAME); in DecodeStatus()
/external/webrtc/webrtc/libjingle/xmllite/
Dxmlelement.h24 class XmlElement; variable
34 XmlElement* AsElement() { return AsElementImpl(); } in AsElement()
35 const XmlElement* AsElement() const { return AsElementImpl(); } in AsElement()
47 virtual XmlElement* AsElementImpl() const = 0;
54 friend class XmlElement;
84 virtual XmlElement* AsElementImpl() const;
98 friend class XmlElement;
116 class XmlElement : public XmlChild {
118 explicit XmlElement(const QName& name);
119 explicit XmlElement(const QName& name, bool useDefaultNs);
[all …]
Dxmlelement.cc34 XmlElement* XmlText::AsElementImpl() const { in AsElementImpl()
57 XmlElement::XmlElement(const QName& name) : in XmlElement() function in buzz::XmlElement
66 XmlElement::XmlElement(const XmlElement& elt) : in XmlElement() function in buzz::XmlElement
95 newChild = new XmlElement(*(pChild->AsElement())); in XmlElement()
105 XmlElement::XmlElement(const QName& name, bool useDefaultNs) : in XmlElement() function in buzz::XmlElement
114 bool XmlElement::IsTextImpl() const { in IsTextImpl()
118 XmlElement* XmlElement::AsElementImpl() const { in AsElementImpl()
119 return const_cast<XmlElement *>(this); in AsElementImpl()
122 XmlText* XmlElement::AsTextImpl() const { in AsTextImpl()
126 const std::string XmlElement::BodyText() const { in BodyText()
[all …]
Dxmlelement_unittest.cc22 using buzz::XmlElement;
30 XmlElement elt(QName("google:test", "first")); in TEST()
33 XmlElement elt2(QName("google:test", "first"), true); in TEST()
38 XmlElement elt(QName("google:test", "root"), true); in TEST()
39 elt.AddElement(new XmlElement(QName("google:test", "first"))); in TEST()
40 elt.AddElement(new XmlElement(QName("google:test", "nested")), 1); in TEST()
44 elt.AddElement(new XmlElement(QName("google:test", "nested2")), 1); in TEST()
45 elt.AddElement(new XmlElement(QName("google:test", "second"))); in TEST()
47 elt.AddElement(new XmlElement(QName("google:test", "nested3")), 1); in TEST()
64 XmlElement elt(QName("", "root")); in TEST()
[all …]
Dxmlbuilder.h27 class XmlElement; variable
35 static XmlElement * BuildElement(XmlParseContext * pctx,
48 XmlElement * CreateElement();
51 XmlElement * BuiltElement();
54 XmlElement * pelCurrent_;
55 rtc::scoped_ptr<XmlElement> pelRoot_;
56 rtc::scoped_ptr<std::vector<XmlElement*> > pvParents_;

1234