author | Da Risk <darisk972@gmail.com> |
Sun, 20 Feb 2011 03:46:43 +0100 | |
changeset 893 | 0ceee1f2b829 |
parent 892 | d23d8ad3b9ba |
child 924 | c82293948d2f |
permissions | -rw-r--r-- |
599 | 1 |
/* |
2 |
BEEM is a videoconference application on the Android Platform. |
|
3 |
||
4 |
Copyright (C) 2009 by Frederic-Charles Barthelery, |
|
5 |
Jean-Manuel Da Silva, |
|
6 |
Nikita Kozlov, |
|
7 |
Philippe Lago, |
|
8 |
Jean Baptiste Vergely, |
|
9 |
Vincent Veronis. |
|
10 |
||
11 |
This file is part of BEEM. |
|
12 |
||
13 |
BEEM is free software: you can redistribute it and/or modify |
|
14 |
it under the terms of the GNU General Public License as published by |
|
15 |
the Free Software Foundation, either version 3 of the License, or |
|
16 |
(at your option) any later version. |
|
17 |
||
18 |
BEEM is distributed in the hope that it will be useful, |
|
19 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
20 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
21 |
GNU General Public License for more details. |
|
22 |
||
23 |
You should have received a copy of the GNU General Public License |
|
24 |
along with BEEM. If not, see <http://www.gnu.org/licenses/>. |
|
25 |
||
26 |
Please send bug reports with examples or suggestions to |
|
27 |
contact@beem-project.com or http://dev.beem-project.com/ |
|
28 |
||
29 |
Epitech, hereby disclaims all copyright interest in the program "Beem" |
|
30 |
written by Frederic-Charles Barthelery, |
|
31 |
Jean-Manuel Da Silva, |
|
32 |
Nikita Kozlov, |
|
33 |
Philippe Lago, |
|
34 |
Jean Baptiste Vergely, |
|
35 |
Vincent Veronis. |
|
36 |
||
37 |
Nicolas Sadirac, November 26, 2009 |
|
38 |
President of Epitech. |
|
39 |
||
40 |
Flavien Astraud, November 26, 2009 |
|
41 |
Head of the EIP Laboratory. |
|
42 |
||
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 | 45 |
|
893
0ceee1f2b829
Show current avatar in ChangeStatus.
Da Risk <darisk972@gmail.com>
parents:
892
diff
changeset
|
46 |
import com.beem.project.beem.service.aidl.IXmppConnection; |
0ceee1f2b829
Show current avatar in ChangeStatus.
Da Risk <darisk972@gmail.com>
parents:
892
diff
changeset
|
47 |
import com.beem.project.beem.service.aidl.IRoster; |
0ceee1f2b829
Show current avatar in ChangeStatus.
Da Risk <darisk972@gmail.com>
parents:
892
diff
changeset
|
48 |
import com.beem.project.beem.service.aidl.IChatManager; |
0ceee1f2b829
Show current avatar in ChangeStatus.
Da Risk <darisk972@gmail.com>
parents:
892
diff
changeset
|
49 |
import com.beem.project.beem.service.aidl.IPrivacyListManager; |
155 | 50 |
import com.beem.project.beem.service.PresenceAdapter; |
893
0ceee1f2b829
Show current avatar in ChangeStatus.
Da Risk <darisk972@gmail.com>
parents:
892
diff
changeset
|
51 |
import com.beem.project.beem.service.UserInfo; |
0ceee1f2b829
Show current avatar in ChangeStatus.
Da Risk <darisk972@gmail.com>
parents:
892
diff
changeset
|
52 |
|
892
d23d8ad3b9ba
Add a basic way to publish avatar.
Da Risk <darisk972@gmail.com>
parents:
808
diff
changeset
|
53 |
import android.net.Uri; |
17 | 54 |
|
67
8c3870db8e31
Rename some XMPP* classes in Xmpp*
Da Risk <darisk972@gmail.com>
parents:
57
diff
changeset
|
55 |
interface IXmppFacade { |
17 | 56 |
|
106
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
57 |
/** |
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
58 |
* Get the XmppConnection of the facade. |
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
59 |
*/ |
55
66732dd2cb77
Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
38
diff
changeset
|
60 |
IXmppConnection createConnection(); |
599 | 61 |
|
106
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
62 |
/** |
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
63 |
* Get the roster of the user |
600 | 64 |
*/ |
38
3e76846c48a9
We can now get the contact list of the user.
Da Risk <darisk972@gmail.com>
parents:
33
diff
changeset
|
65 |
IRoster getRoster(); |
599 | 66 |
|
106
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
67 |
/** |
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
68 |
* Connect and login synchronously on the server. |
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
69 |
*/ |
31
85faac00d92c
Asynchronous service almost perfect.
Da Risk <darisk972@gmail.com>
parents:
29
diff
changeset
|
70 |
void connectSync(); |
599 | 71 |
|
106
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
72 |
/** |
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
73 |
* Connect and login asynchronously on the server. |
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
74 |
*/ |
31
85faac00d92c
Asynchronous service almost perfect.
Da Risk <darisk972@gmail.com>
parents:
29
diff
changeset
|
75 |
void connectAsync(); |
599 | 76 |
|
106
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
77 |
/** |
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
78 |
* Disconnect from the server |
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
79 |
*/ |
31
85faac00d92c
Asynchronous service almost perfect.
Da Risk <darisk972@gmail.com>
parents:
29
diff
changeset
|
80 |
void disconnect(); |
17 | 81 |
|
106
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
82 |
/** |
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
83 |
* Get the chat manager. |
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
84 |
*/ |
57
c91278dda166
La facade et la connexion permette de recuperer une instance de ChatManager
Da Risk <darisk972@gmail.com>
parents:
55
diff
changeset
|
85 |
IChatManager getChatManager(); |
599 | 86 |
|
106
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
87 |
/** |
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
88 |
* Change the status of the user. |
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
89 |
* @param status the status to set |
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
90 |
* @param msg the message state to set |
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
91 |
*/ |
a9bc9297dff7
Amelioration de la methode change status.
Da Risk <darisk972@gmail.com>
parents:
72
diff
changeset
|
92 |
void changeStatus(in int status, in String msg); |
599 | 93 |
|
155 | 94 |
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
|
95 |
|
353 | 96 |
/** |
97 |
* make a jingle audio call |
|
98 |
* @param jid the receiver id |
|
99 |
*/ |
|
100 |
void call(in String jid); |
|
599 | 101 |
|
892
d23d8ad3b9ba
Add a basic way to publish avatar.
Da Risk <darisk972@gmail.com>
parents:
808
diff
changeset
|
102 |
boolean publishAvatar(in Uri avatarUri); |
d23d8ad3b9ba
Add a basic way to publish avatar.
Da Risk <darisk972@gmail.com>
parents:
808
diff
changeset
|
103 |
|
d23d8ad3b9ba
Add a basic way to publish avatar.
Da Risk <darisk972@gmail.com>
parents:
808
diff
changeset
|
104 |
void disableAvatarPublishing(); |
d23d8ad3b9ba
Add a basic way to publish avatar.
Da Risk <darisk972@gmail.com>
parents:
808
diff
changeset
|
105 |
|
893
0ceee1f2b829
Show current avatar in ChangeStatus.
Da Risk <darisk972@gmail.com>
parents:
892
diff
changeset
|
106 |
UserInfo getUserInfo(); |
599 | 107 |
|
108 |
IPrivacyListManager getPrivacyListManager(); |
|
17 | 109 |
} |