/*
 * This file is auto-generated.  DO NOT MODIFY.
 */
package com.symbol.emdk.emdkservice;
/* The name of the remote service */
public interface ISvcFeatureStatusCallback extends android.os.IInterface
{
  /** Default implementation for ISvcFeatureStatusCallback. */
  public static class Default implements com.symbol.emdk.emdkservice.ISvcFeatureStatusCallback
  {
    @Override public void onStatus(int featureID, com.symbol.emdk.emdkservice.SvcResult result) throws android.os.RemoteException
    {
    }
    @Override
    public android.os.IBinder asBinder() {
      return null;
    }
  }
  /** Local-side IPC implementation stub class. */
  public static abstract class Stub extends android.os.Binder implements com.symbol.emdk.emdkservice.ISvcFeatureStatusCallback
  {
    private static final java.lang.String DESCRIPTOR = "com.symbol.emdk.emdkservice.ISvcFeatureStatusCallback";
    /** Construct the stub at attach it to the interface. */
    public Stub()
    {
      this.attachInterface(this, DESCRIPTOR);
    }
    /**
     * Cast an IBinder object into an com.symbol.emdk.emdkservice.ISvcFeatureStatusCallback interface,
     * generating a proxy if needed.
     */
    public static com.symbol.emdk.emdkservice.ISvcFeatureStatusCallback asInterface(android.os.IBinder obj)
    {
      if ((obj==null)) {
        return null;
      }
      android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
      if (((iin!=null)&&(iin instanceof com.symbol.emdk.emdkservice.ISvcFeatureStatusCallback))) {
        return ((com.symbol.emdk.emdkservice.ISvcFeatureStatusCallback)iin);
      }
      return new com.symbol.emdk.emdkservice.ISvcFeatureStatusCallback.Stub.Proxy(obj);
    }
    @Override public android.os.IBinder asBinder()
    {
      return this;
    }
    @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
    {
      java.lang.String descriptor = DESCRIPTOR;
      switch (code)
      {
        case INTERFACE_TRANSACTION:
        {
          reply.writeString(descriptor);
          return true;
        }
        case TRANSACTION_onStatus:
        {
          data.enforceInterface(descriptor);
          int _arg0;
          _arg0 = data.readInt();
          com.symbol.emdk.emdkservice.SvcResult _arg1;
          if ((0!=data.readInt())) {
            _arg1 = com.symbol.emdk.emdkservice.SvcResult.CREATOR.createFromParcel(data);
          }
          else {
            _arg1 = null;
          }
          this.onStatus(_arg0, _arg1);
          reply.writeNoException();
          return true;
        }
        default:
        {
          return super.onTransact(code, data, reply, flags);
        }
      }
    }
    private static class Proxy implements com.symbol.emdk.emdkservice.ISvcFeatureStatusCallback
    {
      private android.os.IBinder mRemote;
      Proxy(android.os.IBinder remote)
      {
        mRemote = remote;
      }
      @Override public android.os.IBinder asBinder()
      {
        return mRemote;
      }
      public java.lang.String getInterfaceDescriptor()
      {
        return DESCRIPTOR;
      }
      @Override public void onStatus(int featureID, com.symbol.emdk.emdkservice.SvcResult result) throws android.os.RemoteException
      {
        android.os.Parcel _data = android.os.Parcel.obtain();
        android.os.Parcel _reply = android.os.Parcel.obtain();
        try {
          _data.writeInterfaceToken(DESCRIPTOR);
          _data.writeInt(featureID);
          if ((result!=null)) {
            _data.writeInt(1);
            result.writeToParcel(_data, 0);
          }
          else {
            _data.writeInt(0);
          }
          boolean _status = mRemote.transact(Stub.TRANSACTION_onStatus, _data, _reply, 0);
          if (!_status && getDefaultImpl() != null) {
            getDefaultImpl().onStatus(featureID, result);
            return;
          }
          _reply.readException();
        }
        finally {
          _reply.recycle();
          _data.recycle();
        }
      }
      public static com.symbol.emdk.emdkservice.ISvcFeatureStatusCallback sDefaultImpl;
    }
    static final int TRANSACTION_onStatus = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
    public static boolean setDefaultImpl(com.symbol.emdk.emdkservice.ISvcFeatureStatusCallback impl) {
      // Only one user of this interface can use this function
      // at a time. This is a heuristic to detect if two different
      // users in the same process use this function.
      if (Stub.Proxy.sDefaultImpl != null) {
        throw new IllegalStateException("setDefaultImpl() called twice");
      }
      if (impl != null) {
        Stub.Proxy.sDefaultImpl = impl;
        return true;
      }
      return false;
    }
    public static com.symbol.emdk.emdkservice.ISvcFeatureStatusCallback getDefaultImpl() {
      return Stub.Proxy.sDefaultImpl;
    }
  }
  public void onStatus(int featureID, com.symbol.emdk.emdkservice.SvcResult result) throws android.os.RemoteException;
}
