src/com/beem/project/beem/service/aidl/IBeemConnectionListener.aidl
author nikita@nikita-rack
Thu, 09 Apr 2009 19:03:23 +0200
changeset 97 58622a0f9485
parent 96 e0eabd2266fe
child 98 4d6ff785605d
permissions -rw-r--r--
petites majs sur le TimeOut

package com.beem.project.beem.service.aidl;

/**
 * Interface to listen for connection events
 * @author Da Risk <barthe_f@epitech.eu>
 */
interface IBeemConnectionListener {
	
    /**
     *  Callback to call when the connection is closed
     */
    void connectionClosed();
    
    /**
     *  Callback to call when the connection occurs
     */
    void onConnect();
    
    //void connectionClosedOnError(in Exception e);
    /**
     *  Callback to call when the connection is closed on error
     */
    void connectionClosedOnError();
     
    /**
     * Callback to call when trying to reconnecting
     */
    void reconnectingIn(in int seconds);
    
    /**
     *  Callback to call when the reconnection has failed
     */
    void reconnectionFailed();
     
    /**
     *  Callback to call when the reconnection is successfull
     */ 
    void reconnectionSuccessful();
    
    /**
     *  Callback to call when the connection Failed
     */ 
    void connectionFailed(in String errorMsg);
}