src/com/beem/project/beem/service/aidl/IBeemConnectionListener.aidl
changeset 55 66732dd2cb77
parent 31 85faac00d92c
child 96 e0eabd2266fe
equal deleted inserted replaced
54:dfbb0fbece57 55:66732dd2cb77
     1 package com.beem.project.beem.service.aidl;
     1 package com.beem.project.beem.service.aidl;
     2 
     2 
       
     3 /**
       
     4  * Interface to listen for connection events
       
     5  * @author Da Risk <barthe_f@epitech.eu>
       
     6  */
     3 interface IBeemConnectionListener {
     7 interface IBeemConnectionListener {
     4 	
     8 	
       
     9     /**
       
    10      *  Callback to call when the connection is closed
       
    11      */
     5     void connectionClosed();
    12     void connectionClosed();
     6     
    13     
       
    14     /**
       
    15      *  Callback to call when the connection occurs
       
    16      */
     7     void onConnect();
    17     void onConnect();
     8     
    18     
     9     //void connectionClosedOnError(in Exception e);
    19     //void connectionClosedOnError(in Exception e);
       
    20     /**
       
    21      *  Callback to call when the connection is closed on error
       
    22      */
    10     void connectionClosedOnError();
    23     void connectionClosedOnError();
    11      
    24      
       
    25     /**
       
    26      * Callback to call when trying to reconnecting
       
    27      */
    12     void reconnectingIn(in int seconds);
    28     void reconnectingIn(in int seconds);
    13     
    29     
       
    30     /**
       
    31      *  Callback to call when the reconnection has failed
       
    32      */
    14     void reconnectionFailed();
    33     void reconnectionFailed();
    15      
    34      
       
    35     /**
       
    36      *  Callback to call when the reconnection is successfull
       
    37      */ 
    16     void reconnectionSuccessful();
    38     void reconnectionSuccessful();
    17 }
    39 }