|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.icq.ContactIcqImpl
public class ContactIcqImpl
The ICQ implementation of the service.protocol.Contact interface.
| Field Summary | |
|---|---|
(package private) net.kano.joustsim.oscar.oscar.service.ssi.Buddy |
joustSimBuddy
|
| Constructor Summary | |
|---|---|
ContactIcqImpl(net.kano.joustsim.oscar.oscar.service.ssi.Buddy buddy,
ServerStoredContactListIcqImpl ssclCallback,
boolean isPersistent,
boolean isResolved)
Creates an IcqContactImpl |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
String |
getAddress()
Returns the ICQ uin (or AIM screen name)of this contact |
String |
getDisplayName()
Returns a String that could be used by any user interacting modules for referring to this contact. |
byte[] |
getImage()
Checks if an avatar or an image already exists for this contact and returns it. |
(package private) net.kano.joustsim.oscar.oscar.service.ssi.Buddy |
getJoustSimBuddy()
Returns the joust sim buddy that this Contact is encapsulating. |
ContactGroup |
getParentContactGroup()
Returns a reference to the contact group that this contact is currently a child of or null if the underlying protocol does not suppord persistent presence. |
String |
getPersistentData()
Returns the persistent data - for now only the nickname is needed for restoring the contact data. |
PresenceStatus |
getPresenceStatus()
Returns the status of the contact as per the last status update we've received for it. |
ProtocolProviderService |
getProtocolProvider()
Returns a reference to the protocol provider that created the contact. |
String |
getStatusMessage()
Return the current status message of this contact. |
String |
getUIN()
Returns the ICQ uin (or AIM screen name)of this contact |
int |
hashCode()
Returns a hashCode for this contact. |
boolean |
isLocal()
Determines whether or not this Contact instance represents the user used by this protocol provider to connect to the service. |
boolean |
isPersistent()
Determines whether or not this contact is being stored by the server. |
boolean |
isResolved()
Determines whether or not this contact has been resolved against the server. |
protected void |
setImage(byte[] image)
Used to set the image of the contact if it is updated |
(package private) void |
setJoustSimBuddy(net.kano.joustsim.oscar.oscar.service.ssi.Buddy newBuddy)
Changes the buddy encapsulated by this method to be newBuddy. |
protected void |
setNickname(String nickname)
Used to set the nickname of the contact if it is update in the ContactList |
(package private) void |
setPersistent(boolean persistent)
Specifies whether this contact is to be considered persistent or not. |
void |
setPersistentData(String persistentData)
|
(package private) void |
setResolved(boolean resolved)
Specifies whether this contact has been resolved, or in other words that its presence in the server stored contact list has been confirmed. |
protected void |
setStatusMessage(String statusMessage)
Sets the current status message for this contact |
String |
toString()
Returns a string representation of this contact, containing most of its representative details. |
(package private) void |
updatePresenceStatus(PresenceStatus status)
Sets the status that this contact is currently in. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
net.kano.joustsim.oscar.oscar.service.ssi.Buddy joustSimBuddy
| Constructor Detail |
|---|
ContactIcqImpl(net.kano.joustsim.oscar.oscar.service.ssi.Buddy buddy,
ServerStoredContactListIcqImpl ssclCallback,
boolean isPersistent,
boolean isResolved)
buddy - the JoustSIM object that we will be encapsulating.ssclCallback - a reference to the ServerStoredContactListIcqImpl
instance that created us.isPersistent - determines whether this contact is persistent or not.isResolved - specifies whether the contact has been resolved against
the server contact list| Method Detail |
|---|
public String getUIN()
public String getAddress()
getAddress in interface Contactpublic boolean isLocal()
public byte[] getImage()
getImage in interface Contactpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - the reference object with which to compare.
net.kano.joustsim.oscar.oscar.service.ssi.Buddy getJoustSimBuddy()
public String toString()
toString in class Objectvoid setJoustSimBuddy(net.kano.joustsim.oscar.oscar.service.ssi.Buddy newBuddy)
newBuddy - the new Buddy reference that this contact will
encapsulate.void updatePresenceStatus(PresenceStatus status)
status - the IcqStatusEnum that this contact is currently in.public PresenceStatus getPresenceStatus()
getPresenceStatus in interface Contactpublic String getDisplayName()
getDisplayName in interface Contactprotected void setNickname(String nickname)
nickname - String the valuepublic ContactGroup getParentContactGroup()
getParentContactGroup in interface Contactpublic ProtocolProviderService getProtocolProvider()
getProtocolProvider in interface Contactpublic boolean isPersistent()
isPersistent in interface Contactvoid setPersistent(boolean persistent)
persistent - true if the buddy is to be considered persistent and
false for volatile.void setResolved(boolean resolved)
resolved - true if the buddy is resolved against the server stored
contact list and false otherwise.public String getPersistentData()
getPersistentData in interface Contactpublic boolean isResolved()
isResolved in interface Contactpublic void setPersistentData(String persistentData)
protected void setImage(byte[] image)
image - a photo/avatar associated with this contact.public String getStatusMessage()
getStatusMessage in interface Contactprotected void setStatusMessage(String statusMessage)
statusMessage - the message
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||