com.beem.project.beem.service
Class XmppConnectionAdapter
java.lang.Object
android.os.Binder
com.beem.project.beem.service.aidl.IXmppConnection.Stub
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.
| Methods inherited from class android.os.Binder |
attachInterface, clearCallingIdentity, dump, dump, finalize, flushPendingCommands, getCallingPid, getCallingUid, getInterfaceDescriptor, isBinderAlive, joinThreadPool, linkToDeath, pingBinder, queryLocalInterface, restoreCallingIdentity, transact, unlinkToDeath |
XmppConnectionAdapter
public XmppConnectionAdapter(ConnectionConfiguration config,
String login,
String password,
BeemService service)
- Constructor.
- Parameters:
config - Configuration to use in order to connectlogin - login to use on connectpassword - password to use on connectservice - 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 tologin - login to use on connectpassword - password to use on connectservice - the background service associated with the connection.
XmppConnectionAdapter
public XmppConnectionAdapter(XMPPConnection con,
String login,
String password,
BeemService service)
- Constructor.
- Parameters:
con - The connection to adaptlogin - The login to usepassword - The password to useservice - the background service associated with the connection.
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.