|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable
com.valhalla.jbother.jabber.BuddyStatus
public class BuddyStatus
Tracks a users different presences and resources
| Field Summary | |
|---|---|
protected boolean |
askForDelivered
|
protected boolean |
askForDisplayed
|
protected boolean |
askForOffline
|
protected java.lang.String |
composingId
|
protected ConversationPanel |
conversation
|
protected boolean |
encrypting
|
protected org.jivesoftware.smack.RosterEntry |
entry
|
protected boolean |
hasSignedOn
|
protected java.lang.String |
name
|
protected java.util.Hashtable |
notDisplayedMessages
|
protected java.util.Hashtable |
presences
|
protected java.lang.String |
pubKeyId
|
protected boolean |
removed
|
protected java.lang.String |
resources
|
protected java.util.ResourceBundle |
sources
|
protected java.util.Properties |
statusMessages
|
protected java.lang.String |
tempGroup
|
protected java.lang.String |
userId
|
protected java.lang.String |
versionInfo
|
| Constructor Summary | |
|---|---|
BuddyStatus(java.lang.String buddyId)
Sets up the buddy container |
|
| Method Summary | |
|---|---|
void |
addNotDisplayedID(java.lang.String packetID,
java.lang.String from)
|
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 |
java.lang.String |
getAddress()
|
java.lang.String |
getComposingID()
|
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 |
java.lang.String |
getPubKey()
Gets Public Key ID |
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()
|
boolean |
isAskForDelivered()
|
void |
isAskForDelivered(boolean variant)
|
boolean |
isAskForDisplayed()
|
void |
isAskForDisplayed(boolean variant)
|
boolean |
isAskForOffline()
|
void |
isAskForOffline(boolean variant)
|
boolean |
isEncrypting()
Gets the encryption status |
void |
isEncrypting(boolean variant)
Sets the encryption status |
void |
newPubKey()
Creates Public Key ID |
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 |
sendNotDisplayedID()
|
void |
setComposingID(java.lang.String id)
|
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 |
setPubKey(java.lang.String Id)
Sets Public Key ID |
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 |
| Field Detail |
|---|
protected java.util.ResourceBundle sources
protected java.lang.String userId
protected ConversationPanel conversation
protected java.lang.String name
protected boolean removed
protected boolean hasSignedOn
protected java.lang.String resources
protected java.util.Hashtable presences
protected java.util.Properties statusMessages
protected java.lang.String tempGroup
protected java.lang.String versionInfo
protected java.lang.String composingId
protected boolean encrypting
protected boolean askForDelivered
protected boolean askForDisplayed
protected boolean askForOffline
protected java.util.Hashtable notDisplayedMessages
protected java.lang.String pubKeyId
protected org.jivesoftware.smack.RosterEntry entry
| Constructor Detail |
|---|
public BuddyStatus(java.lang.String buddyId)
buddyId - the buddy/user to track| Method Detail |
|---|
public void setComposingID(java.lang.String id)
public java.lang.String getComposingID()
public void addNotDisplayedID(java.lang.String packetID,
java.lang.String from)
public void sendNotDisplayedID()
public java.lang.String getHighestResource()
public java.lang.String getAddress()
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()
public boolean isEncrypting()
public void isEncrypting(boolean variant)
variant - encryption statuspublic boolean isAskForDelivered()
public void isAskForDelivered(boolean variant)
public boolean isAskForDisplayed()
public void isAskForDisplayed(boolean variant)
public boolean isAskForOffline()
public void isAskForOffline(boolean variant)
public java.lang.String getPubKey()
public void setPubKey(java.lang.String Id)
ID - public key IDpublic void newPubKey()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||