Searched refs:presence (Results 1 - 25 of 39) sorted by relevance

12

/external/smack/src/org/jivesoftware/smackx/pubsub/
H A DAccessModel.java30 /** Anyone with a presence subscription of both or from may subscribe and retrieve items */
31 presence, enum constant in enum:AccessModel
/external/smack/src/org/jivesoftware/smackx/workgroup/agent/
H A DAgentRosterListener.java34 public void presenceChanged(Presence presence); argument
H A DAgentRoster.java42 * Manges information about the agents in a workgroup and their presence.
76 // Listen for any presence packets.
120 // Fire the presence changed event
190 * Returns the presence info for a particular agent, or <tt>null</tt> if the agent
191 * is unavailable (offline) or if no presence information is available.<p>
195 * @return the agent's current presence, or <tt>null</tt> if the agent is unavailable
196 * or if no presence information is available..
202 Presence presence = new Presence(Presence.Type.unavailable);
203 presence.setFrom(user);
204 return presence;
[all...]
H A DAgentSession.java45 * This class embodies the agent's active presence within a given workgroup. The application
167 * Returns the agent's current presence mode.
169 * @return the agent's current presence mode.
195 * new data, the revised meta data will be rebroadcast in an agent's presence broadcast.
215 * the revised meta data will be rebroadcast in an agent's presence broadcast.
255 Presence presence;
259 presence = new Presence(Presence.Type.available);
260 presence.setTo(workgroupJID);
261 presence.addExtension(new DefaultPacketExtension(AgentStatus.ELEMENT_NAME,
266 connection.sendPacket(presence);
[all...]
/external/chromium/third_party/libjingle/source/talk/examples/call/
H A Dfriendinvitesendtask.cc38 // Need to first add to roster, then subscribe to presence.
49 // Subscribe to presence
50 XmlElement* presence = new XmlElement(QN_PRESENCE); local
51 presence->AddAttr(QN_TO, user.Str());
52 presence->AddAttr(QN_TYPE, STR_SUBSCRIBE);
58 presence->AddElement(invitation);
59 QueueStanza(presence);
H A Dpresenceouttask.cc51 XmlElement * presence = TranslateStatus(s);
52 presence->AddAttr(QN_TO, j.Str());
53 QueueStanza(presence);
61 XmlElement * presence = new XmlElement(QN_PRESENCE);
62 presence->AddAttr(QN_TO, jid.Str());
63 presence->AddAttr(QN_TYPE, "probe");
65 QueueStanza(presence);
129 // Put the delay mark on the presence according to JEP-0091
/external/chromium_org/third_party/libjingle/source/talk/examples/call/
H A Dfriendinvitesendtask.cc38 // Need to first add to roster, then subscribe to presence.
49 // Subscribe to presence
50 XmlElement* presence = new XmlElement(QN_PRESENCE); local
51 presence->AddAttr(QN_TO, user.Str());
52 presence->AddAttr(QN_TYPE, STR_SUBSCRIBE);
58 presence->AddElement(invitation);
59 QueueStanza(presence);
/external/chromium_org/third_party/libjingle/source/talk/xmpp/
H A Dpresenceouttask.cc42 XmlElement * presence = TranslateStatus(s);
43 QueueStanza(presence);
44 delete presence;
53 XmlElement * presence = TranslateStatus(s);
54 presence->AddAttr(QN_TO, j.Str());
55 QueueStanza(presence);
56 delete presence;
64 XmlElement * presence = new XmlElement(QN_PRESENCE);
65 presence->AddAttr(QN_TO, jid.Str());
66 presence
[all...]
H A Dchatroommoduleimpl.cc83 XmppReturnStatus ServerChangeMyPresence(const XmlElement& presence);
85 XmppReturnStatus ChangePresence(XmppChatroomState new_state, const XmlElement* presence, bool isServer);
87 XmppChatroomEnteredStatus GetEnterFailureFromXml(const XmlElement* presence);
88 XmppChatroomExitedStatus GetExitFailureFromXml(const XmlElement* presence);
92 void FireEnteredStatus(const XmlElement* presence,
115 XmppReturnStatus SetPresence(const XmppPresence* presence);
121 const XmppPresence* presence() const;
182 // handle presence stanza
290 // entering a chatroom is a presence request to the server
328 // exiting a chatroom is a presence reques
450 FireEnteredStatus(const XmlElement* presence, XmppChatroomEnteredStatus status) argument
532 ServerChangeMyPresence(const XmlElement& presence) argument
545 ChangePresence(XmppChatroomState new_state, const XmlElement* presence, bool isServer) argument
610 GetEnterFailureFromXml(const XmlElement* presence) argument
638 GetExitFailureFromXml(const XmlElement* presence) argument
656 SetPresence(const XmppPresence* presence) argument
681 XmppChatroomMemberImpl::presence() const { function in class:buzz::XmppChatroomMemberImpl
[all...]
H A Drostermodule_unittest.cc128 WritePresence(std::ostream& os, const XmppPresence* presence) { argument
129 if (presence == NULL) {
135 WriteString(os, presence->jid().Str());
136 os<<" available:"<<presence->available();
138 WritePresenceShow(os, presence->presence_show());
139 os<<" priority:"<<presence->priority();
141 WriteString(os, presence->status());
142 os<<"]"<<presence->raw_xml()->Str();
182 //! Some type of presence error has occured
194 //! New presence informatio
197 IncomingPresenceChanged(XmppRosterModule*, const XmppPresence* presence) argument
492 const XmppPresence * presence; local
[all...]
H A Dchatroommodule.h168 //! Returns the backing presence for this member
169 virtual const XmppPresence* presence() const = 0;
234 const XmppPresence* presence,
254 //! (such as the nickname or presence)
H A Drostermoduleimpl.cc622 // Scrub the outgoing presence
637 XmppRosterModuleImpl::SendDirectedPresence(const XmppPresence* presence, argument
639 if (!presence)
645 XmlElement element(*(presence->raw_xml()));
845 // There are two types of stanzas that we care about: presence and roster push
888 // Clear out the vector of all presence notifications
894 XmppPresenceImpl * presence = *pos; local
896 delete presence;
901 // Clear out all of the small presence vectors per Jid
973 // First add the presence t
987 XmppPresenceImpl* presence; local
[all...]
H A Drostermodule.h43 //! This enum captures the valid values for the show attribute in a presence
66 //! These represent the valid types of presence stanzas for managing
95 //! This class stores both presence information for outgoing presence and is
97 //! presence information. When this class is writeable (non-const) then each
105 //! This is typically only used when sending a directed presence
108 //! The Jid of for the presence information.
118 //! The show value of the presence info
121 //! Set the presence show value
124 //! The Priority of the presence inf
[all...]
/external/smack/src/org/jivesoftware/smackx/muc/
H A DDeafOccupantInterceptor.java29 * Packet interceptor that will intercept presence packets sent to the MUC service to indicate
48 Presence presence = (Presence) packet;
50 if (Presence.Type.available == presence.getType() &&
51 presence.getExtension("x", "http://jabber.org/protocol/muc") != null) {
H A DOccupant.java50 Occupant(Presence presence) { argument
52 MUCUser mucUser = (MUCUser) presence.getExtension("x",
58 // Get the nickname from the FROM attribute of the presence
59 this.nick = StringUtils.parseResource(presence.getFrom());
63 * Returns the full JID of the occupant. If this information was extracted from a presence and
96 * from a presence then the answer will be null.
99 * obtained from a presence.
H A DMultiUserChat.java333 // We create a room by sending a presence packet to room@service/nick
339 // Invoke presence interceptors so that extra information can be dynamically added
344 // Wait for a presence packet back from the server.
353 Presence presence =
358 if (presence == null) {
361 else if (presence.getError() != null) {
362 throw new XMPPException(presence.getError());
370 MUCUser mucUser = getMUCUserExtension(presence);
463 // We join a room by sending a presence packet where the "to"
477 // Invoke presence interceptor
[all...]
/external/smack/src/org/jivesoftware/smack/
H A DRosterListener.java28 * A listener that is fired any time a roster is changed or the presence of
58 * Called when the presence of a roster entry is changed. Care should be taken
59 * when using the presence data delivered as part of this event. Specifically,
66 * To get the current "best presence" for a user after the presence update, query the roster:
68 * String user = presence.getFrom();
72 * That will return the presence value for the user with the highest priority and
75 * Note that this listener is triggered for presence (mode) changes only
76 * (e.g presence of types available and unavailable. Subscription-related
77 * presence packet
82 presenceChanged(Presence presence) argument
[all...]
H A DRoster.java38 * presence updates for. Roster items are categorized into groups for easier management.<p>
122 // Listen for any presence packets.
131 // Changes the presence available contacts to unavailable
136 // Changes the presence available contacts to unavailable
262 * Creates a new roster entry and presence subscription. The server will asynchronously
306 // Create a presence subscription packet and send.
338 // Removing the user from the roster, so remove any presence information
580 * Returns the presence info for a particular user. If the user is offline, or
581 * if no presence data is available (such as when you are not subscribed to the
582 * user's presence update
804 fireRosterPresenceEvent(Presence presence) argument
[all...]
/external/smack/src/org/jivesoftware/smackx/
H A DGateway.java283 * receives the first presence broadcasted by your server. But it is possible to
284 * manually login and logout by sending a directed presence. This method sends an
285 * empty available presence direct to the gateway.
288 Presence presence = new Presence(Presence.Type.available);
289 login(presence);
293 * This method lets you send the presence direct to the gateway. Type, To and From
295 * @param presence the presence used to login to gateway
297 public void login(Presence presence){ argument
298 presence
[all...]
H A DLastActivityManager.java109 Presence presence = (Presence) packet;
110 Presence.Mode mode = presence.getMode();
/external/chromium_org/net/quic/
H A Dquic_config.h29 QuicNegotiableValue(QuicTag tag, Presence presence);
44 QuicNegotiableUint32(QuicTag name, Presence presence);
89 QuicNegotiableTag(QuicTag name, Presence presence);
H A Dquic_config.cc16 QuicNegotiableValue::QuicNegotiableValue(QuicTag tag, Presence presence) argument
18 presence_(presence),
22 QuicNegotiableUint32::QuicNegotiableUint32(QuicTag tag, Presence presence) argument
23 : QuicNegotiableValue(tag, presence),
113 QuicNegotiableTag::QuicNegotiableTag(QuicTag tag, Presence presence) argument
114 : QuicNegotiableValue(tag, presence),
/external/smack/src/org/jivesoftware/smack/util/
H A DPacketParserUtils.java.orig184 * Parses a presence packet.
186 * @param parser the XML parser, positioned at the start of a presence packet.
198 System.err.println("Found invalid presence type " + typeString);
201 Presence presence = new Presence(type);
202 presence.setTo(parser.getAttributeValue("", "to"));
203 presence.setFrom(parser.getAttributeValue("", "from"));
205 presence.setPacketID(id == null ? Packet.ID_NOT_AVAILABLE : id);
209 presence.setLanguage(language);
211 presence.setPacketID(id == null ? Packet.ID_NOT_AVAILABLE : id);
221 presence
[all...]
H A DPacketParserUtils.java183 * Parses a presence packet.
185 * @param parser the XML parser, positioned at the start of a presence packet.
197 System.err.println("Found invalid presence type " + typeString);
200 Presence presence = new Presence(type);
201 presence.setTo(parser.getAttributeValue("", "to"));
202 presence.setFrom(parser.getAttributeValue("", "from"));
204 presence.setPacketID(id == null ? Packet.ID_NOT_AVAILABLE : id);
208 presence.setLanguage(language);
210 presence.setPacketID(id == null ? Packet.ID_NOT_AVAILABLE : id);
220 presence
[all...]
/external/chromium_org/third_party/libjingle/source/talk/examples/pcp/
H A Dpcp_main.cc646 talk_base::scoped_ptr<buzz::XmlElement> presence(
648 presence->AddElement(new buzz::XmlElement(buzz::QN_PRIORITY));
649 presence->AddText("-1", 1);
650 pump.SendStanza(presence.get());

Completed in 369 milliseconds

12