src/com/beem/project/beem/service/aidl/IBeemConnectionListener.aidl
author Da Risk <darisk972@gmail.com>
Thu, 02 Apr 2009 19:00:57 +0200
changeset 55 66732dd2cb77
parent 31 85faac00d92c
child 96 e0eabd2266fe
permissions -rw-r--r--
Add an interface for sending im message. Do some javadoc comments
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();
a49d1556772c Starting work on the Service interface.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    39
}