/**
 * 
 */
package com.beem.project.beem.service;
import android.os.RemoteException;

import com.beem.project.beem.service.aidl.IRoster;
import com.beem.project.beem.service.aidl.IXMPPConnection;
import com.beem.project.beem.service.aidl.IXMPPFacade;
/**
 * @author darisk
 *
 */
public class XMPPFacade extends IXMPPFacade.Stub {

    private XMPPConnectionAdapter mConnexion;

    /**
     * Constructor for XMPPFacade.
     * @param connection the connection use by the facade
     */
    public XMPPFacade(XMPPConnectionAdapter connection) {
	this.mConnexion = connection;
    }

    @Override
    public void connectAsync() throws RemoteException {
	// TODO Auto-generated method stub
	mConnexion.connectAsync();
    }

    @Override
    public void connectSync() throws RemoteException {
	// TODO Auto-generated method stub
	mConnexion.connectSync();
    }

    @Override
    public IXMPPConnection createConnection() throws RemoteException {
	return mConnexion;
    }

    @Override
    public void disconnect() throws RemoteException {
	// TODO Auto-generated method stub
	mConnexion.disconnect();
    }

    @Override
    public IRoster getRoster() throws RemoteException {
	return mConnexion.getRoster();
    }

}
