fix build and some comments

Comment fix
cusax-fix
Damian Minkov 20 years ago
parent 0d7d0062dd
commit b48e4a66b3

@ -40,10 +40,16 @@ public class InfoRetreiver
this.ownerUin = ownerUin;
}
// returns the user details from the specified class or its descendants
// the class is one from the
// net.java.sip.communicator.service.protocol.ServerStoredDetails
// or implemented one in the operation set for the user info
/**
* returns the user details from the specified class or its descendants
* the class is one from the
* net.java.sip.communicator.service.protocol.ServerStoredDetails
* or implemented one in the operation set for the user info
*
* @param uin String
* @param detailClass Class
* @return Iterator
*/
public Iterator getDetailsAndDescendants(String uin, Class detailClass)
{
Vector details = getContactDetails(uin);
@ -60,8 +66,14 @@ public Iterator getDetailsAndDescendants(String uin, Class detailClass)
return result.iterator();
}
// returns the user details from the specified class
// exactly that class not its descendants
/**
* returns the user details from the specified class
* exactly that class not its descendants
*
* @param uin String
* @param detailClass Class
* @return Iterator
*/
public Iterator getDetails(String uin, Class detailClass)
{
Vector details = getContactDetails(uin);
@ -78,8 +90,13 @@ public Iterator getDetails(String uin, Class detailClass)
return result.iterator();
}
// request the full info for the given uin
// waits and return this details
/**
* request the full info for the given uin
* waits and return this details
*
* @param uin String
* @return Vector
*/
protected Vector getContactDetails(String uin)
{
Vector result = (Vector)retreivedDetails.get(uin);
@ -122,7 +139,9 @@ protected Vector getContactDetails(String uin)
return result;
}
// waits for the last snac from the full info response sequence
/**
* waits for the last snac from the full info response sequence
*/
private class UserInfoResponseRetriever extends SnacRequestAdapter
{
int requestID;
@ -152,7 +171,9 @@ public void handleResponse(SnacResponseEvent e)
}
}
// wait for response of our ShorInfo Requests
/**
* wait for response of our ShorInfo Requests
*/
private class ShortInfoResponseRetriever extends SnacRequestAdapter
{
String nickname = null;

@ -665,10 +665,14 @@ private ContactGroupIcqImpl getFirstPersistentGroup()
return null;
}
// when there is no alias for contact we must retreive its nickname from server
// but when the contact list is loaded the provider is not yet registered to server
// we wait to register process to finish and then retreive the nicknames
// this happens only the first time contact list is loaded
/**
* when there is no alias for contact we must retreive its nickname from server
* but when the contact list is loaded the provider is not yet registered to server
* we wait to register process to finish and then retreive the nicknames
* this happens only the first time contact list is loaded
*
* @param c ContactIcqImpl
*/
protected void addContactForUpdate(ContactIcqImpl c)
{
if(getParentProvider().getRegistrationState().
@ -1173,8 +1177,10 @@ public void handleItemModified(SsiItem item)
}
// Waits for registration process to finish
// then updates all contacts that need their nickname to be updated
/**
* Waits for registration process to finish
* then updates all contacts that need their nickname to be updated
*/
private class ProviderListener
implements RegistrationStateChangeListener
{
@ -1201,7 +1207,9 @@ public void registrationStateChanged(RegistrationStateChangeEvent evt)
}
}
// Thread retreiving nickname and firing event for the change
/**
* Thread retreiving nickname and firing event for the change
*/
private class NickRetriever
implements Runnable
{
@ -1217,7 +1225,7 @@ public void run()
String nickName = getParentProvider().
getInfoRetreiver().getNickName(c.getUIN());
c.setDisplayName(nickName);
c.setNickname(nickName);
parentOperationSet.fireContactPropertyChangeEvent(
ContactPropertyChangeEvent.PROPERTY_DISPLAY_NAME, c, oldNickname, nickName);

Loading…
Cancel
Save