src/com/beem/project/beem/service/aidl/IChat.aidl
author Da Risk <da_risk@beem-project.com>
Fri, 26 Dec 2014 15:43:38 +0100
changeset 1037 025c482d5530
parent 984 46b16746d8a2
permissions -rw-r--r--
Make the project compile with SDK 21 (lollipop)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
     1
/*
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
     2
    BEEM is a videoconference application on the Android Platform.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
     3
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
     4
    Copyright (C) 2009 by Frederic-Charles Barthelery,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
     5
                          Jean-Manuel Da Silva,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
     6
                          Nikita Kozlov,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
     7
                          Philippe Lago,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
     8
                          Jean Baptiste Vergely,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
     9
                          Vincent Veronis.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    10
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    11
    This file is part of BEEM.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    12
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    13
    BEEM is free software: you can redistribute it and/or modify
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    14
    it under the terms of the GNU General Public License as published by
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    15
    the Free Software Foundation, either version 3 of the License, or
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    16
    (at your option) any later version.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    17
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    18
    BEEM is distributed in the hope that it will be useful,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    19
    but WITHOUT ANY WARRANTY; without even the implied warranty of
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    20
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    21
    GNU General Public License for more details.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    22
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    23
    You should have received a copy of the GNU General Public License
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    24
    along with BEEM.  If not, see <http://www.gnu.org/licenses/>.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    25
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    26
    Please send bug reports with examples or suggestions to
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    27
    contact@beem-project.com or http://dev.beem-project.com/
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    28
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    29
    Epitech, hereby disclaims all copyright interest in the program "Beem"
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    30
    written by Frederic-Charles Barthelery,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    31
               Jean-Manuel Da Silva,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    32
               Nikita Kozlov,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    33
               Philippe Lago,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    34
               Jean Baptiste Vergely,
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    35
               Vincent Veronis.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    36
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    37
    Nicolas Sadirac, November 26, 2009
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    38
    President of Epitech.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    39
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    40
    Flavien Astraud, November 26, 2009
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    41
    Head of the EIP Laboratory.
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    42
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    43
*/
55
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    44
package com.beem.project.beem.service.aidl;
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    45
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    46
import  com.beem.project.beem.service.Contact;
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    47
import  com.beem.project.beem.service.Message;
119
c93e4b69f031 Correction de bug sur la reception de messages
Da Risk <darisk972@gmail.com>
parents: 99
diff changeset
    48
