![]() |
|
SignDoc SDK (C)
5.0.2.22
|
Parameters for SIGNDOC_Capture_startCapture(). More...
#include <SignDocSDK-c.h>
Parameters for SIGNDOC_Capture_startCapture().
| int SIGNDOC_CaptureParameters_addVirtualButton | ( | struct SIGNDOC_Exception ** | aEx, |
| struct SIGNDOC_CaptureParameters * | aObj, | ||
| int | aCoordinateSystem, | ||
| const struct SIGNDOC_ImageRect * | aRect, | ||
| int | aButtonId | ||
| ) |
Add a virtual button.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aCoordinateSystem | The coordinate system for aRect, see SIGNDOC_CAPTURE_COORDINATESYSTEM_DIGITIZER, SIGNDOC_CAPTURE_COORDINATESYSTEM_CAPTURE, SIGNDOC_CAPTURE_COORDINATESYSTEM_IMAGE, and SIGNDOC_CAPTURE_COORDINATESYSTEM_PER_1000. Note that SIGNDOC_CAPTURE_COORDINATESYSTEM_WINDOW cannot be used. |
| [in] | aRect | The button rectangle. Must not be NULL. |
| [in] | aButtonId | The butten identifier that will be returned in mButtonId of SIGNDOC_CaptureOutput. |
| int SIGNDOC_CaptureParameters_addVirtualButton1 | ( | struct SIGNDOC_Exception ** | aEx, |
| struct SIGNDOC_CaptureParameters * | aObj, | ||
| const struct SIGNDOC_CaptureVirtualButton * | aButton | ||
| ) |
Add a virtual button.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aButton | The virtual button to be added. Must not be NULL. |
| void SIGNDOC_CaptureParameters_assign | ( | struct SIGNDOC_Exception ** | aEx, |
| struct SIGNDOC_CaptureParameters * | aObj, | ||
| const struct SIGNDOC_CaptureParameters * | aSource | ||
| ) |
SIGNDOC_CaptureParameters assignment operator.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aSource | The source object. |
| void SIGNDOC_CaptureParameters_clear | ( | struct SIGNDOC_Exception ** | aEx, |
| struct SIGNDOC_CaptureParameters * | aObj | ||
| ) |
Reset all parameters to their default values.
Only the following parameters will be set:
| void SIGNDOC_CaptureParameters_clearVirtualButtons | ( | struct SIGNDOC_Exception ** | aEx, |
| struct SIGNDOC_CaptureParameters * | aObj | ||
| ) |
Remove all virtual buttons.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| struct SIGNDOC_CaptureParameters * SIGNDOC_CaptureParameters_clone | ( | struct SIGNDOC_Exception ** | aEx, |
| const struct SIGNDOC_CaptureParameters * | aObj | ||
| ) |
Clone a SIGNDOC_CaptureParameters object.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | The object to be copied. |
| void SIGNDOC_CaptureParameters_delete | ( | struct SIGNDOC_CaptureParameters * | aObj | ) |
SIGNDOC_CaptureParameters destructor.
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| const unsigned char * SIGNDOC_CaptureParameters_getBlob | ( | struct SIGNDOC_Exception ** | aEx, |
| const struct SIGNDOC_CaptureParameters * | aObj, | ||
| const char * | aName, | ||
| size_t * | aSize | ||
| ) |
Get the value of a blob parameter.
This function does not set an error message.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aName | The name of the parameter (case-sensitive). |
| [out] | aSize | The size of the blob will be stored in the object pointed to by this argument. |
| const SIGNDOC_Boolean * SIGNDOC_CaptureParameters_getBoolean | ( | struct SIGNDOC_Exception ** | aEx, |
| const struct SIGNDOC_CaptureParameters * | aObj, | ||
| const char * | aName | ||
| ) |
Get the value of a boolean parameter.
This function does not set an error message.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aName | The name of the parameter (case-sensitive). |
| struct SIGNDOC_Color * SIGNDOC_CaptureParameters_getColor | ( | struct SIGNDOC_Exception ** | aEx, |
| const struct SIGNDOC_CaptureParameters * | aObj, | ||
| const char * | aName | ||
| ) |
Get the value of a color parameter.
This function does not set an error message.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aName | The name of the parameter (case-sensitive). |
| const char * SIGNDOC_CaptureParameters_getErrorMessage | ( | struct SIGNDOC_Exception ** | aEx, |
| const struct SIGNDOC_CaptureParameters * | aObj, | ||
| int | aEncoding | ||
| ) |
Get an error message for the last function call.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aEncoding | The encoding to be used for the error message (SIGNDOC_ENCODING_NATIVE, SIGNDOC_ENCODING_UTF_8, or SIGNDOC_ENCODING_LATIN_1). |
| const wchar_t * SIGNDOC_CaptureParameters_getErrorMessageW | ( | struct SIGNDOC_Exception ** | aEx, |
| const struct SIGNDOC_CaptureParameters * | aObj | ||
| ) |
Get an error message for the last function call.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| const int * SIGNDOC_CaptureParameters_getInteger | ( | struct SIGNDOC_Exception ** | aEx, |
| const struct SIGNDOC_CaptureParameters * | aObj, | ||
| const char * | aName | ||
| ) |
Get the value of an integer parameter.
This function does not set an error message.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aName | The name of the parameter (case-sensitive). |
| const double * SIGNDOC_CaptureParameters_getNumber | ( | struct SIGNDOC_Exception ** | aEx, |
| const struct SIGNDOC_CaptureParameters * | aObj, | ||
| const char * | aName | ||
| ) |
Get the value of a floating-point number parameter.
The following read-only floating-point number parameters are available:
This function does not set an error message.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aName | The name of the parameter (case-sensitive). |
| int SIGNDOC_CaptureParameters_getNumberOfVirtualButtons | ( | struct SIGNDOC_Exception ** | aEx, |
| const struct SIGNDOC_CaptureParameters * | aObj | ||
| ) |
Get the number of virtual buttons.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| const char * SIGNDOC_CaptureParameters_getString | ( | struct SIGNDOC_Exception ** | aEx, |
| const struct SIGNDOC_CaptureParameters * | aObj, | ||
| const char * | aName | ||
| ) |
Get the value of a string parameter.
This function does not set an error message.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aName | The name of the parameter (case-sensitive). |
| int SIGNDOC_CaptureParameters_getType | ( | struct SIGNDOC_Exception ** | aEx, |
| const char * | aName | ||
| ) |
Get the type of a parameter.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aName | The name of the parameter (case-sensitive). |
| int SIGNDOC_CaptureParameters_getVirtualButton | ( | struct SIGNDOC_Exception ** | aEx, |
| const struct SIGNDOC_CaptureParameters * | aObj, | ||
| int | aIndex, | ||
| struct SIGNDOC_CaptureVirtualButton * | aOutput | ||
| ) |
Get a virtual button.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aIndex | The 0-based index of the virtual button. |
| [out] | aOutput | The virtual button will be stored in the object pointed to by this argument. Must not be NULL. |
| int SIGNDOC_CaptureParameters_loadFromMemory | ( | struct SIGNDOC_Exception ** | aEx, |
| struct SIGNDOC_CaptureParameters * | aObj, | ||
| const unsigned char * | aPtr, | ||
| size_t | aSize, | ||
| unsigned | aFlags | ||
| ) |
Load a SIGNDOC_CaptureParameters object from a blob (deserialize).
Parameters set in this object but not set in the blob won't be overwritten.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aPtr | A pointer to the first octet of a serialized SIGNDOC_CaptureParameters object, see SIGNDOC_CaptureParameters_saveToMemory(). If the blob contains an XML document, it must conform to SignDocParameters.dtd, which see for details. |
| [in] | aSize | Size in octets of the blob pointed to by aPtr. |
| [in] | aFlags | Must be zero. |
| struct SIGNDOC_CaptureParameters * SIGNDOC_CaptureParameters_new | ( | struct SIGNDOC_Exception ** | aEx | ) |
SIGNDOC_CaptureParameters constructor.
See SIGNDOC_CaptureParameters_clear() for the default values.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| int SIGNDOC_CaptureParameters_removeVirtualButton | ( | struct SIGNDOC_Exception ** | aEx, |
| struct SIGNDOC_CaptureParameters * | aObj, | ||
| int | aIndex | ||
| ) |
Remove one virtual button.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aIndex | The 0-based index of the virtual button. |
| int SIGNDOC_CaptureParameters_replaceVirtualButton | ( | struct SIGNDOC_Exception ** | aEx, |
| struct SIGNDOC_CaptureParameters * | aObj, | ||
| int | aIndex, | ||
| int | aCoordinateSystem, | ||
| const struct SIGNDOC_ImageRect * | aRect, | ||
| int | aButtonId | ||
| ) |
Replace a virtual button.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aIndex | The 0-based index of the virtual button. |
| [in] | aCoordinateSystem | The coordinate system for aRect, see SIGNDOC_CAPTURE_COORDINATESYSTEM_DIGITIZER, SIGNDOC_CAPTURE_COORDINATESYSTEM_CAPTURE, SIGNDOC_CAPTURE_COORDINATESYSTEM_IMAGE, and SIGNDOC_CAPTURE_COORDINATESYSTEM_PER_1000. Note that SIGNDOC_CAPTURE_COORDINATESYSTEM_WINDOW cannot be used. |
| [in] | aRect | The button rectangle. Must not be NULL. |
| [in] | aButtonId | The butten identifier that will be returned in mButtonId of SIGNDOC_CaptureOutput. |
| int SIGNDOC_CaptureParameters_replaceVirtualButton1 | ( | struct SIGNDOC_Exception ** | aEx, |
| struct SIGNDOC_CaptureParameters * | aObj, | ||
| int | aIndex, | ||
| const struct SIGNDOC_CaptureVirtualButton * | aButton | ||
| ) |
Replace a virtual button.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aIndex | The 0-based index of the virtual button. |
| [in] | aButton | The new virtual button. Must not be NULL. |
| int SIGNDOC_CaptureParameters_saveToMemory | ( | struct SIGNDOC_Exception ** | aEx, |
| const struct SIGNDOC_CaptureParameters * | aObj, | ||
| struct SIGNDOC_ByteArray * | aOutput, | ||
| unsigned | aFlags | ||
| ) |
Serialize a SIGNDOC_CaptureParameters object to a blob.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in,out] | aOutput | The serialized data will be stored here. If the output is an XML document, it will conform SignDocParameters.dtd, which see for details. |
| [in] | aFlags | Set of flags:
|
| int SIGNDOC_CaptureParameters_setBlob | ( | struct SIGNDOC_Exception ** | aEx, |
| struct SIGNDOC_CaptureParameters * | aObj, | ||
| const char * | aName, | ||
| const unsigned char * | aData, | ||
| size_t | aSize | ||
| ) |
Set a blob parameter.
Available blob parameters are:
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aName | The name of the parameter (case-sensitive). |
| [in] | aData | A pointer to the first octet of the value. |
| [in] | aSize | Size of the blob (number of octets). |
| int SIGNDOC_CaptureParameters_setBoolean | ( | struct SIGNDOC_Exception ** | aEx, |
| struct SIGNDOC_CaptureParameters * | aObj, | ||
| const char * | aName, | ||
| SIGNDOC_Boolean | aValue | ||
| ) |
Set a boolean parameter.
The following boolean parameters are available:
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aName | The name of the parameter (case-sensitive). |
| [in] | aValue | The value of the parameter. |
| int SIGNDOC_CaptureParameters_setColor | ( | struct SIGNDOC_Exception ** | aEx, |
| struct SIGNDOC_CaptureParameters * | aObj, | ||
| const char * | aName, | ||
| const struct SIGNDOC_Color * | aValue | ||
| ) |
Set a color parameter.
The following color parameters are available:
See SIGNDOC_ImageParameters_setColor() for "BackgroundColor" and "SignatureColor".
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aName | The name of the parameter (case-sensitive). |
| [in] | aValue | The value of the parameter. |
| int SIGNDOC_CaptureParameters_setInteger | ( | struct SIGNDOC_Exception ** | aEx, |
| struct SIGNDOC_CaptureParameters * | aObj, | ||
| const char * | aName, | ||
| int | aValue | ||
| ) |
Set an integer parameter.
The following integer parameters are available:
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aName | The name of the parameter (case-sensitive). |
| [in] | aValue | The value of the parameter. |
| int SIGNDOC_CaptureParameters_setNumber | ( | struct SIGNDOC_Exception ** | aEx, |
| struct SIGNDOC_CaptureParameters * | aObj, | ||
| const char * | aName, | ||
| double | aValue | ||
| ) |
Set a floating-point number parameter.
Currently, there are no floating-point number parameters available.
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aName | The name of the parameter (case-sensitive). |
| [in] | aValue | The value of the parameter. |
| int SIGNDOC_CaptureParameters_setString | ( | struct SIGNDOC_Exception ** | aEx, |
| struct SIGNDOC_CaptureParameters * | aObj, | ||
| int | aEncoding, | ||
| const char * | aName, | ||
| const char * | aValue | ||
| ) |
Set a string parameter.
Available string parameters are:
| [out] | aEx | Any exception will be returned in the object pointed to by this parameter. |
| [in] | aObj | A pointer to the SIGNDOC_CaptureParameters object. |
| [in] | aEncoding | The encoding used for aValue (SIGNDOC_ENCODING_NATIVE, SIGNDOC_ENCODING_UTF_8, or SIGNDOC_ENCODING_LATIN_1). |
| [in] | aName | The name of the parameter (case-sensitive). |
| [in] | aValue | The value of the parameter. The encoding is specified by aEncoding. |