com.beem.project.beem.service.aidl
Interface IChat

Package class diagram package IChat
All Superinterfaces:
IInterface
All Known Implementing Classes:
ChatAdapter, IChat.Stub

public interface IChat
extends IInterface

An aidl interface for Chat session.


Nested Class Summary
static class IChat.Stub
          Local-side IPC implementation stub class.
 
Method Summary
 void addMessageListener(IMessageListener listener)
          Add a message listener.
 void endOtrSession()
          Stop the OTR session.
 String getLocalOtrFingerprint()
          get local OTR key fingerprints.
 List<Message> getMessages()
           
 String getOtrStatus()
          get current OTR status.
 Contact getParticipant()
          Get the participant of the chat
 String getRemoteOtrFingerprint()
          get remote OTR key fingerprints.
 String getState()
           
 boolean isOpen()
           
 void removeMessageListener(IMessageListener listener)
          Remove a message listener.
 void sendMessage(Message message)
          Send a message.
 void setOpen(boolean isOpen)
           
 void setState(String state)
           
 void startOtrSession()
          Try to start an OTR session.
 void verifyRemoteFingerprint(boolean ok)
           
 
Methods inherited from interface android.os.IInterface
asBinder
 

Method Detail

sendMessage

void sendMessage(Message message)
                 throws RemoteException
Send a message.

Parameters:
message - the message to send
Throws:
RemoteException

getParticipant

Contact getParticipant()
                       throws RemoteException
Get the participant of the chat

Returns:
the participant
Throws:
RemoteException

addMessageListener

void addMessageListener(IMessageListener listener)
                        throws RemoteException
Add a message listener.

Parameters:
listener - the listener to add.
Throws:
RemoteException

removeMessageListener

void removeMessageListener(IMessageListener listener)
                           throws RemoteException
Remove a message listener.

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

getState

String getState()
                throws RemoteException
Throws:
RemoteException

setOpen

void setOpen(boolean isOpen)
             throws RemoteException
Throws:
RemoteException

isOpen

boolean isOpen()
               throws RemoteException
Throws:
RemoteException

setState

void setState(String state)
              throws RemoteException
Throws:
RemoteException

getMessages

List<Message> getMessages()
                          throws RemoteException
Throws:
RemoteException

startOtrSession

void startOtrSession()
                     throws RemoteException
Try to start an OTR session.

Throws:
RemoteException

endOtrSession

void endOtrSession()
                   throws RemoteException
Stop the OTR session.

Throws:
RemoteException

getLocalOtrFingerprint

String getLocalOtrFingerprint()
                              throws RemoteException
get local OTR key fingerprints.

Throws:
RemoteException

getRemoteOtrFingerprint

String getRemoteOtrFingerprint()
                               throws RemoteException
get remote OTR key fingerprints.

Throws:
RemoteException

verifyRemoteFingerprint

void verifyRemoteFingerprint(boolean ok)
                             throws RemoteException
Throws:
RemoteException

getOtrStatus

String getOtrStatus()
                    throws RemoteException
get current OTR status.

Throws:
RemoteException


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