src/com/beem/project/beem/service/aidl/IXmppFacade.aidl
author Nikita Kozlov <nikita@mbdsys.com>
Sun, 05 Dec 2010 18:45:47 +0100
changeset 929 6cbb9b3117b7
parent 808 98d220b7fe9d
child 839 0e5b95573614
child 892 d23d8ad3b9ba
permissions -rwxr-xr-x
merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
     1
/*
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
     2
    BEEM is a videoconference application on the Android Platform.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
     3
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
     4
    Copyright (C) 2009 by Frederic-Charles Barthelery,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
     5
                          Jean-Manuel Da Silva,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
     6
                          Nikita Kozlov,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
     7
                          Philippe Lago,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
     8
                          Jean Baptiste Vergely,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
     9
                          Vincent Veronis.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    10
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    11
    This file is part of BEEM.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    12
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    13
    BEEM is free software: you can redistribute it and/or modify
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    14
    it under the terms of the GNU General Public License as published by
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    15
    the Free Software Foundation, either version 3 of the License, or
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    16
    (at your option) any later version.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    17
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    18
    BEEM is distributed in the hope that it will be useful,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    19
    but WITHOUT ANY WARRANTY; without even the implied warranty of
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    20
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    21
    GNU General Public License for more details.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    22
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    23
    You should have received a copy of the GNU General Public License
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    24
    along with BEEM.  If not, see <http://www.gnu.org/licenses/>.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    25
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    26
    Please send bug reports with examples or suggestions to
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    27
    contact@beem-project.com or http://dev.beem-project.com/
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    28
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    29
    Epitech, hereby disclaims all copyright interest in the program "Beem"
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    30
    written by Frederic-Charles Barthelery,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    31
               Jean-Manuel Da Silva,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    32
               Nikita Kozlov,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    33
               Philippe Lago,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    34
               Jean Baptiste Vergely,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    35
               Vincent Veronis.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    36
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    37
    Nicolas Sadirac, November 26, 2009
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    38
    President of Epitech.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    39
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    40
    Flavien Astraud, November 26, 2009
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    41
    Head of the EIP Laboratory.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    42
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    43
*/
29
a49d1556772c Starting work on the Service interface.
Da Risk <darisk972@gmail.com>
parents: 17
diff changeset
    44
package com.beem.project.beem.service.aidl;
17
afd3a080d318 On a un service qui se lance.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    45
55
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 38
diff changeset
    46
import  com.beem.project.beem.service.aidl.IXmppConnection;
38
3e76846c48a9 We can now get the contact list of the user.
Da Risk <darisk972@gmail.com>
parents: 33
diff changeset
    47
import  com.beem.project.beem.service.aidl.IRoster;
57
c91278dda166 La facade et la connexion permette de recuperer une instance de ChatManager
Da Risk <darisk972@gmail.com>
parents: 55
diff changeset
    48
import  com.beem.project.beem.service.aidl.IChatManager;
518
6b8089c9b834 Creation de l'activite PrivacyList et d'une interface PrivacyListListener ainsi que son implementation.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 515
diff changeset
    49
import  com.beem.project.beem.service.aidl.IPrivacyListManager;
155
7919a49cd5c6 ajout de la gestion de subscription
nikita@nikita-rack
parents: 106
diff changeset
    50
import com.beem.project.beem.service.PresenceAdapter;
17
afd3a080d318 On a un service qui se lance.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    51
67
8c3870db8e31 Rename some XMPP* classes in Xmpp*
Da Risk <darisk972@gmail.com>
parents: 57
diff changeset
    52
interface IXmppFacade {
17
afd3a080d318 On a un service qui se lance.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    53
106
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    54
    /**
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    55
     * Get the XmppConnection of the facade.
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    56
     */
55
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents: 38
diff changeset
    57
    IXmppConnection createConnection();
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    58
106
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    59
    /**
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    60
     * Get the roster of the user
600
53aef2227209 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 599
diff changeset
    61
     */
38
3e76846c48a9 We can now get the contact list of the user.
Da Risk <darisk972@gmail.com>
parents: 33
diff changeset
    62
    IRoster getRoster();
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    63
106
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    64
    /**
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    65
     * Connect and login synchronously on the server.
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    66
     */
31
85faac00d92c Asynchronous service almost perfect.
Da Risk <darisk972@gmail.com>
parents: 29
diff changeset
    67
    void connectSync();
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    68
106
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    69
    /**
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    70
     * Connect and login asynchronously on the server.
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    71
     */
31
85faac00d92c Asynchronous service almost perfect.
Da Risk <darisk972@gmail.com>
parents: 29
diff changeset
    72
    void connectAsync();
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    73
106
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    74
    /**
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    75
     * Disconnect from the server
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    76
     */
31
85faac00d92c Asynchronous service almost perfect.
Da Risk <darisk972@gmail.com>
parents: 29
diff changeset
    77
    void disconnect();
17
afd3a080d318 On a un service qui se lance.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    78
106
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    79
    /**
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    80
     * Get the chat manager.
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    81
     */
57
c91278dda166 La facade et la connexion permette de recuperer une instance de ChatManager
Da Risk <darisk972@gmail.com>
parents: 55
diff changeset
    82
    IChatManager getChatManager();
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    83
106
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    84
    /**
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    85
     * Change the status of the user.
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    86
     * @param status the status to set
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    87
     * @param msg the message state to set
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    88
     */
a9bc9297dff7 Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents: 72
diff changeset
    89
    void changeStatus(in int status, in String msg);
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    90
155
7919a49cd5c6 ajout de la gestion de subscription
nikita@nikita-rack
parents: 106
diff changeset
    91
    void sendPresencePacket(in PresenceAdapter presence);
515
5e4b8b7908f6 Creation de l'interface à distance pour la classe PrivacyListManager.
Jean-Manuel Da Silva <dasilvj@gmail.com>
parents: 443
diff changeset
    92
353
91bf7d256964 merge avec mon debut de rtp
nikita@mapiproxy
parents: 269
diff changeset
    93
    /**
91bf7d256964 merge avec mon debut de rtp
nikita@mapiproxy
parents: 269
diff changeset
    94
     * make a jingle audio call
91bf7d256964 merge avec mon debut de rtp
nikita@mapiproxy
parents: 269
diff changeset
    95
     * @param jid the receiver id
91bf7d256964 merge avec mon debut de rtp
nikita@mapiproxy
parents: 269
diff changeset
    96
     */
91bf7d256964 merge avec mon debut de rtp
nikita@mapiproxy
parents: 269
diff changeset
    97
     void call(in String jid);
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    98
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
    99
     /**
808
98d220b7fe9d Add a way to display the avatar of a contact.
Da Risk <darisk972@gmail.com>
parents: 600
diff changeset
   100
      * get the an avatar
98d220b7fe9d Add a way to display the avatar of a contact.
Da Risk <darisk972@gmail.com>
parents: 600
diff changeset
   101
      * @param id the id of the avatar
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
   102
      */
808
98d220b7fe9d Add a way to display the avatar of a contact.
Da Risk <darisk972@gmail.com>
parents: 600
diff changeset
   103
     byte[] getAvatar(in String id);
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
   104
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 518
diff changeset
   105
     IPrivacyListManager getPrivacyListManager();
17
afd3a080d318 On a un service qui se lance.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   106
}