src/com/beem/project/beem/service/aidl/IChat.aidl
author Da Risk <darisk972@gmail.com>
Mon, 20 Apr 2009 21:46:52 +0200
changeset 119 c93e4b69f031
parent 99 8de21ac527ce
child 187 ce342bfa7bdb
permissions -rw-r--r--
Correction de bug sur la reception de messages

package com.beem.project.beem.service.aidl;

import  com.beem.project.beem.service.Contact;
import  com.beem.project.beem.service.Message;
import  com.beem.project.beem.service.aidl.IMessageListener;

/**
 * An aidl interface for Chat session.
 */
interface IChat {
    
    	/**
    	 * Send a message.
    	 * @param message	the message to send
    	 */
	void sendMessage(in Message message);
	
	/**
	 * Get the participant of the chat
	 * @return the participant
	 */
	Contact getParticipant();
	
	String getState();
	
	void setState(in String state);
	
	String getLastMessages();
	
	void addToLastMessages(in String msg);
	
	void clearLastMessages();
/*	
	void addMessageListener(in IMessageListener listener);
	
	void removeMessageListener(in IMessageListener listener);
*/	
}