import  com.beem.project.beem.service.aidl.IMessageListener;
55
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    49
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    50
/**
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    51
 * An aidl interface for Chat session.
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    52
 */
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    53
interface IChat {
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    54
55
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    55
    	/**
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    56
    	 * Send a message.
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    57
    	 * @param message	the message to send
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    58
    	 */
1037
025c482d5530 Make the project compile with SDK 21 (lollipop)
Da Risk <da_risk@beem-project.com>
parents: 984
diff changeset
    59
	void sendMessage(in com.beem.project.beem.service.Message message);
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    60
55
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    61
	/**
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    62
	 * Get the participant of the chat
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    63
	 * @return the participant
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    64
	 */
99
8de21ac527ce revert pour refaire un push propre
nikita@nikita-rack
parents: 98
diff changeset
    65
	Contact getParticipant();
583
ca7bec1b5754 Add methods for managing MessageListeners in the Chat adapter.
Da Risk <darisk972@gmail.com>
parents: 219
diff changeset
    66
ca7bec1b5754 Add methods for managing MessageListeners in the Chat adapter.
Da Risk <darisk972@gmail.com>
parents: 219
diff changeset
    67
	/**
ca7bec1b5754 Add methods for managing MessageListeners in the Chat adapter.
Da Risk <darisk972@gmail.com>
parents: 219
diff changeset
    68
	 * Add a message listener.
ca7bec1b5754 Add methods for managing MessageListeners in the Chat adapter.
Da Risk <darisk972@gmail.com>
parents: 219
diff changeset
    69
	 * @param listener the listener to add.
ca7bec1b5754 Add methods for managing MessageListeners in the Chat adapter.
Da Risk <darisk972@gmail.com>
parents: 219
diff changeset
    70
	 */
ca7bec1b5754 Add methods for managing MessageListeners in the Chat adapter.
Da Risk <darisk972@gmail.com>
parents: 219
diff changeset
    71
	void addMessageListener(in IMessageListener listener);
ca7bec1b5754 Add methods for managing MessageListeners in the Chat adapter.
Da Risk <darisk972@gmail.com>
parents: 219
diff changeset
    72
ca7bec1b5754 Add methods for managing MessageListeners in the Chat adapter.
Da Risk <darisk972@gmail.com>
parents: 219
diff changeset
    73
	/**
ca7bec1b5754 Add methods for managing MessageListeners in the Chat adapter.
Da Risk <darisk972@gmail.com>
parents: 219
diff changeset
    74
	 * Remove a message listener.
ca7bec1b5754 Add methods for managing MessageListeners in the Chat adapter.
Da Risk <darisk972@gmail.com>
parents: 219
diff changeset
    75
	 * @param listener the listener to remove.
ca7bec1b5754 Add methods for managing MessageListeners in the Chat adapter.
Da Risk <darisk972@gmail.com>
parents: 219
diff changeset
    76
	 */
ca7bec1b5754 Add methods for managing MessageListeners in the Chat adapter.
Da Risk <darisk972@gmail.com>
parents: 219
diff changeset
    77
	void removeMessageListener(in IMessageListener listener);
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    78
99
8de21ac527ce revert pour refaire un push propre
nikita@nikita-rack
parents: 98
diff changeset
    79
	String getState();
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    80
187
ce342bfa7bdb IssueId #100
nikita@nikita-portable
parents: 119
diff changeset
    81
	void setOpen(in boolean isOpen);
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    82
187
ce342bfa7bdb IssueId #100
nikita@nikita-portable
parents: 119
diff changeset
    83
	boolean isOpen();
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    84
984
46b16746d8a2 Improve notification by using NotificationCompat.Builder
Da Risk <da_risk@beem-project.com>
parents: 929
diff changeset
    85
	int getUnreadMessageCount();
46b16746d8a2 Improve notification by using NotificationCompat.Builder
Da Risk <da_risk@beem-project.com>
parents: 929
diff changeset
    86
119
c93e4b69f031 Correction de bug sur la reception de messages
Da Risk <darisk972@gmail.com>
parents: 99
diff changeset
    87
	void setState(in String state);
599
cdadf4e39f99 Checkstyle
Da Risk <darisk972@gmail.com>
parents: 583
diff changeset
    88
1037
025c482d5530 Make the project compile with SDK 21 (lollipop)
Da Risk <da_risk@beem-project.com>
parents: 984
diff changeset
    89
	List<com.beem.project.beem.service.Message> getMessages();
984
46b16746d8a2 Improve notification by using NotificationCompat.Builder
Da Risk <da_risk@beem-project.com>
parents: 929
diff changeset
    90
906
0ff0059f2ec3 initial commit adding otr to beem, it's based on http://bitbucket.org/romanzadov/beem, with a better beem integration
Nikita Kozlov <nikita@mbdsys.com>
parents: 599
diff changeset
    91
	/**
912
bf953743f5a1 rewrite BeemOtrManager as a singleton and merge it with BeemOtrEngineHostImpl
Nikita Kozlov <nikita@mbdsys.com>
parents: 906
diff changeset
    92
	 * Try to start an OTR session.
906
0ff0059f2ec3 initial commit adding otr to beem, it's based on http://bitbucket.org/romanzadov/beem, with a better beem integration
Nikita Kozlov <nikita@mbdsys.com>
parents: 599
diff changeset
    93
	 */
0ff0059f2ec3 initial commit adding otr to beem, it's based on http://bitbucket.org/romanzadov/beem, with a better beem integration
Nikita Kozlov <nikita@mbdsys.com>
parents: 599
diff changeset
    94
	void startOtrSession();
984
46b16746d8a2 Improve notification by using NotificationCompat.Builder
Da Risk <da_risk@beem-project.com>
parents: 929
diff changeset
    95
906
0ff0059f2ec3 initial commit adding otr to beem, it's based on http://bitbucket.org/romanzadov/beem, with a better beem integration
Nikita Kozlov <nikita@mbdsys.com>
parents: 599
diff changeset
    96
	/**
912
bf953743f5a1 rewrite BeemOtrManager as a singleton and merge it with BeemOtrEngineHostImpl
Nikita Kozlov <nikita@mbdsys.com>
parents: 906
diff changeset
    97
	 * Stop the OTR session.
906
0ff0059f2ec3 initial commit adding otr to beem, it's based on http://bitbucket.org/romanzadov/beem, with a better beem integration
Nikita Kozlov <nikita@mbdsys.com>
parents: 599
diff changeset
    98
	 */
0ff0059f2ec3 initial commit adding otr to beem, it's based on http://bitbucket.org/romanzadov/beem, with a better beem integration
Nikita Kozlov <nikita@mbdsys.com>
parents: 599
diff changeset
    99
	void endOtrSession();
984
46b16746d8a2 Improve notification by using NotificationCompat.Builder
Da Risk <da_risk@beem-project.com>
parents: 929
diff changeset
   100
912
bf953743f5a1 rewrite BeemOtrManager as a singleton and merge it with BeemOtrEngineHostImpl
Nikita Kozlov <nikita@mbdsys.com>
parents: 906
diff changeset
   101
	/**
921
ab30d289a86c adding a keystore for otr, adding buttons which display fingerprints
Nikita Kozlov <nikita@beem-project.com>
parents: 912
diff changeset
   102
	 * get local OTR key fingerprints.
ab30d289a86c adding a keystore for otr, adding buttons which display fingerprints
Nikita Kozlov <nikita@beem-project.com>
parents: 912
diff changeset
   103
	 */
ab30d289a86c adding a keystore for otr, adding buttons which display fingerprints
Nikita Kozlov <nikita@beem-project.com>
parents: 912
diff changeset
   104
	String getLocalOtrFingerprint();
984
46b16746d8a2 Improve notification by using NotificationCompat.Builder
Da Risk <da_risk@beem-project.com>
parents: 929
diff changeset
   105
46b16746d8a2 Improve notification by using NotificationCompat.Builder
Da Risk <da_risk@beem-project.com>
parents: 929
diff changeset
   106
921
ab30d289a86c adding a keystore for otr, adding buttons which display fingerprints
Nikita Kozlov <nikita@beem-project.com>
parents: 912
diff changeset
   107
	/**
ab30d289a86c adding a keystore for otr, adding buttons which display fingerprints
Nikita Kozlov <nikita@beem-project.com>
parents: 912
diff changeset
   108
	 * get remote OTR key fingerprints.
ab30d289a86c adding a keystore for otr, adding buttons which display fingerprints
Nikita Kozlov <nikita@beem-project.com>
parents: 912
diff changeset
   109
	 */
ab30d289a86c adding a keystore for otr, adding buttons which display fingerprints
Nikita Kozlov <nikita@beem-project.com>
parents: 912
diff changeset
   110
	String getRemoteOtrFingerprint();
984
46b16746d8a2 Improve notification by using NotificationCompat.Builder
Da Risk <da_risk@beem-project.com>
parents: 929
diff changeset
   111
929
a4bbcfbd0a91 managing otr fingerprint authentication
Nikita Kozlov <nikita@beem-project.com>
parents: 928
diff changeset
   112
	void verifyRemoteFingerprint(in boolean ok);
984
46b16746d8a2 Improve notification by using NotificationCompat.Builder
Da Risk <da_risk@beem-project.com>
parents: 929
diff changeset
   113
46b16746d8a2 Improve notification by using NotificationCompat.Builder
Da Risk <da_risk@beem-project.com>
parents: 929
diff changeset
   114
925
5441ea00c4f1 check otr status when openning a new chat
Nikita Kozlov <nikita@beem-project.com>
parents: 921
diff changeset
   115
	/**
5441ea00c4f1 check otr status when openning a new chat
Nikita Kozlov <nikita@beem-project.com>
parents: 921
diff changeset
   116
	 * get current OTR status.
5441ea00c4f1 check otr status when openning a new chat
Nikita Kozlov <nikita@beem-project.com>
parents: 921
diff changeset
   117
	 */
5441ea00c4f1 check otr status when openning a new chat
Nikita Kozlov <nikita@beem-project.com>
parents: 921
diff changeset
   118
	String getOtrStatus();
984
46b16746d8a2 Improve notification by using NotificationCompat.Builder
Da Risk <da_risk@beem-project.com>
parents: 929
diff changeset
   119
219
79ccbe331695 Les conversations sont retenues dans les chats du service.
Da Risk <darisk972@gmail.com>
parents: 187
diff changeset
   120
583
ca7bec1b5754 Add methods for managing MessageListeners in the Chat adapter.
Da Risk <darisk972@gmail.com>
parents: 219
diff changeset
   121
}