com.beem.project.beem.service
Class XmppFacade

Package class diagram package XmppFacade
java.lang.Object
  extended by android.os.Binder
      extended by com.beem.project.beem.service.aidl.IXmppFacade.Stub
          extended by com.beem.project.beem.service.XmppFacade
All Implemented Interfaces:
IBinder, IInterface, IXmppFacade

public class XmppFacade
extends IXmppFacade.Stub

This class is a facade for the Beem Service.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.beem.project.beem.service.aidl.IXmppFacade
IXmppFacade.Stub
 
Nested classes/interfaces inherited from interface android.os.IBinder
IBinder.DeathRecipient
 
Field Summary
 
Fields inherited from interface android.os.IBinder
DUMP_TRANSACTION, FIRST_CALL_TRANSACTION, FLAG_ONEWAY, INTERFACE_TRANSACTION, LAST_CALL_TRANSACTION, PING_TRANSACTION
 
Constructor Summary
XmppFacade(BeemService service)
          Create an XmppFacade.
 
Method Summary
 void call(String jid)
          make a jingle audio call
 void changeStatus(int status, String msg)
          Change the status of the user.
 void connectAsync()
          Connect and login asynchronously on the server.
 void connectSync()
          Connect and login synchronously on the server.
 IXmppConnection createConnection()
          Get the XmppConnection of the facade.
 void disableAvatarPublishing()
           
 void disconnect()
          Disconnect from the server
 IChatManager getChatManager()
          Get the chat manager.
 IPrivacyListManager getPrivacyListManager()
          
 IRoster getRoster()
          Get the roster of the user
 UserInfo getUserInfo()
          Get the user informations.
 boolean publishAvatar(Uri avatarUri)
           
 void sendPresencePacket(PresenceAdapter presence)
           
 
Methods inherited from class com.beem.project.beem.service.aidl.IXmppFacade.Stub
asBinder, asInterface, onTransact
 
Methods inherited from class android.os.Binder
attachInterface, clearCallingIdentity, dump, dump, finalize, flushPendingCommands, getCallingPid, getCallingUid, getInterfaceDescriptor, isBinderAlive, joinThreadPool, linkToDeath, pingBinder, queryLocalInterface, restoreCallingIdentity, transact, unlinkToDeath
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmppFacade

public XmppFacade(BeemService service)
Create an XmppFacade.

Parameters:
service - the service providing the facade
Method Detail

changeStatus

public void changeStatus(int status,
                         String msg)
Change the status of the user.

Parameters:
status - the status to set
msg - the message state to set

connectAsync

public void connectAsync()
                  throws RemoteException
Connect and login asynchronously on the server.

Throws:
RemoteException

connectSync

public void connectSync()
                 throws RemoteException
Connect and login synchronously on the server.

Throws:
RemoteException

createConnection

public IXmppConnection createConnection()
                                 throws RemoteException
Get the XmppConnection of the facade.

Throws:
RemoteException

disconnect

public void disconnect()
                throws RemoteException
Disconnect from the server

Throws:
RemoteException

getChatManager

public IChatManager getChatManager()
                            throws RemoteException
Get the chat manager.

Throws:
RemoteException

getRoster

public IRoster getRoster()
                  throws RemoteException
Get the roster of the user

Throws:
RemoteException

getPrivacyListManager

public IPrivacyListManager getPrivacyListManager()


sendPresencePacket

public void sendPresencePacket(PresenceAdapter presence)
                        throws RemoteException
Throws:
RemoteException

call

public void call(String jid)
          throws RemoteException
Description copied from interface: IXmppFacade
make a jingle audio call

Parameters:
jid - the receiver id
Throws:
RemoteException

publishAvatar

public boolean publishAvatar(Uri avatarUri)
                      throws RemoteException
Throws:
RemoteException

disableAvatarPublishing

public void disableAvatarPublishing()
                             throws RemoteException
Throws:
RemoteException

getUserInfo

public UserInfo getUserInfo()
                     throws RemoteException
Description copied from interface: IXmppFacade
Get the user informations.

Returns:
null if not connected
Throws:
RemoteException


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