public class AccountStatusUtils
extends java.lang.Object
Constructor and Description |
---|
AccountStatusUtils() |
Modifier and Type | Method and Description |
---|---|
static GlobalStatusService |
getGlobalStatusService()
Returns the GlobalStatusService obtained from the bundle
context.
|
static PresenceStatus |
getLastPresenceStatus(ProtocolProviderService protocolProvider)
Returns the last status that was stored in the configuration xml for the
given protocol provider.
|
java.lang.String |
getLastStatusString(ProtocolProviderService protocolProvider)
Returns the last contact status saved in the configuration.
|
static PresenceStatus |
getOfflineStatus(ProtocolProviderService protocolProvider)
Returns the offline status of provider.
|
static PresenceStatus |
getOnlineStatus(ProtocolProviderService protocolProvider)
Returns the online status of provider.
|
static PresenceStatus |
getPresenceStatus(ProtocolProviderService protocolProvider)
Returns the current status for protocol provider.
|
static OperationSetPresence |
getProtocolPresenceOpSet(ProtocolProviderService protocolProvider)
Returns the presence operation set for the given protocol provider.
|
static java.lang.Object |
getProtocolProviderLastStatus(ProtocolProviderService protocolProvider)
If the protocol provider supports presence operation set searches the
last status which was selected, otherwise returns null.
|
public static java.lang.Object getProtocolProviderLastStatus(ProtocolProviderService protocolProvider)
protocolProvider
- the protocol provider we're interested in.public static OperationSetPresence getProtocolPresenceOpSet(ProtocolProviderService protocolProvider)
protocolProvider
- The protocol provider for which the
presence operation set is searched.public static PresenceStatus getLastPresenceStatus(ProtocolProviderService protocolProvider)
protocolProvider
- the protocol providerpublic static PresenceStatus getPresenceStatus(ProtocolProviderService protocolProvider)
protocolProvider
- the protocol providerpublic static PresenceStatus getOnlineStatus(ProtocolProviderService protocolProvider)
protocolProvider
- the protocol providerpublic static PresenceStatus getOfflineStatus(ProtocolProviderService protocolProvider)
protocolProvider
- the protocol providerpublic java.lang.String getLastStatusString(ProtocolProviderService protocolProvider)
protocolProvider
- the protocol provider to which the status
correspondspublic static GlobalStatusService getGlobalStatusService()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.