src/com/beem/project/beem/service/aidl/IChat.aidl
author Da Risk <darisk972@gmail.com>
Fri, 22 May 2009 22:29:14 +0200
changeset 219 79ccbe331695
parent 187 ce342bfa7bdb
child 583 ca7bec1b5754
permissions -rw-r--r--
Les conversations sont retenues dans les chats du service. On peut donc les réafficher dans l'activité SendIm. J'en ai profité pour rendre cette activité SingleTop ainsi une seule instance set utilisé. Il reste un probleme avec les notifications qui ne peuvent pas etre réutilisé. Si on a 2 notifications la 2e ne marchera pas.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
55
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     1
package com.beem.project.beem.service.aidl;
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     2
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     3
import  com.beem.project.beem.service.Contact;
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     4
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
     5
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
     6
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     7
/**
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     8
 * An aidl interface for Chat session.
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     9
 */
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    10
interface IChat {
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    11
    
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    12
    	/**
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    13
    	 * Send a message.
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    14
    	 * @param message	the message to send
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    15
    	 */
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    16
	void sendMessage(in Message message);
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    17
	
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    18
	/**
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    19
	 * Get the participant of the chat
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    20
	 * @return the participant
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    21
	 */
99
8de21ac527ce revert pour refaire un push propre
nikita@nikita-rack
parents: 98
diff changeset
    22
	Contact getParticipant();
8de21ac527ce revert pour refaire un push propre
nikita@nikita-rack
parents: 98
diff changeset
    23
	
8de21ac527ce revert pour refaire un push propre
nikita@nikita-rack
parents: 98
diff changeset
    24
	String getState();
8de21ac527ce revert pour refaire un push propre
nikita@nikita-rack
parents: 98
diff changeset
    25
	
187
ce342bfa7bdb IssueId #100
nikita@nikita-portable
parents: 119
diff changeset
    26
	void setOpen(in boolean isOpen);
ce342bfa7bdb IssueId #100
nikita@nikita-portable
parents: 119
diff changeset
    27
	
ce342bfa7bdb IssueId #100
nikita@nikita-portable
parents: 119
diff changeset
    28
	boolean isOpen();
ce342bfa7bdb IssueId #100
nikita@nikita-portable
parents: 119
diff changeset
    29
	
119
c93e4b69f031 Correction de bug sur la reception de messages
Da Risk <darisk972@gmail.com>
parents: 99
diff changeset
    30
	void setState(in String state);
c93e4b69f031 Correction de bug sur la reception de messages
Da Risk <darisk972@gmail.com>
parents: 99
diff changeset
    31
	
219
79ccbe331695 Les conversations sont retenues dans les chats du service.
Da Risk <darisk972@gmail.com>
parents: 187
diff changeset
    32
	List<Message> getMessages();
79ccbe331695 Les conversations sont retenues dans les chats du service.
Da Risk <darisk972@gmail.com>
parents: 187
diff changeset
    33
55
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    34
}