FileDocCategorySizeDatePackage
CustomPresenceMapping.javaAPI DocAndroid 1.5 API3060Wed May 06 22:42:46 BST 2009com.android.im.imps

CustomPresenceMapping

public class CustomPresenceMapping extends Object implements PresenceMapping

Fields Summary
private com.android.im.plugin.IPresenceMapping
mPresenceMapping
Constructors Summary
public CustomPresenceMapping(String pluginPath, String implClass)

        PathClassLoader classLoader = new PathClassLoader(pluginPath,
                getClass().getClassLoader());
        try {
            Class cls = classLoader.loadClass(implClass);
            mPresenceMapping = (IPresenceMapping)cls.newInstance();
        } catch (ClassNotFoundException e) {
            throw new ImException(e);
        } catch (IllegalAccessException e) {
            throw new ImException(e);
        } catch (InstantiationException e) {
            throw new ImException(e);
        }
    
Methods Summary
public java.util.MapgetExtra(int status)

        try {
            return mPresenceMapping.getExtra(status);
        } catch (RemoteException e) {
            return null;
        }
    
public booleangetOnlineStatus(int status)

        try {
            return mPresenceMapping.getOnlineStatus(status);
        } catch (RemoteException e) {
            return false;
        }
    
public intgetPresenceStatus(boolean onlineStatus, java.lang.String userAvailability, java.util.Map allValues)

        try {
            return mPresenceMapping.getPresenceStatus(onlineStatus, userAvailability, allValues);
        } catch (RemoteException e) {
            return ImPluginConstants.PRESENCE_OFFLINE;
        }
    
public int[]getSupportedPresenceStatus()

        try {
            return mPresenceMapping.getSupportedPresenceStatus();
        } catch (RemoteException e) {
            return new int[0];
        }
    
public java.lang.StringgetUserAvaibility(int status)

        try {
            return mPresenceMapping.getUserAvaibility(status);
        } catch (RemoteException e) {
            return ImPluginConstants.PA_NOT_AVAILABLE;
        }
    
public booleanrequireAllPresenceValues()

        try {
            return mPresenceMapping.requireAllPresenceValues();
        } catch (RemoteException e) {
            return false;
        }