com.beem.project.beem.service.aidl
Interface IChatManager

Package class diagram package IChatManager
All Superinterfaces:
IInterface
All Known Implementing Classes:
BeemChatManager, IChatManager.Stub

public interface IChatManager
extends IInterface

Aidl interface for a chat manager. The chat manager will manage all the chat sessions.


Nested Class Summary
static class IChatManager.Stub
          Local-side IPC implementation stub class.
 
Method Summary
 void addChatCreationListener(IChatManagerListener listener)
          Register a callback to call when a new chat session is created.
 IChat createChat(Contact contact, IMessageListener listener)
          Create a chat session with a contact.
 void deleteChatNotification(IChat chat)
           
 void destroyChat(IChat chat)
          Destroy a chat session with a contact.
 IChat getChat(Contact contact)
          Get an existing Chat session with a contact.
 List<Contact> getOpenedChatList()
          Get a list of contact which we are currently chatting.
 void removeChatCreationListener(IChatManagerListener listener)
          Remove a callback for the creation of new chat session.
 
Methods inherited from interface android.os.IInterface
asBinder
 

Method Detail

createChat

IChat createChat(Contact contact,
                 IMessageListener listener)
                 throws RemoteException
Create a chat session with a contact.

Parameters:
contact - the contact to chat with
listener - the callback to call when a new message comes from this chat session
Returns:
the chat session
Throws:
RemoteException

getChat

IChat getChat(Contact contact)
              throws RemoteException
Get an existing Chat session with a contact.

Returns:
null if the chat session does not exist.
Throws:
RemoteException

destroyChat

void destroyChat(IChat chat)
                 throws RemoteException
Destroy a chat session with a contact.

Parameters:
chat - the chat session
Throws:
RemoteException

deleteChatNotification

void deleteChatNotification(IChat chat)
                            throws RemoteException
Parameters:
chat - the chat.
Throws:
RemoteException

addChatCreationListener

void addChatCreationListener(IChatManagerListener listener)
                             throws RemoteException
Register a callback to call when a new chat session is created.

Parameters:
listener - the callback to add
Throws:
RemoteException

removeChatCreationListener

void removeChatCreationListener(IChatManagerListener listener)
                                throws RemoteException
Remove a callback for the creation of new chat session.

Parameters:
listener - the callback to remove.
Throws:
RemoteException

getOpenedChatList

List<Contact> getOpenedChatList()
                                throws RemoteException
Get a list of contact which we are currently chatting.

Returns:
list of contact.
Throws:
RemoteException


Copyright © 2009 Beem-project.com. All Rights Reserved.