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();
}
