author Da Risk <>
Mon, 20 Apr 2009 14:00:00 +0200
changeset 118 8bbe46055004
parent 55 66732dd2cb77
child 419 88e1a96ee8da
permissions -rw-r--r--
fix some bugs. When you receive a new chat, a notification appears. Need some improvements cause if the chat was created before, then close no notification appears (nofif only on new created chat).

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

import  com.beem.project.beem.service.Contact;
import  com.beem.project.beem.service.aidl.IChat;
import  com.beem.project.beem.service.aidl.IMessageListener;
import  com.beem.project.beem.service.aidl.IChatManagerListener;

 * Aidl interface for a chat manager.
 * The chat manager will manage all the chat sessions.
interface IChatManager {
    	//IChat createChat(in String jid, in IMessageListener listener);
    	 * Create a chat session with a contact.
    	 * @param contact	the contact to chat with
    	 * @param listener	the callback to call when a new message comes from this chat session
    	 * @return 		the chat session
	IChat createChat(in Contact contact, in IMessageListener listener);
    	 * Destroy a chat session with a contact.
    	 * @param chat	the chat session
	void destroyChat(in IChat chat);
	 * Register a callback to call when a new chat session is created.
	 * @param listener	the callback to add
	void addChatCreationListener(in IChatManagerListener listener);
	 * Remove a callback for the creation of new chat session.
	 * @param listener	the callback to remove.
	void removeChatCreationListener(in IChatManagerListener listener);