|
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.ServerStoredContactListIcqImpl
public class ServerStoredContactListIcqImpl
This class encapsulates the net.kano BuddyList class. Once created, it will register itself as a listener to the encapsulated BuddyList and modify it's local copy of Contacts and ContactGroups every time an event is generated by the underlying joustsim framework. The class would also generate corresponding sip-communicator events to all events coming from joustsim.
| Constructor Summary | |
|---|---|
ServerStoredContactListIcqImpl(OperationSetPersistentPresenceIcqImpl parentOperationSet,
ProtocolProviderServiceIcqImpl icqProvider)
Creates a ServerStoredContactList wrapper for the specified BuddyList. |
|
| Method Summary | |
|---|---|
void |
addContact(ContactGroupIcqImpl parent,
String screenname)
Adds a new contact with the specified screenname to the list under the specified group. |
void |
addContact(String screenname)
Adds a new contact with the specified screenname to the list under a default location. |
protected void |
addContactForUpdate(ContactIcqImpl c)
when there is no alias for contact we must retreive its nickname from server but when the contact list is loaded the client is not yet registered to server we wait this and then retreive the nicknames |
(package private) void |
addGroupListener(ServerStoredGroupListener listener)
Registers the specified group listener so that it would receive events on group modification/creation/destruction. |
void |
createGroup(String groupName)
Creates the specified group on the server stored contact list. |
(package private) ContactIcqImpl |
createUnresolvedContact(ContactGroupIcqImpl parentGroup,
net.kano.joustsim.Screenname screenname)
Creates a non resolved contact for the specified address and inside the specified group. |
(package private) ContactGroupIcqImpl |
createUnresolvedContactGroup(String groupName)
Creates a non resolved contact group for the specified name. |
(package private) ContactIcqImpl |
createVolatileContact(net.kano.joustsim.Screenname screenname)
Creates a non persistent contact for the specified address. |
ContactIcqImpl |
findContactByJoustSimBuddy(net.kano.joustsim.oscar.oscar.service.ssi.Buddy buddy)
Returns the Contact with the specified screenname (or icq UIN) or null if no such screenname was found. |
ContactIcqImpl |
findContactByScreenName(String screenName)
Returns the Contact with the specified screenname (or icq UIN) or null if no such screenname was found. |
ContactGroupIcqImpl |
findContactGroup(ContactIcqImpl child)
Returns the ContactGroup containing the specified contact or null if no such group or contact exist. |
ContactGroupIcqImpl |
findContactGroup(net.kano.joustsim.oscar.oscar.service.ssi.Group joustSimGroup)
Returns the ContactGroup corresponding to the specified joust sim group. |
ContactGroupIcqImpl |
findContactGroup(String name)
Returns the ConntactGroup with the specified name or null if no such group was found. |
int |
findContactGroupIndex(net.kano.joustsim.oscar.oscar.service.ssi.Group joustSimGroup)
Returns the index of the ContactGroup containing the specified joust sim group. |
(package private) ContactGroupIcqImpl |
findGroup(net.kano.joustsim.oscar.oscar.service.ssi.Buddy buddy)
|
(package private) void |
fireGroupEvent(ContactGroup group,
int eventID)
Creates the corresponding event and notifies all ServerStoredGroupListeners that the source group has been removed, changed, renamed or whatever happened to it. |
(package private) ProtocolProviderServiceIcqImpl |
getParentProvider()
Retrns a reference to the provider that created us. |
ContactGroup |
getRootGroup()
Returns the root group of the contact list. |
(package private) void |
init(net.kano.joustsim.oscar.oscar.service.ssi.SsiService joustSimSsiService)
Sets a reference to the currently active and valid instance of the JoustSIM SsiService that this list is to use for retrieving server stored information |
void |
moveContact(ContactIcqImpl contact,
ContactGroupIcqImpl newParent)
Moves the specified contact to the group indicated by newParent. |
void |
removeGroup(ContactGroupIcqImpl groupToRemove)
Removes the specified group from the icq buddy list. |
(package private) void |
removeGroupListener(ServerStoredGroupListener listener)
Removes the specified group listener so that it won't receive further events on group modification/creation/destruction. |
void |
renameGroup(ContactGroupIcqImpl groupToRename,
String newName)
Renames the specified group according to the specified new name.. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ServerStoredContactListIcqImpl(OperationSetPersistentPresenceIcqImpl parentOperationSet,
ProtocolProviderServiceIcqImpl icqProvider)
parentOperationSet - the operation set that created us and that
we could use for dispatching subscription eventsicqProvider - the icqProvider that has instantiated us.| Method Detail |
|---|
public ContactGroup getRootGroup()
void addGroupListener(ServerStoredGroupListener listener)
listener - the ServerStoredGroupListener to register for group eventsvoid removeGroupListener(ServerStoredGroupListener listener)
listener - the ServerStoredGroupListener to unregister
void fireGroupEvent(ContactGroup group,
int eventID)
group - the ContactGroup that has been created/modified/removedeventID - the id of the event to generate.ProtocolProviderServiceIcqImpl getParentProvider()
public int findContactGroupIndex(net.kano.joustsim.oscar.oscar.service.ssi.Group joustSimGroup)
joustSimGroup - the joust sim group we're looking for.
public ContactGroupIcqImpl findContactGroup(String name)
name - the name of the group we're looking for.
public ContactGroupIcqImpl findContactGroup(net.kano.joustsim.oscar.oscar.service.ssi.Group joustSimGroup)
joustSimGroup - the joust sim group we're looking for.
public ContactIcqImpl findContactByScreenName(String screenName)
screenName - the screen name (or ICQ UIN) of the contact to find.
public ContactIcqImpl findContactByJoustSimBuddy(net.kano.joustsim.oscar.oscar.service.ssi.Buddy buddy)
buddy - the buddy (or ICQ UIN) of the contact to find.
public ContactGroupIcqImpl findContactGroup(ContactIcqImpl child)
child - the contact whose parent group we're looking for.
public void addContact(String screenname)
screenname - the screenname or icq uin of the contact to add.ContactIcqImpl createVolatileContact(net.kano.joustsim.Screenname screenname)
screenname - the UIN/Screenname of the contact to create.
ContactIcqImpl createUnresolvedContact(ContactGroupIcqImpl parentGroup,
net.kano.joustsim.Screenname screenname)
parentGroup - the group where the unersolved contact is to be
createdscreenname - the UIN/Screenname of the contact to create.
ContactGroupIcqImpl createUnresolvedContactGroup(String groupName)
groupName - the name of the group to create.
public void addContact(ContactGroupIcqImpl parent,
String screenname)
screenname - the screenname or icq uin of the contact to add.parent - the group under which we want the new contact placed.public void createGroup(String groupName)
groupName - a String containing the name of the new group.public void removeGroup(ContactGroupIcqImpl groupToRemove)
groupToRemove - the group that we'd like removed.
public void renameGroup(ContactGroupIcqImpl groupToRename,
String newName)
groupToRename - the group that we'd like removed.newName - the new name of the group
public void moveContact(ContactIcqImpl contact,
ContactGroupIcqImpl newParent)
contact - the contact that we'd like moved under the new group.newParent - the group where we'd like the parent placed.void init(net.kano.joustsim.oscar.oscar.service.ssi.SsiService joustSimSsiService)
joustSimSsiService - a valid reference to the currently active JoustSIM
SsiService.protected void addContactForUpdate(ContactIcqImpl c)
c - ContactIcqImplContactGroupIcqImpl findGroup(net.kano.joustsim.oscar.oscar.service.ssi.Buddy buddy)
|
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 | |||||||||