/external/smack/src/org/jivesoftware/smackx/pubsub/ |
AccessModel.java | 30 /** 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/ |
AgentRosterListener.java | 22 import org.jivesoftware.smack.packet.Presence;
34 public void presenceChanged(Presence presence);
|
AgentRoster.java | 29 import org.jivesoftware.smack.packet.Presence;
42 * Manges information about the agents in a workgroup and their presence.
57 private Map<String, Map<String, Presence>> presenceMap;
72 presenceMap = new HashMap<String, Map<String, Presence>>();
76 // Listen for any presence packets.
78 new PacketTypeFilter(Presence.class));
116 Map<String,Presence> userPresences = presenceMap.get(jid);
118 Iterator<Presence> presences = userPresences.values().iterator();
120 // Fire the presence changed event
190 * Returns the presence info for a particular agent, or <tt>null</tt> if the agent 202 Presence presence = new Presence(Presence.Type.unavailable); local 211 Presence presence = null; local 283 Presence presence = (Presence)packet; local 317 userPresences.put(StringUtils.parseResource(from), presence); local [all...] |
AgentSession.java | 45 * This class embodies the agent's active presence within a given workgroup. The application
62 private Presence.Mode presenceMode;
112 filter.addFilter(new PacketTypeFilter(Presence.class));
167 * Returns the agent's current presence mode.
169 * @return the agent's current presence mode.
171 public Presence.Mode getPresenceMode() {
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;
local 355 Presence presence = new Presence(Presence.Type.available); local 410 Presence presence = new Presence(Presence.Type.available); local 695 Presence presence = (Presence)packet; local [all...] |
/external/chromium/third_party/libjingle/source/talk/examples/call/ |
friendinvitesendtask.cc | 38 // 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);
|
presenceouttask.cc | 51 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/ |
friendinvitesendtask.cc | 38 // 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/ |
presenceouttask.cc | 42 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->AddAttr(QN_TYPE, "probe") [all...] |
chatroommoduleimpl.cc | 83 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 request to the serve 681 XmppChatroomMemberImpl::presence() const { function in class:buzz::XmppChatroomMemberImpl [all...] |
rostermodule_unittest.cc | 128 WritePresence(std::ostream& os, const XmppPresence* presence) { 129 if (presence == NULL) { 134 os<<"[Presence jid:"; 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 occure 492 const XmppPresence * presence; local [all...] |
chatroommodule.h | 168 //! 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)
|
rostermoduleimpl.cc | 622 // Scrub the outgoing presence 637 XmppRosterModuleImpl::SendDirectedPresence(const XmppPresence* presence, 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 to the ma 987 XmppPresenceImpl* presence; local [all...] |
rostermodule.h | 43 //! This enum captures the valid values for the show attribute in a presence 66 //! These represent the valid types of presence stanzas for managing 94 //! Presence Information 95 //! This class stores both presence information for outgoing presence and is 97 //! presence information. When this class is writeable (non-const) then each 104 //! Create a new Presence 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 inf [all...] |
/external/smack/src/org/jivesoftware/smackx/muc/ |
DeafOccupantInterceptor.java | 26 import org.jivesoftware.smack.packet.Presence; 29 * Packet interceptor that will intercept presence packets sent to the MUC service to indicate 48 Presence presence = (Presence) packet; local 50 if (Presence.Type.available == presence.getType() && 51 presence.getExtension("x", "http://jabber.org/protocol/muc") != null) {
|
Occupant.java | 25 import org.jivesoftware.smack.packet.Presence; 50 Occupant(Presence presence) { 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.
|
MultiUserChat.java | 56 import org.jivesoftware.smack.packet.Presence; 91 private Map<String, Presence> occupantsMap = new ConcurrentHashMap<String, Presence>(); 333 // We create a room by sending a presence packet to room@service/nick 335 Presence joinPresence = new Presence(Presence.Type.available); 339 // Invoke presence interceptors so that extra information can be dynamically added 344 // Wait for a presence packet back from the server. 348 new PacketTypeFilter(Presence.class)) 353 Presence presence = local 488 Presence presence; local 1013 Presence presence = local 1610 Presence presence = occupantsMap.get(user); local [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
ContactStatusUtil.java | 30 public static String getStatusString(Context context, int presence) { 32 switch (presence) {
|
/external/smack/src/org/jivesoftware/smack/ |
RosterListener.java | 23 import org.jivesoftware.smack.packet.Presence; 28 * 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(); 69 * Presence bestPresence = roster.getPresence(user); 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 onl [all...] |
Roster.java | 28 import org.jivesoftware.smack.packet.Presence; 38 * presence updates for. Roster items are categorized into groups for easier management.<p> 64 private Map<String, Map<String, Presence>> presenceMap; 118 presenceMap = new ConcurrentHashMap<String, Map<String, Presence>>(); 122 // Listen for any presence packets. 123 PacketFilter presenceFilter = new PacketTypeFilter(Presence.class); 131 // Changes the presence available contacts to unavailable 136 // Changes the presence available contacts to unavailable 164 * listens for Presence packets that have a type of 165 * {@link org.jivesoftware.smack.packet.Presence.Type#subscribe} 611 Presence presence = new Presence(Presence.Type.unavailable); local 618 Presence presence = null; local 671 Presence presence = new Presence(Presence.Type.unavailable); local 676 Presence presence = userPresences.get(resource); local 703 Presence presence = new Presence(Presence.Type.unavailable); local 718 Presence presence = new Presence(Presence.Type.unavailable); local 842 Presence presence = (Presence) packet; local 863 userPresences.put(StringUtils.parseResource(from), presence); local 891 userPresences.put(StringUtils.parseResource(from), presence); local [all...] |
/external/smack/src/org/jivesoftware/smackx/ |
Gateway.java | 19 import org.jivesoftware.smack.packet.Presence; 231 new PacketTypeFilter(Presence.class)); 283 * 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); local 289 login(presence); 309 Presence presence = new Presence(Presence.Type.unavailable); local 319 Presence presence = (Presence)packet; local [all...] |
/external/chromium_org/net/quic/ |
quic_config.h | 20 enum Presence { 29 QuicNegotiableValue(QuicTag tag, Presence presence); 37 const Presence presence_; 44 QuicNegotiableUint32(QuicTag name, Presence presence); 89 QuicNegotiableTag(QuicTag name, Presence presence);
|
quic_config.cc | 16 QuicNegotiableValue::QuicNegotiableValue(QuicTag tag, Presence presence) 18 presence_(presence), 22 QuicNegotiableUint32::QuicNegotiableUint32(QuicTag tag, Presence presence) 23 : QuicNegotiableValue(tag, presence), 113 QuicNegotiableTag::QuicNegotiableTag(QuicTag tag, Presence presence) 114 : QuicNegotiableValue(tag, presence),
|
/external/smack/src/org/jivesoftware/smack/util/ |
PacketParserUtils.java.orig | 41 import org.jivesoftware.smack.packet.Presence; 184 * Parses a presence packet. 186 * @param parser the XML parser, positioned at the start of a presence packet. 187 * @return a Presence packet. 190 public static Presence parsePresence(XmlPullParser parser) throws Exception { 191 Presence.Type type = Presence.Type.available; 195 type = Presence.Type.valueOf(typeString); 198 System.err.println("Found invalid presence type " + typeString); 201 Presence presence = new Presence(type) [all...] |
PacketParserUtils.java | 40 import org.jivesoftware.smack.packet.Presence; 183 * Parses a presence packet. 185 * @param parser the XML parser, positioned at the start of a presence packet. 186 * @return a Presence packet. 189 public static Presence parsePresence(XmlPullParser parser) throws Exception { 190 Presence.Type type = Presence.Type.available; 194 type = Presence.Type.valueOf(typeString); 197 System.err.println("Found invalid presence type " + typeString); 200 Presence presence = new Presence(type) local [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
GlobalSearchSupport.java | 67 "(SELECT " + StatusUpdates.PRESENCE + 75 int presence = -1; field in class:GlobalSearchSupport.SearchSuggestion 95 if (presence != -1) { 96 icon2 = String.valueOf(StatusUpdates.getPresenceIconResourceId(presence)); 153 presence = -1; 262 suggestion.presence = c.isNull(4) ? -1 : c.getInt(4);
|