ajout de la declaration de featue
authornikita@nikita-rack
Mon, 23 Mar 2009 16:49:55 +0100
changeset 36 d97efe278ca1
parent 35 8006e9ee734e
child 37 4145f456d73b
ajout de la declaration de featue
src/com/beem/project/beem/service/XMPPConnectionAdapter.java
--- a/src/com/beem/project/beem/service/XMPPConnectionAdapter.java	Mon Mar 23 16:45:35 2009 +0100
+++ b/src/com/beem/project/beem/service/XMPPConnectionAdapter.java	Mon Mar 23 16:49:55 2009 +0100
@@ -48,6 +48,7 @@
             throws RemoteException {
      	try {
 	    adaptee.connect();
+	    this.initFeatures(); // pour declarer les features xmpp qu'on supporte
 	    adaptee.addConnectionListener(mConListener);
 	    adaptee.login(username, password, resource);
 	    lastException = null;
@@ -59,7 +60,7 @@
 	return false;
     }
 
-    public boolean disconnect() {
+	public boolean disconnect() {
 	adaptee.disconnect();
 	lastException = null;
 	return true;
@@ -201,7 +202,9 @@
 	    }
 	    mRemoteConnListeners.finishBroadcast();
 	}
-	/**
+	
+    }
+    /**
 	 * @brief: enregistre les featues dispo dans notre version
 	  	Liste de features que Telepathy supporte:
 	     	"http://www.google.com/xmpp/protocol/session"
@@ -248,14 +251,13 @@
 		    "http://www.xmpp.org/extensions/xep-0084.html#ns-metadata+notify"
 		    "http://www.xmpp.org/extensions/xep-0167.html#ns" << Jingle RTP Sessions
 	 */
-	public void initFeatures(){
+	private void initFeatures() {
 		JingleManager.setJingleServiceEnabled();
 		ServiceDiscoveryManager sdm = ServiceDiscoveryManager.getInstanceFor(adaptee);
 		sdm.addFeature("http://jabber.org/protocol/disco#info");
 		//sdm.addFeature("http://jabber.org/protocol/nick");
 
 	}
-    }
     
 
 }