|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
com.valhalla.jbother.jabber.BuddyStatus
Tracks a users different presences and resources
Constructor Summary | |
BuddyStatus(java.lang.String buddyId)
Sets up the buddy container |
Method Summary | |
void |
addResource(java.lang.String resource,
int priority,
org.jivesoftware.smack.packet.Presence.Mode mode,
java.lang.String statusMessage)
Adds a resource to the tracker |
ConversationPanel |
getConversation()
Gets the conversation window for this buddy |
java.lang.String |
getGroup()
Gets the group the user is in in the Roster |
boolean |
getHasSignedOn()
|
java.lang.String |
getHighestResource()
Gets the resource with the higest priority |
java.lang.String |
getName()
|
org.jivesoftware.smack.packet.Presence.Mode |
getPresence(java.lang.String resource)
Gets the presence mode of the highest priority |
boolean |
getRemoved()
|
org.jivesoftware.smack.RosterEntry |
getRosterEntry()
Gets the roster entry for this user |
java.lang.String |
getStatusMessage(java.lang.String resource)
Gets the status message of the highest resource |
java.lang.String |
getTempGroup()
Returns the temporary group |
java.lang.String |
getUser()
|
java.lang.String |
getVersionInfo()
|
void |
removeResource(java.lang.String resource)
Stops tracking a resource |
void |
resetBuddy()
Resets the buddy so that it appears as though they never signed on |
void |
setConversation(ConversationPanel window)
Sets the ConversationPanel for this buddy |
void |
setHasSignedOn(boolean on)
Whether or not the user has signed on |
void |
setName(java.lang.String name)
|
void |
setRemoved(boolean removed)
|
void |
setTempGroup(java.lang.String group)
Sets a temporary group name (if the user is displayed before the group actually changes on the server) |
void |
setUser(java.lang.String buddyId)
|
void |
setVersionInfo(java.lang.String info)
Sets the users jabber:iq:version information |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BuddyStatus(java.lang.String buddyId)
buddyId
- the buddy/user to trackMethod Detail |
public java.lang.String getHighestResource()
public void resetBuddy()
public void addResource(java.lang.String resource, int priority, org.jivesoftware.smack.packet.Presence.Mode mode, java.lang.String statusMessage)
resource
- the resource namepriority
- the priority level of this resourcemode
- the current presence modestatusMessage
- the status message if there is onepublic java.lang.String getStatusMessage(java.lang.String resource)
public void removeResource(java.lang.String resource)
resource
- the resource to removepublic org.jivesoftware.smack.packet.Presence.Mode getPresence(java.lang.String resource)
public void setTempGroup(java.lang.String group)
group
- the temporary group to usepublic java.lang.String getTempGroup()
public java.lang.String getGroup()
public org.jivesoftware.smack.RosterEntry getRosterEntry()
public void setVersionInfo(java.lang.String info)
info
- the users jabber:iq:version informationpublic java.lang.String getVersionInfo()
public void setHasSignedOn(boolean on)
on
- set to true if the user has signed onpublic boolean getHasSignedOn()
public void setRemoved(boolean removed)
removed
- set to true if this user has been removed from the rosterpublic boolean getRemoved()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the buddy's aliaspublic void setUser(java.lang.String buddyId)
buddyId
- the userIdpublic java.lang.String getUser()
public void setConversation(ConversationPanel window)
window
- the conversation for this buddypublic ConversationPanel getConversation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |