public class MobileIndicator extends java.lang.Object implements RegistrationStateChangeListener, UserCapsNodeListener
Constructor and Description |
---|
MobileIndicator(ProtocolProviderServiceJabberImpl parentProvider,
ServerStoredContactListJabberImpl ssclCallback)
Construct Mobile indicator.
|
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
isMobileResource(java.lang.String resourceName,
java.lang.String fullJid)
Checks a resource whether it is mobile or not, by checking the
cache.
|
void |
registrationStateChanged(RegistrationStateChangeEvent evt)
The method is called by a ProtocolProvider implementation whenever
a change in the registration state of the corresponding provider had
occurred.
|
void |
resourcesUpdated(ContactJabberImpl contact)
Called when resources have been updated for a contact, on
presence changed.
|
void |
userCapsNodeAdded(java.lang.String user,
java.util.ArrayList<java.lang.String> fullJids,
java.lang.String node,
boolean online)
Caps for user has been changed.
|
void |
userCapsNodeRemoved(java.lang.String user,
java.util.ArrayList<java.lang.String> fullJids,
java.lang.String node,
boolean online)
Caps for user has been changed.
|
public MobileIndicator(ProtocolProviderServiceJabberImpl parentProvider, ServerStoredContactListJabberImpl ssclCallback)
parentProvider
- the parent provider.ssclCallback
- the callback for the contact list to obtain contacts.public void resourcesUpdated(ContactJabberImpl contact)
contact
- the contactboolean isMobileResource(java.lang.String resourceName, java.lang.String fullJid)
resourceName
- the resource name to check.fullJid
- the jid to check.public void registrationStateChanged(RegistrationStateChangeEvent evt)
registrationStateChanged
in interface RegistrationStateChangeListener
evt
- ProviderStatusChangeEvent the event describing the status
change.public void userCapsNodeAdded(java.lang.String user, java.util.ArrayList<java.lang.String> fullJids, java.lang.String node, boolean online)
userCapsNodeAdded
in interface UserCapsNodeListener
user
- the user (full JID)fullJids
- a list of all resources of the user (full JIDs)node
- the entity caps node#veronline
- indicates if the user for which we're notified is onlinepublic void userCapsNodeRemoved(java.lang.String user, java.util.ArrayList<java.lang.String> fullJids, java.lang.String node, boolean online)
userCapsNodeRemoved
in interface UserCapsNodeListener
user
- the user (full JID)fullJids
- a list of all resources of the user (full JIDs)node
- the entity caps node#veronline
- indicates if the user for which we're notified is online
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.