|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
com.beem.project.beem.utils
Class Status

java.lang.Objectcom.beem.project.beem.utils.Status
public final class Status
- extends Object
Utility class to deal with status and presence value.
| Field Summary | |
|---|---|
static int |
CONTACT_STATUS_AVAILABLE
Status of a available contact. |
static int |
CONTACT_STATUS_AVAILABLE_FOR_CHAT
Status of a available for chat contact. |
static int |
CONTACT_STATUS_AWAY
Status of a away contact. |
static int |
CONTACT_STATUS_BUSY
Status of a busy contact. |
static int |
CONTACT_STATUS_DISCONNECT
Status of a disconnected contact. |
static int |
CONTACT_STATUS_UNAVAILABLE
Status of a unavailable (long away) contact. |
| Method Summary | |
|---|---|
static int |
getIconBarFromStatus(int status)
Get icon resource from status. |
static Presence.Mode |
getPresenceModeFromStatus(int status)
Get the smack presence mode for a status. |
static int |
getStatusFromPresence(Presence presence)
Get the status of from a presence packet. |
static boolean |
statusOnline(int status)
Check if contact is online by his status. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
CONTACT_STATUS_DISCONNECT
public static final int CONTACT_STATUS_DISCONNECT
- Status of a disconnected contact.
- See Also:
- Constant Field Values
CONTACT_STATUS_UNAVAILABLE
public static final int CONTACT_STATUS_UNAVAILABLE
- Status of a unavailable (long away) contact.
- See Also:
- Constant Field Values
CONTACT_STATUS_AWAY
public static final int CONTACT_STATUS_AWAY
- Status of a away contact.
- See Also:
- Constant Field Values
CONTACT_STATUS_BUSY
public static final int CONTACT_STATUS_BUSY
- Status of a busy contact.
- See Also:
- Constant Field Values
CONTACT_STATUS_AVAILABLE
public static final int CONTACT_STATUS_AVAILABLE
- Status of a available contact.
- See Also:
- Constant Field Values
CONTACT_STATUS_AVAILABLE_FOR_CHAT
public static final int CONTACT_STATUS_AVAILABLE_FOR_CHAT
- Status of a available for chat contact.
- See Also:
- Constant Field Values
| Method Detail |
|---|
getPresenceModeFromStatus
public static Presence.Mode getPresenceModeFromStatus(int status)
- Get the smack presence mode for a status.
- Parameters:
status- the status in beem- Returns:
- the presence mode to use in presence packet or null if there is no mode to use
getStatusFromPresence
public static int getStatusFromPresence(Presence presence)
- Get the status of from a presence packet.
- Parameters:
presence- the presence containing status- Returns:
- an int representing the status
statusOnline
public static boolean statusOnline(int status)
- Check if contact is online by his status.
- Parameters:
status- contact status- Returns:
- is online
getIconBarFromStatus
public static int getIconBarFromStatus(int status)
- Get icon resource from status.
- Parameters:
status- the status- Returns:
- the resource icon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2009 Beem-project.com. All Rights Reserved.

com.beem.project.beem.utils.Status