com.beem.project.beem.service
Class XmppConnectionAdapter

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

public class XmppConnectionAdapter
extends IXmppConnection.Stub

This class implements an adapter for XMPPConnection.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.beem.project.beem.service.aidl.IXmppConnection
IXmppConnection.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
XmppConnectionAdapter(ConnectionConfiguration config, String login, String password, BeemService service)
          Constructor.
XmppConnectionAdapter(String serviceName, String login, String password, BeemService service)
          Constructor.
XmppConnectionAdapter(XMPPConnection con, String login, String password, BeemService service)
          Constructor.
 
Method Summary
 void addConnectionListener(IBeemConnectionListener listen)
          
 void changeStatus(int status, String msg)
          
 void changeStatusAndPriority(int status, String msg, int priority)
          
 boolean connect()
           
 void connectAsync()
          
 boolean connectSync()
          
 boolean disconnect()
          
 XMPPConnection getAdaptee()
          Get the Smack XmppConnection.
 BeemAvatarManager getAvatarManager()
          Get the AvatarManager of this connection.
 IChatManager getChatManager()
          
 String getErrorMessage()
          
 int getPreviousMode()
          get the previous mode.
 String getPreviousStatus()
          get the previous status.
 PrivacyListManagerAdapter getPrivacyListManager()
          PrivacyListManagerAdapter accessor.
 IRoster getRoster()
          
 UserInfo getUserInfo()
          Get the user informations.
 boolean isAuthentificated()
          Returns true if currently authenticated by successfully calling the login method.
 boolean login()
           
 void removeConnectionListener(IBeemConnectionListener listen)
          
 void setPrivacyListManager(PrivacyListManagerAdapter privacyListManager)
          PrivacyListManagerAdapter mutator.
 
Methods inherited from class com.beem.project.beem.service.aidl.IXmppConnection.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

XmppConnectionAdapter

public XmppConnectionAdapter(ConnectionConfiguration config,
                             String login,
                             String password,
                             BeemService service)
Constructor.

Parameters:
config - Configuration to use in order to connect
login - login to use on connect
password - password to use on connect
service - the background service associated with the connection.

XmppConnectionAdapter

public XmppConnectionAdapter(String serviceName,
                             String login,
                             String password,
                             BeemService service)
Constructor.

Parameters:
serviceName - name of the service to connect to
login - login to use on connect
password - password to use on connect
service - the background service associated with the connection.

XmppConnectionAdapter

public XmppConnectionAdapter(XMPPConnection con,
                             String login,
                             String password,
                             BeemService service)
Constructor.

Parameters:
con - The connection to adapt
login - The login to use
password - The password to use
service - the background service associated with the connection.
Method Detail

addConnectionListener

public void addConnectionListener(IBeemConnectionListener listen)
                           throws RemoteException

Throws:
RemoteException

connect

public boolean connect()
                throws RemoteException
Throws:
RemoteException

login

public boolean login()
              throws RemoteException
Throws:
RemoteException

connectAsync

public final void connectAsync()
                        throws RemoteException

Throws:
RemoteException

connectSync

public boolean connectSync()
                    throws RemoteException

Throws:
RemoteException

changeStatusAndPriority

public void changeStatusAndPriority(int status,
                                    String msg,
                                    int priority)


changeStatus

public void changeStatus(int status,
                         String msg)


getAvatarManager

public BeemAvatarManager getAvatarManager()
Get the AvatarManager of this connection.

Returns:
the AvatarManager or null if there is not

getPreviousStatus

public String getPreviousStatus()
get the previous status.

Returns:
previous status.

getPreviousMode

public int getPreviousMode()
get the previous mode.

Returns:
previous mode.

disconnect

public boolean disconnect()


getAdaptee

public XMPPConnection getAdaptee()
Get the Smack XmppConnection.

Returns:
Smack XmppConnection

getChatManager

public IChatManager getChatManager()
                            throws RemoteException

Throws:
RemoteException

getRoster

public IRoster getRoster()
                  throws RemoteException

Throws:
RemoteException

getUserInfo

public UserInfo getUserInfo()
Get the user informations.

Returns:
the user infos or null if not logged

isAuthentificated

public boolean isAuthentificated()
Returns true if currently authenticated by successfully calling the login method.

Returns:
true when successfully authenticated

removeConnectionListener

public void removeConnectionListener(IBeemConnectionListener listen)
                              throws RemoteException

Throws:
RemoteException

setPrivacyListManager

public void setPrivacyListManager(PrivacyListManagerAdapter privacyListManager)
PrivacyListManagerAdapter mutator.

Parameters:
privacyListManager - the privacy list manager

getPrivacyListManager

public PrivacyListManagerAdapter getPrivacyListManager()
PrivacyListManagerAdapter accessor.

Returns:
the mPrivacyList

getErrorMessage

public String getErrorMessage()



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