com.honeywell.iqimagemanager
Class IQImageManager

java.lang.Object
  extended by com.honeywell.iqimagemanager.IQImageManager
All Implemented Interfaces:
IQConstValue

public class IQImageManager
extends java.lang.Object
implements IQConstValue

IQImageManager contains methods for dealing with IQ image.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.honeywell.iqimagemanager.IQConstValue
IQConstValue.IqImageFormats
 
Field Summary
static int DECODEFAIL
          fail to decode the barcode.
static int DECODEREADY
          Deoode is ready,then user can decode symbology and configure symbology.if not ready and be used it will throw exception
 
Fields inherited from interface com.honeywell.iqimagemanager.IQConstValue
DELIVERY_HEIGHT, DELIVERY_WIDTH, IQ_RESOLUTION, IQTYPE_DEFAULT, IQTYPE_DELIVERY, IQTYPE_EMBED, IQTYPE_NOFORMAT, IQTYPE_POSTAL, MESSAGE_DECODE_SUC, POSTAL_HEIGHT, POSTAL_WIDTH
 
Constructor Summary
IQImageManager(Context context, Handler hanler)
          Constructor to initialize corresponding parameters.
 
Method Summary
 int activateSYMID(int symbologyID)
          Activate a specified symbology for decoder engine.
 int decodeIQWithTimout(int timeout, DecodeResult decRes)
          Perform decode procedure during a specified timeout.
 int getIQImage(IQImagingProperties propery, IQBitmapParcel bmpparcel)
          Capture the IQ Image if decoder procedure is successful.
 int inactivateSYMID(int symbologyID)
          Inactivate an specified symbology or all symbologies from decoding.
 int initIQEnv()
          Establishes a connection to the engine.
 int reaseIQEnv()
          Closes the hardware connection to the engine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DECODEFAIL

public static final int DECODEFAIL
fail to decode the barcode.

See Also:
Constant Field Values

DECODEREADY

public static final int DECODEREADY
Deoode is ready,then user can decode symbology and configure symbology.if not ready and be used it will throw exception

See Also:
Constant Field Values
Constructor Detail

IQImageManager

public IQImageManager(Context context,
                      Handler hanler)
Constructor to initialize corresponding parameters.

Method Detail

getIQImage

public int getIQImage(IQImagingProperties propery,
                      IQBitmapParcel bmpparcel)
               throws RemoteException
Capture the IQ Image if decoder procedure is successful.

Parameters:
propery - The IQImagingProperties object which contains the configuration of IQ Image.
bmpparcel - The BitmapParcel object which wrapps the bitmap of captured IQ Image. It's caller who is responsible for creating and recycle bitmap.
Returns:
Returns the result of capturing, 0 indicates success
Throws:
RemoteException

initIQEnv

public int initIQEnv()
Establishes a connection to the engine. Usually it should be invoked in Activity's onResume().

Returns:
Returns the result of capturing, 0 indicate success

reaseIQEnv

public int reaseIQEnv()
Closes the hardware connection to the engine. Usually it should be invoked in Activity's onPause().

Returns:
Returns the result of capturing, 0 indicate success

activateSYMID

public int activateSYMID(int symbologyID)
                  throws RemoteException
Activate a specified symbology for decoder engine.

Parameters:
symbologyID - One of the CommonDefine.SymbologyID , eg SYM_CODE39. To enable all symbolgies at once, SYM_ALL should be used as the SymID.
Returns:
Return 0 if you successfully enable a symbology. Otherwise, error occurs.
Throws:
RemoteException
See Also:
CommonDefine.SymbologyID, CommonDefine.ErrorCode

inactivateSYMID

public int inactivateSYMID(int symbologyID)
                    throws RemoteException
Inactivate an specified symbology or all symbologies from decoding.

Parameters:
symbologyID - One of the CommonDefine.SymbologyID , eg SYM_CODE39. To disable all symbolgies at once, SYM_ALL should be used as the SymID.
Returns:
Return 0 if you successfully disable a symbology. Otherwise, error occurs.
Throws:
RemoteException
See Also:
CommonDefine.SymbologyID, CommonDefine.ErrorCode

decodeIQWithTimout

public int decodeIQWithTimout(int timeout,
                              DecodeResult decRes)
                       throws RemoteException
Perform decode procedure during a specified timeout.

Parameters:
timeout - Maximum amount of time in milliseconds that the decoder may use to attempt to find and decode a symbol.
decRes - Contains the decode result if the procedure is successful.
Returns:
Returns the result of decoding, 0 indicate success
Throws:
RemoteException