FileDocCategorySizeDatePackage
ConnectionListenerAdapter.javaAPI DocAndroid 1.5 API2569Wed May 06 22:42:46 BST 2009com.android.im.app.adapter

ConnectionListenerAdapter

public class ConnectionListenerAdapter extends IConnectionListener.Stub

Fields Summary
private static final String
TAG
private android.os.Handler
mHandler
Constructors Summary
public ConnectionListenerAdapter(android.os.Handler handler)


       
        mHandler = handler;
    
Methods Summary
public voidonConnectionStateChange(com.android.im.IImConnection connection, int state, com.android.im.engine.ImErrorInfo error)

        if (Log.isLoggable(TAG, Log.DEBUG)) {
            Log.d(TAG, "onConnectionStateChange(" + state + ", " + error + ")");
        }
    
public voidonSelfPresenceUpdated(com.android.im.IImConnection connection)

        if (Log.isLoggable(TAG, Log.DEBUG)) {
            Log.d(TAG, "onSelfPresenceUpdated()");
        }
    
public final voidonStateChanged(com.android.im.IImConnection conn, int state, com.android.im.engine.ImErrorInfo error)

        mHandler.post(new Runnable() {
            public void run() {
                onConnectionStateChange(conn, state, error);
            }
        });
    
public final voidonUpdatePresenceError(com.android.im.IImConnection conn, com.android.im.engine.ImErrorInfo error)

        mHandler.post(new Runnable() {
            public void run() {
                onUpdateSelfPresenceError(conn, error);
            }
        });
    
public voidonUpdateSelfPresenceError(com.android.im.IImConnection connection, com.android.im.engine.ImErrorInfo error)

        if (Log.isLoggable(TAG, Log.DEBUG)) {
            Log.d(TAG, "onUpdateSelfPresenceError(" + error + ")");
        }
    
public final voidonUserPresenceUpdated(com.android.im.IImConnection conn)

        mHandler.post(new Runnable() {
            public void run() {
                onSelfPresenceUpdated(conn);
            }
        });