petit commit pour marseille
authornikita@nikita-rack
Sat, 04 Apr 2009 08:41:51 +0200
changeset 64 41ceca987a6c
parent 63 edd2c2ffe3ac
child 65 fcafa1e28942
petit commit pour marseille
src/com/beem/project/beem/service/RosterAdapter.java
--- a/src/com/beem/project/beem/service/RosterAdapter.java	Sat Apr 04 08:26:31 2009 +0200
+++ b/src/com/beem/project/beem/service/RosterAdapter.java	Sat Apr 04 08:41:51 2009 +0200
@@ -50,17 +50,11 @@
 		}
 	}
 
-	/**
-	 * {@inheritDoc}
-	 */
 	@Override
 	public void createGroup(String groupname) throws RemoteException {
 		mAdaptee.createGroup(groupname);
 	}
 
-	/**
-	 * {@inheritDoc}
-	 */
 	@Override
 	public Contact addContact(String user, String name, String[] groups) throws RemoteException {
 		try {
@@ -78,26 +72,21 @@
 	 */
 	@Override
 	public void deleteContact(Contact contact) throws RemoteException {
-		// TODO Auto-generated method stub
-
+		mContacts.remove(contact.getJID());
 	}
+	
 	@Override
 	public void addConnectionListener(IBeemRosterListener listen) throws RemoteException {
 		if (listen != null)
 			mRemoteRosListeners.register(listen);
 	}
 
-	/**
-	 * {@inheritDoc}
-	 */
 	@Override
 	public void removeConnectionListener(IBeemRosterListener listen) throws RemoteException {
 		if (listen != null)
 			mRemoteRosListeners.unregister(listen);
 	}
-	/**
-	 * {@inheritDoc}
-	 */
+
 	@Override
 	public Contact getContact(String jid) throws RemoteException {
 		return mContacts.get(jid);
@@ -119,7 +108,7 @@
 		public void entriesAdded(Collection<String> addresses) {
 			final int n = mRemoteRosListeners.beginBroadcast();
 
-			List<String> tab = null;
+			List<String> tab = new ArrayList<String>();
 			for (int i = 0; i < n; i++) {
 				IBeemRosterListener listener = mRemoteRosListeners.getBroadcastItem(i);
 				try {
@@ -139,7 +128,7 @@
 		public void entriesDeleted(Collection<String> addresses) {
 			final int n = mRemoteRosListeners.beginBroadcast();
 
-			List<String> tab = null;
+			List<String> tab = new ArrayList<String>();
 			for (int i = 0; i < n; i++) {
 				IBeemRosterListener listener = mRemoteRosListeners.getBroadcastItem(i);
 				try {
@@ -158,7 +147,7 @@
 		public void entriesUpdated(Collection<String> addresses) {
 			final int n = mRemoteRosListeners.beginBroadcast();
 
-			List<String> tab = null;
+			List<String> tab = new ArrayList<String>();
 			for (int i = 0; i < n; i++) {
 				IBeemRosterListener listener = mRemoteRosListeners.getBroadcastItem(i);
 				try {