Searched refs:stanza (Results 1 - 25 of 49) sorted by relevance

12

/external/webrtc/webrtc/libjingle/xmpp/
H A Dreceivetask.cc16 bool ReceiveTask::HandleStanza(const XmlElement* stanza) { argument
17 if (WantsStanza(stanza)) {
18 QueueStanza(stanza);
26 const XmlElement* stanza = NextStanza(); local
27 if (stanza == NULL)
30 ReceiveStanza(stanza);
H A Dreceivetask.h19 // indicate that a stanza should be received and ReceiveStanza to
31 virtual bool HandleStanza(const XmlElement* stanza);
33 // Return true if the stanza should be received.
34 virtual bool WantsStanza(const XmlElement* stanza) = 0;
35 // Process the received stanza.
36 virtual void ReceiveStanza(const XmlElement* stanza) = 0;
H A Diqtask.cc37 bool IqTask::HandleStanza(const buzz::XmlElement* stanza) { argument
38 if (!MatchResponseIq(stanza, to_, task_id()))
41 if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_RESULT &&
42 stanza->Attr(buzz::QN_TYPE) != buzz::STR_ERROR) {
46 QueueStanza(stanza);
51 const buzz::XmlElement* stanza = NextStanza(); local
52 if (stanza == NULL)
55 bool success = (stanza->Attr(buzz::QN_TYPE) == buzz::STR_RESULT);
57 HandleResult(stanza);
59 SignalError(this, stanza
[all...]
H A Dpingtask.cc32 bool PingTask::HandleStanza(const buzz::XmlElement* stanza) { argument
33 if (!MatchResponseIq(stanza, Jid(STR_EMPTY), task_id())) {
37 if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_RESULT &&
38 stanza->Attr(buzz::QN_TYPE) != buzz::STR_ERROR) {
42 QueueStanza(stanza);
53 const buzz::XmlElement* stanza = NextStanza(); local
54 if (stanza != NULL) {
69 rtc::scoped_ptr<buzz::XmlElement> stanza(
71 stanza->AddElement(new buzz::XmlElement(QN_PING));
72 SendStanza(stanza
[all...]
H A Dpresencereceivetask.h41 virtual bool HandleStanza(const XmlElement * stanza);
46 void HandlePresence(const Jid& from, const XmlElement * stanza);
48 // Extracts presence information for the presence stanza sent form the
50 static void DecodeStatus(const Jid& from, const XmlElement * stanza,
H A Dpresencereceivetask.cc32 const XmlElement * stanza = NextStanza(); local
33 if (stanza == NULL) {
37 Jid from(stanza->Attr(QN_FROM));
38 HandlePresence(from, stanza);
43 bool PresenceReceiveTask::HandleStanza(const XmlElement * stanza) { argument
45 if (stanza->Name() != QN_PRESENCE) {
50 QueueStanza(stanza);
56 const XmlElement* stanza) {
57 if (stanza->Attr(QN_TYPE) == STR_ERROR) {
62 DecodeStatus(from, stanza,
55 HandlePresence(const Jid& from, const XmlElement* stanza) argument
66 DecodeStatus(const Jid& from, const XmlElement* stanza, PresenceStatus* presence_status) argument
[all...]
H A Dmucroomuniquehangoutidtask.cc22 // Construct a stanza to request a unique room id. eg:
37 void MucRoomUniqueHangoutIdTask::HandleResult(const XmlElement* stanza) { argument
39 const XmlElement* unique_elem = stanza->FirstNamed(QN_MUC_UNIQUE_QUERY);
42 SignalError(this, stanza);
H A Djingleinfotask.cc42 virtual bool HandleStanza(const XmlElement * stanza) { argument
43 if (!MatchResponseIq(stanza, Jid(), task_id()))
46 if (stanza->Attr(QN_TYPE) != STR_RESULT)
49 // Queue the stanza with the parent so these don't get handled out of order
51 parent->QueueStanza(stanza);
69 JingleInfoTask::HandleStanza(const XmlElement * stanza) { argument
70 if (!MatchRequestIq(stanza, "set", QN_JINGLE_INFO_QUERY))
74 Jid from(stanza->Attr(QN_FROM));
80 QueueStanza(stanza);
89 const XmlElement * stanza local
[all...]
H A Dfakexmppclient.h55 virtual XmppReturnStatus SendStanza(const XmlElement* stanza) { argument
56 sent_stanzas_.push_back(stanza);
86 // Takes ownership of stanza.
87 void HandleStanza(XmlElement* stanza) { argument
90 if ((*task)->HandleStanza(stanza)) {
91 delete stanza;
95 delete stanza;
H A Dxmpptask.cc49 XmppReturnStatus XmppTask::SendStanza(const XmlElement* stanza) { argument
52 return GetClient()->SendStanza(stanza);
72 void XmppTask::QueueStanza(const XmlElement* stanza) { argument
78 stanza_queue_.push_back(new XmlElement(*stanza));
115 bool XmppTask::MatchResponseIq(const XmlElement* stanza, argument
118 if (stanza->Name() != QN_IQ)
121 if (stanza->Attr(QN_ID) != id)
124 return MatchStanzaFrom(stanza, to);
127 bool XmppTask::MatchStanzaFrom(const XmlElement* stanza, argument
129 Jid from(stanza
143 MatchRequestIq(const XmlElement* stanza, const std::string& type, const QName& qn) argument
[all...]
H A Dpubsub_task.cc32 bool PubsubTask::HandleStanza(const buzz::XmlElement* stanza) { argument
33 const buzz::QName& stanza_name(stanza->Name());
35 if (MatchStanzaFrom(stanza, pubsub_node_jid_)) {
37 stanza->FirstNamed(QN_PUBSUB_EVENT);
44 if (MatchResponseIq(stanza, pubsub_node_jid_, task_id())) {
45 const buzz::XmlElement* pubsub_item = stanza->FirstNamed(QN_PUBSUB);
56 const buzz::XmlElement* stanza = NextStanza(); local
57 if (stanza == NULL) {
61 if (stanza->Attr(buzz::QN_TYPE) == buzz::STR_ERROR) {
62 OnPubsubError(stanza
[all...]
H A Diqtask.h28 const XmlElement* stanza() const { return stanza_.get(); } function in class:buzz::IqTask
38 virtual bool HandleStanza(const XmlElement* stanza);
H A Dmoduleimpl.h36 //! Process the given stanza.
37 //! The module must return true if it has handled the stanza.
38 //! A false return value causes the stanza to be passed on to
53 bool HandleStanza(const XmlElement* stanza) { argument
54 return module_->HandleStanza(stanza);
H A Dmucroomuniquehangoutidtask.h29 virtual void HandleResult(const buzz::XmlElement* stanza);
H A Dpubsubtasks.cc26 bool IsPubSubEventItemsElem(const XmlElement* stanza, argument
28 if (stanza->Name() != QN_MESSAGE) {
32 const XmlElement* event_elem = stanza->FirstNamed(QN_PUBSUB_EVENT);
107 void ParseEventItemsElem(const XmlElement* stanza, argument
109 const XmlElement* event_elem = stanza->FirstNamed(QN_PUBSUB_EVENT);
130 void ParsePubSubItemsElem(const XmlElement* stanza, argument
132 const XmlElement* pubsub_elem = stanza->FirstNamed(QN_PUBSUB);
153 void PubSubRequestTask::HandleResult(const XmlElement* stanza) { argument
155 ParsePubSubItemsElem(stanza, &items);
166 bool PubSubReceiveTask::WantsStanza(const XmlElement* stanza) { argument
171 ReceiveStanza(const XmlElement* stanza) argument
187 HandleResult(const XmlElement* stanza) argument
200 HandleResult(const XmlElement* stanza) argument
[all...]
H A Dxmpptask.h38 // right away, they should decide if they own the sent stanza,
39 // and if so, queue it and Wake() the task, or if a stanza does not belong
43 // for example, disconnect a client while processing a stanza -
62 virtual XmppReturnStatus SendStanza(const XmlElement* stanza) = 0;
126 virtual bool HandleStanza(const XmlElement* stanza) { return false; } argument
129 XmppReturnStatus SendStanza(const XmlElement* stanza);
138 virtual void QueueStanza(const XmlElement* stanza);
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, cons
[all...]
H A Dpubsubtasks.h25 // The entire <item>, owned by the stanza handler. To keep a
42 virtual void HandleResult(const XmlElement* stanza);
62 virtual bool WantsStanza(const XmlElement* stanza);
63 virtual void ReceiveStanza(const XmlElement* stanza);
87 virtual void HandleResult(const XmlElement* stanza);
107 virtual void HandleResult(const XmlElement* stanza);
H A Dpubsubclient.cc74 const XmlElement* stanza) {
75 SignalRequestError(this, stanza);
83 const XmlElement* GetItemFromStanza(const XmlElement* stanza) { argument
84 if (stanza != NULL) {
85 const XmlElement* pubsub = stanza->FirstNamed(QN_PUBSUB);
97 const XmlElement* item = GetItemFromStanza(task->stanza());
105 const XmlElement* item = GetItemFromStanza(publish_task->stanza());
114 const XmlElement* stanza) {
117 SignalRetractError(this, retract_task->task_id(), stanza);
73 OnRequestError(IqTask* task, const XmlElement* stanza) argument
113 OnRetractError(IqTask* task, const XmlElement* stanza) argument
H A Dmucroomdiscoverytask.h36 virtual void HandleResult(const XmlElement* stanza);
H A Dpingtask_unittest.cc30 buzz::XmppReturnStatus SendStanza(const buzz::XmlElement* stanza);
66 const buzz::XmlElement* stanza) {
67 buzz::XmppReturnStatus result = FakeXmppClient::SendStanza(stanza);
68 if (test->respond_to_pings && (stanza->FirstNamed(buzz::QN_PING) != NULL)) {
65 SendStanza( const buzz::XmlElement* stanza) argument
H A Dhangoutpubsubclient.cc190 PubSubClient* client, const XmlElement* stanza) {
191 SignalRequestError(client->node(), stanza);
195 PubSubClient* client, const XmlElement* stanza) {
196 SignalRequestError(client->node(), stanza);
250 const XmlElement* stanza) {
251 SignalPublishPresenterError(task_id, stanza);
312 const XmlElement* stanza) {
315 SignalRemoteMuteError(task_id, mutee_nick, stanza);
317 SignalPublishAudioMuteError(task_id, stanza);
334 const XmlElement* stanza) {
189 OnPresenterRequestError( PubSubClient* client, const XmlElement* stanza) argument
194 OnMediaRequestError( PubSubClient* client, const XmlElement* stanza) argument
248 OnPresenterPublishError( const std::string& task_id, const XmlElement* item, const XmlElement* stanza) argument
310 OnAudioMutePublishError( const std::string& task_id, const XmlElement* item, const XmlElement* stanza) argument
332 OnVideoMutePublishError( const std::string& task_id, const XmlElement* item, const XmlElement* stanza) argument
349 OnVideoPausePublishError( const std::string& task_id, const XmlElement* item, const XmlElement* stanza) argument
366 OnRecordingPublishError( const std::string& task_id, const XmlElement* item, const XmlElement* stanza) argument
393 OnMediaBlockPublishError( const std::string& task_id, const XmlElement* item, const XmlElement* stanza) argument
[all...]
H A Dpubsubclient.h55 // Signal (this, error stanza)
58 // Signal (this, task_id, item, error stanza)
67 // Signal (this, task_id, error stanza)
92 const XmlElement* stanza);
99 const XmlElement* stanza);
102 const XmlElement* stanza);
H A Djingleinfotask.h40 virtual bool HandleStanza(const XmlElement * stanza);
H A Dmucroomconfigtask.h37 virtual void HandleResult(const XmlElement* stanza);
H A Dpingtask.h35 virtual bool HandleStanza(const buzz::XmlElement* stanza);

Completed in 212 milliseconds

12