|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.protocol.AbstractOperationSetContactCapabilities<ProtocolProviderServiceJabberImpl>
net.java.sip.communicator.impl.protocol.jabber.OperationSetContactCapabilitiesJabberImpl
public class OperationSetContactCapabilitiesJabberImpl
Represents an OperationSet to query the OperationSets supported for a specific Jabber Contact. The OperationSets reported as supported for a specific Jabber Contact are considered by the associated protocol provider to be capabilities possessed by the Jabber Contact in question.
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.service.protocol.AbstractOperationSetContactCapabilities |
|---|
parentProvider |
| Constructor Summary | |
|---|---|
OperationSetContactCapabilitiesJabberImpl(ProtocolProviderServiceJabberImpl parentProvider)
Initializes a new OperationSetContactCapabilitiesJabberImpl instance which is to be provided by a specific ProtocolProviderServiceJabberImpl. |
|
| Method Summary | ||
|---|---|---|
void |
contactPresenceStatusChanged(ContactPresenceStatusChangeEvent evt)
Removes the capabilities when the user goes offline. |
|
void |
fireContactCapabilitiesChanged(String user)
Fires event that contact capabilities has changed. |
|
protected
|
getOperationSet(Contact contact,
Class<U> opsetClass,
boolean online)
Gets the OperationSet corresponding to the specified Class and supported by the specified Contact. |
|
protected Map<String,OperationSet> |
getSupportedOperationSets(Contact contact,
boolean online)
Gets the OperationSets supported by a specific Contact. |
|
(package private) void |
setDiscoveryManager(ScServiceDiscoveryManager discoveryManager)
Sets the ScServiceDiscoveryManager which is the discoveryManager of AbstractOperationSetContactCapabilities.parentProvider. |
|
void |
userCapsNodeAdded(String user,
String node,
boolean online)
Notifies this listener that an EntityCapsManager has added a record for a specific user about the caps node the user has. |
|
void |
userCapsNodeRemoved(String user,
String node,
boolean online)
Notifies this listener that an EntityCapsManager has removed a record for a specific user about the caps node the user has. |
|
| Methods inherited from class net.java.sip.communicator.service.protocol.AbstractOperationSetContactCapabilities |
|---|
addContactCapabilitiesListener, fireContactCapabilitiesEvent, getOperationSet, getSupportedOperationSets, isOnline, removeContactCapabilitiesListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationSetContactCapabilitiesJabberImpl(ProtocolProviderServiceJabberImpl parentProvider)
parentProvider - the ProtocolProviderServiceJabberImpl
which will provide the new instance| Method Detail |
|---|
protected <U extends OperationSet> U getOperationSet(Contact contact,
Class<U> opsetClass,
boolean online)
getOperationSet in class AbstractOperationSetContactCapabilities<ProtocolProviderServiceJabberImpl>U - the type extending OperationSet for which the
specified contact is to be checked whether it possesses it as a
capabilitycontact - the Contact for which the opsetClass
capability is to be queriedopsetClass - the OperationSet Class for which the
specified contact is to be checked whether it possesses it as a
capabilityonline - true if contact is online; otherwise,
false
AbstractOperationSetContactCapabilities.getOperationSet(Contact,
Class)
protected Map<String,OperationSet> getSupportedOperationSets(Contact contact,
boolean online)
getSupportedOperationSets in class AbstractOperationSetContactCapabilities<ProtocolProviderServiceJabberImpl>contact - the Contact for which the supported
OperationSet capabilities are to be retrievedonline - true if contact is online; otherwise,
false
AbstractOperationSetContactCapabilities.getSupportedOperationSets(
Contact)void setDiscoveryManager(ScServiceDiscoveryManager discoveryManager)
AbstractOperationSetContactCapabilities.parentProvider.
discoveryManager - the ScServiceDiscoveryManager which is
the discoveryManager of AbstractOperationSetContactCapabilities.parentProvider
public void userCapsNodeAdded(String user,
String node,
boolean online)
userCapsNodeAdded in interface UserCapsNodeListeneruser - the user (full JID)node - the entity caps node#veronline - indicates if the user is currently onlineUserCapsNodeListener.userCapsNodeAdded(String, String, boolean)
public void userCapsNodeRemoved(String user,
String node,
boolean online)
userCapsNodeRemoved in interface UserCapsNodeListeneruser - the user (full JID)node - the entity caps node#veronline - indicates if the given user is onlineUserCapsNodeListener.userCapsNodeRemoved(String, String, boolean)public void contactPresenceStatusChanged(ContactPresenceStatusChangeEvent evt)
contactPresenceStatusChanged in interface ContactPresenceStatusListenerevt - the ContactPresenceStatusChangeEvent that notified
uspublic void fireContactCapabilitiesChanged(String user)
user - the user to search for its contact.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||