/external/chromium_org/third_party/libjingle/source/talk/xmpp/ |
receivetask.cc | 33 bool ReceiveTask::HandleStanza(const XmlElement* stanza) { 34 if (WantsStanza(stanza)) { 35 QueueStanza(stanza); 43 const XmlElement* stanza = NextStanza(); local 44 if (stanza == NULL) 47 ReceiveStanza(stanza);
|
pingtask.cc | 25 bool PingTask::HandleStanza(const buzz::XmlElement* stanza) { 26 if (!MatchResponseIq(stanza, Jid(STR_EMPTY), task_id())) { 30 if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_RESULT && 31 stanza->Attr(buzz::QN_TYPE) != buzz::STR_ERROR) { 35 QueueStanza(stanza); 46 const buzz::XmlElement* stanza = NextStanza(); local 47 if (stanza != NULL) { 62 talk_base::scoped_ptr<buzz::XmlElement> stanza( 64 stanza->AddElement(new buzz::XmlElement(QN_PING)); 65 SendStanza(stanza.get()) [all...] |
iqtask.cc | 54 bool IqTask::HandleStanza(const buzz::XmlElement* stanza) { 55 if (!MatchResponseIq(stanza, to_, task_id())) 58 if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_RESULT && 59 stanza->Attr(buzz::QN_TYPE) != buzz::STR_ERROR) { 63 QueueStanza(stanza); 68 const buzz::XmlElement* stanza = NextStanza(); local 69 if (stanza == NULL) 72 bool success = (stanza->Attr(buzz::QN_TYPE) == buzz::STR_RESULT); 74 HandleResult(stanza); 76 SignalError(this, stanza->FirstNamed(QN_ERROR)) [all...] |
iqtask.h | 45 const XmlElement* stanza() const { return stanza_.get(); } function in class:buzz::IqTask 55 virtual bool HandleStanza(const XmlElement* stanza);
|
presenceouttask.cc | 75 const XmlElement * stanza = NextStanza(); local 76 if (stanza == NULL) 79 if (SendStanza(stanza) != XMPP_RETURN_OK)
|
jingleinfotask.cc | 59 virtual bool HandleStanza(const XmlElement * stanza) { 60 if (!MatchResponseIq(stanza, Jid(), task_id())) 63 if (stanza->Attr(QN_TYPE) != STR_RESULT) 66 // Queue the stanza with the parent so these don't get handled out of order 68 parent->QueueStanza(stanza); 86 JingleInfoTask::HandleStanza(const XmlElement * stanza) { 87 if (!MatchRequestIq(stanza, "set", QN_JINGLE_INFO_QUERY)) 91 Jid from(stanza->Attr(QN_FROM)); 97 QueueStanza(stanza); 106 const XmlElement * stanza = NextStanza() local [all...] |
/external/chromium/third_party/libjingle/source/talk/examples/call/ |
mucinvitesendtask.cc | 53 const XmlElement* stanza = NextStanza(); local 54 if (stanza == NULL) 57 if (SendStanza(stanza) != XMPP_RETURN_OK)
|
discoitemsquerytask.cc | 64 const XmlElement* stanza = NextStanza(); local 65 if (stanza == NULL) 69 if (stanza->Attr(QN_TYPE) != STR_ERROR) { 70 const XmlElement* query = stanza->FirstNamed(QN_DISCO_ITEMS_QUERY); 78 SignalDiscoItemsError(to_, stanza->FirstNamed(QN_ERROR)); 89 bool DiscoItemsQueryTask::HandleStanza(const XmlElement* stanza) { 90 if (!MatchResponseIq(stanza, to_, task_id())) 92 QueueStanza(stanza);
|
friendinvitesendtask.cc | 66 const XmlElement* stanza = NextStanza(); local 67 if (stanza == NULL) 70 if (SendStanza(stanza) != XMPP_RETURN_OK)
|
presenceouttask.cc | 71 const XmlElement * stanza = NextStanza(); local 72 if (stanza == NULL) 75 if (SendStanza(stanza) != XMPP_RETURN_OK)
|
/external/chromium_org/third_party/libjingle/source/talk/examples/call/ |
mucinvitesendtask.cc | 53 const XmlElement* stanza = NextStanza(); local 54 if (stanza == NULL) 57 if (SendStanza(stanza) != XMPP_RETURN_OK)
|
friendinvitesendtask.cc | 66 const XmlElement* stanza = NextStanza(); local 67 if (stanza == NULL) 70 if (SendStanza(stanza) != XMPP_RETURN_OK)
|
presencepushtask.cc | 57 bool PresencePushTask::HandleStanza(const XmlElement * stanza) { 58 if (stanza->Name() != QN_PRESENCE) 60 QueueStanza(stanza); 70 const XmlElement * stanza = NextStanza(); local 71 if (stanza == NULL) 74 Jid from(stanza->Attr(QN_FROM)); 78 HandlePresence(from, stanza); 80 HandleMucPresence(elem->second, from, stanza); 87 const XmlElement* stanza) { 88 if (stanza->Attr(QN_TYPE) == STR_ERROR [all...] |
/external/chromium_org/third_party/libjingle/source/talk/examples/chat/ |
textchatsendtask.cc | 49 // Put together the chat stanza... 69 const XmlElement* stanza = NextStanza(); local 70 if (stanza == NULL) { 74 if (SendStanza(stanza) != XMPP_RETURN_OK) {
|
/external/chromium/third_party/libjingle/source/talk/p2p/client/ |
sessionmanagertask.h | 60 const buzz::XmlElement *stanza = NextStanza(); local 61 if (stanza == NULL) 63 session_manager_->OnIncomingMessage(stanza); 68 virtual bool HandleStanza(const buzz::XmlElement *stanza) { 69 if (!session_manager_->IsSessionMessage(stanza)) 72 //if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_SET) 74 QueueStanza(stanza); 82 const buzz::XmlElement* stanza) { 85 sender->Send(stanza);
|
/external/chromium_org/jingle/notifier/listener/ |
push_notifications_listen_task.cc | 39 const buzz::XmlElement* stanza = NextStanza(); local 40 if (stanza == NULL) { 44 DVLOG(1) << "Received stanza " << XmlElementToString(*stanza); 50 // Extract the service URL and service-specific data from the stanza. 52 // The response stanza has the following format. 64 const buzz::XmlElement* push_element = stanza->FirstNamed(kQnPush); 81 LOG(WARNING) << "No push element found in stanza " 82 << XmlElementToString(*stanza); 87 bool PushNotificationsListenTask::HandleStanza(const buzz::XmlElement* stanza) { [all...] |
push_notifications_subscribe_task.cc | 34 const buzz::XmlElement* stanza) { 35 if (!MatchResponseIq(stanza, GetClient()->jid().BareJid(), task_id())) 37 QueueStanza(stanza); 46 DVLOG(1) << "Push notifications: Subscription stanza: " 59 const buzz::XmlElement* stanza = NextStanza(); local 60 if (stanza == NULL) { 64 << XmlElementToString(*stanza); 66 if (stanza->HasAttr(buzz::QN_TYPE) && 67 stanza->Attr(buzz::QN_TYPE) == buzz::STR_RESULT) { 85 // Create the subscription stanza using the notifications protocol [all...] |
send_ping_task.cc | 33 scoped_ptr<buzz::XmlElement> stanza(MakePingStanza(ping_task_id_)); 34 DVLOG(1) << "Sending ping stanza " << XmlElementToString(*stanza); 35 if (SendStanza(stanza.get()) != buzz::XMPP_RETURN_OK) { 36 DLOG(WARNING) << "Could not send stanza " << XmlElementToString(*stanza); 43 const buzz::XmlElement* stanza = NextStanza(); local 44 if (stanza == NULL) { 48 DVLOG(1) << "Received stanza " << XmlElementToString(*stanza); 73 buzz::XmlElement* stanza = MakeIq(buzz::STR_GET, local [all...] |
/external/chromium_org/remoting/host/ |
server_log_entry_unittest.cc | 18 // Verifies a logging stanza. 55 s << "stanza has " << attrCount << " keys: expected " 67 scoped_ptr<XmlElement> stanza = entry->ToStanza(); local 74 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error)) 80 scoped_ptr<XmlElement> stanza = entry->ToStanza(); local 86 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error)) 94 scoped_ptr<XmlElement> stanza = entry->ToStanza(); local 115 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error)) << 123 scoped_ptr<XmlElement> stanza = entry->ToStanza(); local 131 ASSERT_TRUE(VerifyStanza(key_value_pairs, keys, stanza.get(), &error)) < 139 scoped_ptr<XmlElement> stanza = entry->ToStanza(); local [all...] |
host_change_notification_listener_unittest.cc | 71 scoped_ptr<XmlElement> stanza(new XmlElement(buzz::QN_IQ)); 72 stanza->AddAttr(QName(std::string(), "type"), "set"); 78 stanza->AddElement(host_changed); 79 stanza->AddAttr(buzz::QN_FROM, botJid); 80 stanza->AddAttr(buzz::QN_TO, kTestJid); 81 return stanza.Pass(); 94 scoped_ptr<XmlElement> stanza = GetNotificationStanza( local 97 stanza.get()); 106 scoped_ptr<XmlElement> stanza = GetNotificationStanza( local 109 stanza.get()) 120 scoped_ptr<XmlElement> stanza = GetNotificationStanza( local 132 scoped_ptr<XmlElement> stanza = GetNotificationStanza( local 144 scoped_ptr<XmlElement> stanza = GetNotificationStanza( local [all...] |
/external/chromium_org/third_party/libjingle/source/talk/p2p/client/ |
sessionmanagertask.h | 61 const buzz::XmlElement *stanza = NextStanza(); local 62 if (stanza == NULL) 64 session_manager_->OnIncomingMessage(stanza); 69 virtual bool HandleStanza(const buzz::XmlElement *stanza) { 70 if (!session_manager_->IsSessionMessage(stanza)) 73 //if (stanza->Attr(buzz::QN_TYPE) != buzz::STR_SET) 75 QueueStanza(stanza); 81 const buzz::XmlElement* stanza) { 84 sender->Send(stanza);
|
/external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/packet/ |
Open.java | 33 /* stanza type used to encapsulate the data */
34 private final StanzaType stanza;
field in class:Open 47 * @param stanza stanza type used to encapsulate the data
49 public Open(String sessionID, int blockSize, StanzaType stanza) {
59 this.stanza = stanza;
98 * Returns the stanza type used to encapsulate the data.
100 * @return the stanza type used to encapsulate the data
103 return stanza;
[all...] |
/external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/provider/ |
OpenIQProvider.java | 33 String stanzaValue = parser.getAttributeValue("", "stanza");
34 StanzaType stanza = null;
local 36 stanza = StanzaType.IQ;
39 stanza = StanzaType.valueOf(stanzaValue.toUpperCase());
42 return new Open(sessionID, blockSize, stanza);
|
/external/chromium_org/remoting/jingle_glue/ |
fake_signal_strategy.cc | 76 bool FakeSignalStrategy::SendStanza(scoped_ptr<buzz::XmlElement> stanza) { 79 stanza->SetAttr(buzz::QN_FROM, jid_); 82 peer_->OnIncomingMessage(stanza.Pass()); 95 scoped_ptr<buzz::XmlElement> stanza) { 96 pending_messages_.push(stanza.get()); 97 received_messages_.push_back(stanza.release()); 105 buzz::XmlElement* stanza = pending_messages_.front(); local 106 const std::string& to_field = stanza->Attr(buzz::QN_TO); 108 LOG(WARNING) << "Dropping stanza that is addressed to " << to_field 110 << ". Message content: " << stanza->Str() [all...] |
/external/chromium_org/third_party/libjingle/source/talk/examples/plus/ |
rostertask.cc | 48 virtual bool HandleStanza(const XmlElement * stanza); 118 const XmlElement * stanza = NextStanza(); local 119 if (stanza == NULL) 122 if (stanza->Name() == QN_IQ) { 124 bool result = (stanza->Attr(QN_TYPE) == STR_RESULT); 128 TranslateItems(stanza->FirstNamed(QN_ROSTER_QUERY)); 132 } else if (stanza->Name() == QN_PRESENCE) { 133 Jid jid(stanza->Attr(QN_FROM)); 134 std::string type = stanza->Attr(QN_TYPE); 148 bool RosterTask::HandleStanza(const XmlElement * stanza) { [all...] |