src/com/beem/project/beem/service/aidl/IBeemConnectionListener.aidl
author nikita@nikita-rack
Thu, 09 Apr 2009 17:58:19 +0200
changeset 96 e0eabd2266fe
parent 55 66732dd2cb77
child 97 58622a0f9485
permissions -rw-r--r--
ajout du debut de la gestion d'erreur de connection bout en bout, il faudra rajouter les differents evenements.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
29
a49d1556772c Starting work on the Service interface.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     1
package com.beem.project.beem.service.aidl;
a49d1556772c Starting work on the Service interface.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     2
55
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
     3
/**
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
     4
 * Interface to listen for connection events
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
     5
 * @author Da Risk <barthe_f@epitech.eu>
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
     6
 */
29
a49d1556772c Starting work on the Service interface.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     7
interface IBeemConnectionListener {
a49d1556772c Starting work on the Service interface.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     8
	
55
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
     9
    /**
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
    10
     *  Callback to call when the connection is closed
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
    11
     */
29
a49d1556772c Starting work on the Service interface.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    12
    void connectionClosed();
a49d1556772c Starting work on the Service interface.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    13
    
55
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
    14
    /**
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
    15
     *  Callback to call when the connection occurs
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
    16
     */
31
85faac00d92c Asynchronous service almost perfect.
Da Risk <darisk972@gmail.com>
parents: 29
diff changeset
    17
    void onConnect();
85faac00d92c Asynchronous service almost perfect.
Da Risk <darisk972@gmail.com>
parents: 29
diff changeset
    18
    
29
a49d1556772c Starting work on the Service interface.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    19
    //void connectionClosedOnError(in Exception e);
55
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
    20
    /**
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
    21
     *  Callback to call when the connection is closed on error
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
    22
     */
29
a49d1556772c Starting work on the Service interface.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    23
    void connectionClosedOnError();
a49d1556772c Starting work on the Service interface.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    24
     
55
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
    25
    /**
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
    26
     * Callback to call when trying to reconnecting
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
    27
     */
29
a49d1556772c Starting work on the Service interface.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    28
    void reconnectingIn(in int seconds);
a49d1556772c Starting work on the Service interface.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    29
    
55
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
    30
    /**
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
    31
     *  Callback to call when the reconnection has failed
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
    32
     */
29
a49d1556772c Starting work on the Service interface.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    33
    void reconnectionFailed();
a49d1556772c Starting work on the Service interface.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    34
     
55
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
    35
    /**
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
    36
     *  Callback to call when the reconnection is successfull
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 31
diff changeset
    37
     */ 
29
a49d1556772c Starting work on the Service interface.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    38
    void reconnectionSuccessful();
96
e0eabd2266fe ajout du debut de la gestion d'erreur de connection bout en bout, il
nikita@nikita-rack
parents: 55
diff changeset
    39
    
e0eabd2266fe ajout du debut de la gestion d'erreur de connection bout en bout, il
nikita@nikita-rack
parents: 55
diff changeset
    40
    /**
e0eabd2266fe ajout du debut de la gestion d'erreur de connection bout en bout, il
nikita@nikita-rack
parents: 55
diff changeset
    41
     *  Callback to call when the connection Failed
e0eabd2266fe ajout du debut de la gestion d'erreur de connection bout en bout, il
nikita@nikita-rack
parents: 55
diff changeset
    42
     */ 
e0eabd2266fe ajout du debut de la gestion d'erreur de connection bout en bout, il
nikita@nikita-rack
parents: 55
diff changeset
    43
    void connectionFailed();
29
a49d1556772c Starting work on the Service interface.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    44
}