public class ContactIcqImpl extends AbstractContact
Modifier and Type | Field and Description |
---|---|
(package private) net.kano.joustsim.oscar.oscar.service.ssi.Buddy |
joustSimBuddy |
Constructor and Description |
---|
ContactIcqImpl(net.kano.joustsim.oscar.oscar.service.ssi.Buddy buddy,
ServerStoredContactListIcqImpl ssclCallback,
boolean isPersistent,
boolean isResolved)
Creates an IcqContactImpl
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAddress()
Returns the ICQ uin (or AIM screen name)of this contact
|
java.lang.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.
|
java.lang.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.
|
java.lang.String |
getStatusMessage()
Return the current status message of this contact.
|
java.lang.String |
getUIN()
Returns the ICQ uin (or AIM screen name)of 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(java.lang.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(java.lang.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(java.lang.String statusMessage)
Sets the current status message for this contact
|
java.lang.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.
|
addResourceListener, equals, fireContactResourceEvent, getPersistableAddress, getResources, hashCode, isMobile, removeResourceListener, supportResources
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 listpublic java.lang.String getUIN()
public java.lang.String getAddress()
public boolean isLocal()
public byte[] getImage()
net.kano.joustsim.oscar.oscar.service.ssi.Buddy getJoustSimBuddy()
public java.lang.String toString()
toString
in class java.lang.Object
void 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()
public java.lang.String getDisplayName()
protected void setNickname(java.lang.String nickname)
nickname
- String the valuepublic ContactGroup getParentContactGroup()
public ProtocolProviderService getProtocolProvider()
public boolean isPersistent()
void 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 java.lang.String getPersistentData()
public boolean isResolved()
public void setPersistentData(java.lang.String persistentData)
protected void setImage(byte[] image)
image
- a photo/avatar associated with this contact.public java.lang.String getStatusMessage()
protected void setStatusMessage(java.lang.String statusMessage)
statusMessage
- the message
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.