src/com/beem/project/beem/service/aidl/IChat.aidl
author nikita@nikita-portable
Sun, 17 May 2009 16:11:01 +0200
changeset 187 ce342bfa7bdb
parent 119 c93e4b69f031
child 219 79ccbe331695
permissions -rw-r--r--
IssueId #100 Probeleme resolu chez moi, par contre il va falloir faire une gestion des anciennes conversations. J'ouvre un ticket pour ca.
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
	
c93e4b69f031 Correction de bug sur la reception de messages
Da Risk <darisk972@gmail.com>
parents: 99
diff changeset
    32
	String getLastMessages();
c93e4b69f031 Correction de bug sur la reception de messages
Da Risk <darisk972@gmail.com>
parents: 99
diff changeset
    33
	
c93e4b69f031 Correction de bug sur la reception de messages
Da Risk <darisk972@gmail.com>
parents: 99
diff changeset
    34
	void addToLastMessages(in String msg);
c93e4b69f031 Correction de bug sur la reception de messages
Da Risk <darisk972@gmail.com>
parents: 99
diff changeset
    35
	
c93e4b69f031 Correction de bug sur la reception de messages
Da Risk <darisk972@gmail.com>
parents: 99
diff changeset
    36
	void clearLastMessages();
c93e4b69f031 Correction de bug sur la reception de messages
Da Risk <darisk972@gmail.com>
parents: 99
diff changeset
    37
/*	
c93e4b69f031 Correction de bug sur la reception de messages
Da Risk <darisk972@gmail.com>
parents: 99
diff changeset
    38
	void addMessageListener(in IMessageListener listener);
c93e4b69f031 Correction de bug sur la reception de messages
Da Risk <darisk972@gmail.com>
parents: 99
diff changeset
    39
	
c93e4b69f031 Correction de bug sur la reception de messages
Da Risk <darisk972@gmail.com>
parents: 99
diff changeset
    40
	void removeMessageListener(in IMessageListener listener);
c93e4b69f031 Correction de bug sur la reception de messages
Da Risk <darisk972@gmail.com>
parents: 99
diff changeset
    41
*/	
55
66732dd2cb77 Add an interface for sending im message.
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    42
}