|
|
Log In | Not a Member? |
Contact ADC |
|
ADC Home > Reference Library > Reference > Graphics & Imaging > Image Capture Applications Reference
|
ICAApplication.h |
| Includes: |
ICAApplication.h defines structures and functions that are used by applications programs to access image-capture devices such as cameras, scanners, and phones
ICACloseSession |
Use this API to close a session on a camera device. For a scanner device use the ICAScannerCloseSession API.
extern ICAError ICACloseSession( ICACloseSessionPB *pb, ICACompletion completion );
pbICACloseSessionPB parameter block.completionICACloseSession function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
This API closes an open session on a camera device. If the camera does not have any open sessions, the device module controlling the camera is free to give it up during fast-user-switching.
ICACopyObjectData |
Use this API to get a copy of data associated with a file object.
extern ICAError ICACopyObjectData( ICACopyObjectDataPB *params, ICACompletion completionProc );
paramscompletionProcReturns an error code defined in ICAApplication.h
Use this API to get a copy of data associated with a file object. This API should be used in place of ICAGetPropertyData.
ICACopyObjectPropertyDictionary |
Use this API to get a CFDictionaryRef containing all the properties for an object specified in the object field of the ICACopyObjectPropertyDictionaryPB struct.
extern ICAError ICACopyObjectPropertyDictionary( ICACopyObjectPropertyDictionaryPB *pb, ICACompletion completion );
pbICACopyObjectPropertyDictionaryPB parameter block.completionICACopyObjectPropertyDictionary function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
This API is the preferred way to get to any ICAObject related property data.
Example: void CopyObjectPropertyDictionary() { OSErr err; ICACopyObjectPropertyDictionaryPB pb = {};
pb.object = <#ICAObject object#>; err = ICACopyObjectPropertyDictionary( &pb, NULL );
if ( noErr != err) { // handle error } else { // Make sure to release the returned dictionary // pb.theDict // CFDictionaryRef * } }
ICACopyObjectThumbnail |
Use this API to get a thumbnail associated with an object.
extern ICAError ICACopyObjectThumbnail( ICACopyObjectThumbnailPB *pb, ICACompletion completion );
pbICACopyObjectThumbnailPB parameter block.completionICACopyObjectThumbnail function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
This is the recommended way to get the thumbnail of an object. Getting the thumbnail using ICAGetPropertyData is deprecaed in 10.5.
Example: void CopyObjectThumbnail() { OSErr err; ICACopyObjectThumbnailPB pb = {};
pb.object = <#ICAObject object#>; pb.thumbnailFormat = <#OSType thumbnailFormat#>; err = ICACopyObjectThumbnail( &pb, NULL );
if ( noErr != err ) { // handle error } else { // Make sure to release the thumbnailData // pb.thumbnailData // CFDataRef * } }
ICADownloadFile |
Use this API to download a file to disk.
extern ICAError ICADownloadFile( ICADownloadFilePB *pb, ICACompletion completion );
pbICADownloadFilePB parameter block.completionICADownloadFile function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
This API is a convenient way to download a file to disk. To receive the image data in memory use ICACopyObjectData. Using ICAGetPropertyData is not recommend for this purpose since ICAGetPropertyData is Deprecated in 10.5.
Example: void DownloadFile() { OSErr err; ICADownloadFilePB pb = {};
pb.flags = <#UInt32 flags#>; pb.rotationAngle = <#Fixed rotationAngle#>; pb.object = <#ICAObject object#>; pb.fileCreator = <#OSType fileCreator#>; pb.dirFSRef = <#FSRef * dirFSRef#>; pb.fileType = <#OSType fileType#>; err = ICADownloadFile( &pb, NULL );
if ( noErr != err ) { // handle error } else { // pb.fileFSRef // FSRef * } }
ICAGetChildCount |
Fetches the number of children of an object. This API is deprecated in 10.5.
extern ICAError ICAGetChildCount( ICAGetChildCountPB *pb, ICACompletion completion );
pbICAGetChildCountPB parameter block.completionICAGetChildCount function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Image Capture framework presents cameras and scanners, their contents and their capabilities as a heirarchy of objects and their properties. The ICAGetChildCount function fetches the number of children of the object specified in the object field of paramter pb.
Example: UInt32 GetNumberOfDevices () { ICAGetChildCountPB getChildCountPB; OSErr err; memset(&getChildCountPB, 0, sizeof(ICAGetChildCountPB)); getChildCountPB.object = GetDeviceList(); err = ICAGetChildCount(&getChildCountPB, nil); return getChildCountPB.count; }
ICAGetDeviceList |
Fetches the object at the top of the object heirarchy.
extern ICAError ICAGetDeviceList( ICAGetDeviceListPB *pb, ICACompletion completion );
pbICAGetDeviceListPB parameter block.completionICAGetDeviceList function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Image Capture framework presents cameras and scanners, their contents and their capabilities as a heirarchy of objects and their properties. The device list object is at the top of the heirarchy of objects. The ICAGetDeviceList function fetches this object in the object field of parameter pb. Children of the device list object can be accessed by passing the device list object to functions ICAGetChildCount() and ICAGetNthChild().
Example: ICAObject GetDeviceList() { ICAGetDeviceListPB getDeviceListPB = {}; ICAObject deviceList = 0; OSErr err; err = ICAGetDeviceList( &getDeviceListPB, nil ); if ( noErr == err ) { deviceList = getDeviceListPB.object; } return deviceList; }
ICAGetNthChild |
Fetches the child of a given object at a given index. This API is deprecated in 10.5.
extern ICAError ICAGetNthChild( ICAGetNthChildPB *pb, ICACompletion completion );
pbICAGetNthChildPB parameter block.completionICAGetNthChild function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Image Capture framework presents cameras and scanners, their contents and their capabilities as a heirarchy of objects and their properties. The ICAGetNthChild function fetches the child object of an object specifed in the parentObject field of the parameter pb at the index specified in the index field of the parameter pb. The index is zero-based. The function also returns the ICAObjectInfo for the child object in the childInfo field of the parameter pb.
Example: ICAObject GetFirstDevice () { ICAGetNthChildPB getNthChildPB; ICAObject firstDevice = NULL; OSErr err; UInt32 count; count = GetNumberOfDevices(); if (count > 0) { memset(&getNthChildPB, 0, sizeof(ICAGetNthChildPB)); getNthChildPB.parentObject = Get_Device_List(); getNthChildPB.index = 0; err = ICAGetNthChild (&getNthChildPB, nil); if (noErr == err) { firstDevice = getNthChildPB.childObject; } } return firstDevice; }
ICAGetNthProperty |
Use this API to get an object's specific property and its information. This API is deprecated in 10.5.
extern ICAError ICAGetNthProperty( ICAGetNthPropertyPB *pb, ICACompletion completion );
pbICAGetNthPropertyPB parameter block.completionICAGetNthProperty function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to get an object's specific property and its information. This API is deprecated in 10.5.
ICAGetObjectInfo |
Use this API to get information about an object. This API is deprecated in 10.5.
extern ICAError ICAGetObjectInfo( ICAGetObjectInfoPB *pb, ICACompletion completion );
pbICAGetObjectInfoPB parameter block.completionICAGetObjectInfo function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to get information about an object. This API is deprecated in 10.5.
ICAGetObjectRefCon |
Use this API to get an arbitrary refcon associated with an object. This API is deprecated in 10.5.
extern ICAError ICAGetObjectRefCon( ICAGetObjectRefConPB *pb, ICACompletion completion );
pbICAGetObjectRefConPB parameter block.completionICAGetObjectRefCon function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to get an arbitrary refcon associated with an object. This API is deprecated in 10.5.
ICAGetParentOfObject |
Use this API to get an object's parent object and its information. This API is deprecated in 10.5.
extern ICAError ICAGetParentOfObject( ICAGetParentOfObjectPB *pb, ICACompletion completion );
pbICAGetParentOfObjectPB parameter block.completionICAGetParentOfObject function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to get an object's parent object and its information. This API is deprecated in 10.5.
ICAGetParentOfProperty |
Uset this API to get a property's parent object and its information. This API is deprecated in 10.5.
extern ICAError ICAGetParentOfProperty( ICAGetParentOfPropertyPB *pb, ICACompletion completion );
pbICAGetParentOfPropertyPB parameter block.completionICAGetParentOfProperty function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Uset this API to get a property's parent object and its information. This API is deprecated in 10.5.
ICAGetPropertyByType |
Use this API to get an object's property by type and its information. This API is deprecated in 10.5.
extern ICAError ICAGetPropertyByType( ICAGetPropertyByTypePB *pb, ICACompletion completion );
pbICAGetPropertyByTypePB parameter block.completionICAGetPropertyByType function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to get an object's property by type and its information. This API is deprecated in 10.5.
ICAGetPropertyCount |
Use this API to get the number of properties an object has. This API is deprecated in 10.5.
extern ICAError ICAGetPropertyCount( ICAGetPropertyCountPB *pb, ICACompletion completion );
pbICAGetPropertyCountPB parameter block.completionICAGetPropertyCount function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to get the number of properties an object has. This API is deprecated in 10.5.
ICAGetPropertyData |
Use this API to get data associated with a property. This API is deprecated in 10.5. Use one of the ICACopy* APIs instead.
extern ICAError ICAGetPropertyData( ICAGetPropertyDataPB *pb, ICACompletion completion );
pbICAGetPropertyDataPB parameter block.completionICAGetPropertyData function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to get data associated with a property. This API is deprecated in 10.5. Use one of the ICACopy* APIs instead.
ICAGetPropertyInfo |
Use this API to get information about a property. This API is deprecated in 10.5.
extern ICAError ICAGetPropertyInfo( ICAGetPropertyInfoPB *pb, ICACompletion completion );
pbICAGetPropertyInfoPB parameter block.completionICAGetPropertyInfo function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to get information about a property. This API is deprecated in 10.5.
ICAGetPropertyRefCon |
Use this API to get an arbitrary refcon associated with a property. This API is deprecated in 10.5.
extern ICAError ICAGetPropertyRefCon( ICAGetPropertyRefConPB *pb, ICACompletion completion );
pbICAGetPropertyRefConPB parameter block.completionICAGetPropertyRefCon function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to get an arbitrary refcon associated with a property. This API is deprecated in 10.5.
ICAGetRootOfObject |
Use this API to get an object's root object (in the object hierarchy) and its information. This API is deprecated in 10.5.
extern ICAError ICAGetRootOfObject( ICAGetRootOfObjectPB *pb, ICACompletion completion );
pbICAGetRootOfObjectPB parameter block.completionICAGetRootOfObject function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to get an object's root object (in the object hierarchy) and its information. This API is deprecated in 10.5.
ICAGetRootOfProperty |
Uset this API to get a property's root object (in the object hierarchy) and its information. This API is deprecated in 10.5.
extern ICAError ICAGetRootOfProperty( ICAGetRootOfPropertyPB *pb, ICACompletion completion );
pbICAGetRootOfPropertyPB parameter block.completionICAGetRootOfProperty function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Uset this API to get a property's root object (in the object hierarchy) and its information. This API is deprecated in 10.5.
ICAImportImage |
This API displays a Common User Interface panel similar to the user interface of Image Capture Application. This allows the user to work a camera or a scanner.
extern ICAError ICAImportImage( ICAImportImagePB *pb, ICACompletion completion );
pbICAImportImagePB parameter block.completionICAImportImage function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to add Image Capture support to an application.
Example: void ImportImage() { OSErr err; ICAImportImagePB pb = {};
pb.deviceObject = 0; pb.flags = 0; pb.supportedFileTypes = (CFArrayRef)[NSArray arrayWithObjects: @"tif", @"tiff", @"jpg", NULL]; err = ICAImportImage(&pb, NULL);
if ( noErr != err ) { // handle error } else { // Process the importedImages array // pb.importedImages // CFArrayRef * } }
ICALoadDeviceModule |
Use this API to load a device module.
extern ICAError ICALoadDeviceModule( ICALoadDeviceModulePB *pb, ICACompletion completion );
pbICALoadDeviceModulePB parameter block.completionICALoadDeviceModule function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Typically, connecting a FireWire or an USB device will automatically load an appropriate device module. This API is needed only for loading a device module manually for devices that do not use a hot-plug interface, such as Bluetooth, SCSI, or TCP/IP.
ICAObjectSendMessage |
Use this API to send a message to a device object.
extern ICAError ICAObjectSendMessage( ICAObjectSendMessagePB *pb, ICACompletion completion );
pbICAObjectSendMessagePB parameter block.completionICAObjectSendMessage function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to send a message to a device object. All devices do not respond to all the messages defined above.
ICAOpenSession |
Use this API to open a session on a camera device. For a scanner device use the ICAScannerOpenSession API.
extern ICAError ICAOpenSession( ICAOpenSessionPB *pb, ICACompletion completion );
pbICAOpenSessionPB parameter block.completionICAOpenSession function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
This API gets a session ID for a open session on a camera device. Since access to cameras is generally not be session-based, this API generall will not fail. If the camera has open session, the device module controlling the camera will continue to control it during fast-user-switching.
ICARegisterEventNotification |
This API is deprecated in 10.5. Use ICARegisterForEventNotification API instead.
extern ICAError ICARegisterEventNotification( ICARegisterEventNotificationPB *pb, ICACompletion completion );
pbICARegisterEventNotificationPB parameter block.completionICARegisterEventNotification function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
This API is deprecated in 10.5. Use ICARegisterForEventNotification API instead.
ICARegisterForEventNotification |
Use this API to register with Image Capture framework to receive notification about events of interest.
extern ICAError ICARegisterForEventNotification( ICARegisterForEventNotificationPB *params, ICACompletion completionProc );
paramscompletionProcReturns an error code defined in ICAApplication.h
ICAScannerCloseSession |
Use this API to close a session on a scanner device. For a camera device use the ICACloseSession API.
extern ICAError ICAScannerCloseSession( ICAScannerCloseSessionPB *pb, ICACompletion completion );
pbICAScannerCloseSessionPB parameter block.completionICAScannerCloseSession function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
This API closes an open session, allowing other clients to work with the scanner.
ICAScannerGetParameters |
Use this API to get information about the scanner such as resolution, scanning area, etc.
extern ICAError ICAScannerGetParameters( ICAScannerGetParametersPB *pb, ICACompletion completion );
pbICAScannerGetParametersPB parameter block.completionICAScannerGetParameters function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to get information about the scanner such as resolution, scanning area, etc.
ICAScannerInitialize |
Use this API to initialize a scanner device.
extern ICAError ICAScannerInitialize( ICAScannerInitializePB *pb, ICACompletion completion );
pbICAScannerInitializePB parameter block.completionICAScannerInitialize function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
After opening a session on a scanner device, use this API to set an initial state for the scanner.
ICAScannerOpenSession |
Use this API to open a session on a scanner device. For a camera device use the ICAOpenSession API.
extern ICAError ICAScannerOpenSession( ICAScannerOpenSessionPB *pb, ICACompletion completion );
pbICAScannerOpenSessionPB parameter block.completionICAScannerOpenSession function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
For a given scanner, this API returns a unique session ID that allows you to work with the device. This API will fail, if a session is already open.
ICAScannerSetParameters |
Use this API to specify scan parameters that will be used when a scan is initiated via an ICAScannerStart.
extern ICAError ICAScannerSetParameters( ICAScannerSetParametersPB *pb, ICACompletion completion );
pbICAScannerSetParametersPB parameter block.completionICAScannerSetParameters function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to specify scan parameters that will be used when a scan is initiated via an ICAScannerStart.
ICAScannerStart |
Use this API start a scan based on the parameters that were specified in a previous ICAScannerSetParameters call.
extern ICAError ICAScannerStart( ICAScannerStartPB *pb, ICACompletion completion );
pbICAScannerStartPB parameter block.completionICAScannerStart function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API start a scan based on the parameters that were specified in a previous ICAScannerSetParameters call.
ICAScannerStatus |
Use this API to get information about the current status of the scanner.
extern ICAError ICAScannerStatus( ICAScannerStatusPB *pb, ICACompletion completion );
pbICAScannerStatusPB parameter block.completionICAScannerStatus function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to get information about the current status of the scanner.
ICASetObjectRefCon |
Use this API to set an arbitrary refcon for an object. This API is deprecated in 10.5.
extern ICAError ICASetObjectRefCon( ICASetObjectRefConPB *pb, ICACompletion completion );
pbICASetObjectRefConPB parameter block.completionICASetObjectRefCon function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to set an arbitrary refcon for an object. This API is deprecated in 10.5.
ICASetPropertyData |
Use this API to set data for a property. This API is deprecated in 10.5.
extern ICAError ICASetPropertyData( ICASetPropertyDataPB *pb, ICACompletion completion );
pbICASetPropertyDataPB parameter block.completionICASetPropertyData function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to set data for a property. This API is deprecated in 10.5.
ICASetPropertyRefCon |
Use this API to set an arbitrary refcon for a property. This API is deprecated in 10.5.
extern ICAError ICASetPropertyRefCon( ICASetPropertyRefConPB *pb, ICACompletion completion );
pbICASetPropertyRefConPB parameter block.completionICASetPropertyRefCon function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
Use this API to set an arbitrary refcon for a property. This API is deprecated in 10.5.
ICAShowDeviceBrowser |
Use this API to display a device browser user interface from any Image Capture client application.
extern ICAError ICAShowDeviceBrowser( CFDictionaryRef options );
optionsReturns an error code defined in ICAApplication.h
The device browser user interface allows the user to do the following: - enable and disable sharing of locally connected cameras and scanners. - connect to or disconnect from cameras and scanners shared by other computers. - configure WiFi capable cameras for use over the WiFi network.
ICAUnloadDeviceModule |
Uset this API to unload a device module.
extern ICAError ICAUnloadDeviceModule( ICAUnloadDeviceModulePB *pb, ICACompletion completion );
pbICAUnloadDeviceModulePB parameter block.completionICAUnloadDeviceModule function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
The device module providing this object will be unloaded, if this is the last device object provided by the device module.
ICAUploadFile |
Use this API to upload a file to a device that supports this capability.
extern ICAError ICAUploadFile( ICAUploadFilePB *pb, ICACompletion completion );
pbICAUploadFilePB parameter block.completionICAUploadFile function. Set this parameter to NULL to invoke this API synchronously.Returns an error code defined in ICAApplication.h
The device choses an appropriate destination location for the uploaded image and sends a kICANotificationTypeObjectAdded notification.
Example: void UploadFile() { OSErr err; ICAUploadFilePB pb = {};
pb.fileFSRef = <#FSRef * fileFSRef#>; pb.flags = <#UInt32 flags#>; pb.parentObject = <#ICAObject parentObject#>; err = ICAUploadFile( &pb, NULL );
if ( noErr != err ) { // handle error } else { // no return value(s) } }
ICACloseSessionPB |
typedef struct ICACloseSessionPB { ICAHeader header; ICASessionID sessionID; } ICACloseSessionPB;
header- See description for ICAHeader. <->
sessionID- A session ID of the session to be closed. <--
ICACopyObjectDataPB |
typedef struct ICACopyObjectDataPB { ICAHeader header; ICAObject object; size_t startByte; size_t requestedSize; CFDataRef *data; } ICACopyObjectDataPB;
header- See description for ICAHeader. <->
object- A file object. <--
startByte- Starting byte offset of the data in the file object. <--
requestedSize- Requested data size in bytes. <--
data- A pointer to CFDataRef in which the data will be returned. --> It is the responsibility fo the caller to release this object.
ICACopyObjectPropertyDictionaryPB |
typedef struct ICACopyObjectPropertyDictionaryPB { ICAHeader header; ICAObject object; CFDictionaryRef *theDict; } ICACopyObjectPropertyDictionaryPB;
header- See description for ICAHeader. <->
object- An object whose properties are being requested. <--
theDict- A dictionary to hold the properties. This must be released by the caller. -->
ICACopyObjectThumbnailPB |
typedef struct ICACopyObjectThumbnailPB { ICAHeader header; ICAObject object; OSType thumbnailFormat; CFDataRef *thumbnailData; } ICACopyObjectThumbnailPB;
header- See description for ICAHeader. <->
object- An object whose thumbail is being requested. <--
thumbnailFormat- One of the format values defined above. <--
thumbnailData- A pointer to a CFDataRef holding the thumbnail data. The returned CFDataRef must be released by the caller. -->
ICADownloadFilePB |
typedef struct ICADownloadFilePB { ICAHeader header; ICAObject object; FSRef *dirFSRef; UInt32 flags; OSType fileType; OSType fileCreator; Fixed rotationAngle; FSRef *fileFSRef; } ICADownloadFilePB;
header- See description for ICAHeader. <->
object- The file object. <--
dirFSRef- FSRef of destination directiory. <--
flags- Any combination of flag values defined above. <--
fileType- Four-char code indicating the type of file. <--
fileCreator- Four-char code indicating with the creator of the file. <--
rotationAngle- Rotation angle in steps of 90 degress. <--
fileFSRef- A pointer to FSRef struct to hold the FSRef of downloaded file. Set this to NULL if the FSRef of downloaded file is not of interest. -->
ICAExtendedRegisterEventNotificationPB |
typedef struct ICAExtendedRegisterEventNotificationPB { ICAHeader header; ICAObject object; OSType extd; ICACompletion notifyProc; UInt32 rawEventType; OSType eventType; OSType eventClass; UInt32 eventDataSize; ICAEventDataCookie eventDataCookie; ICAObject deviceObject; } ICAExtendedRegisterEventNotificationPB;
header- See description for ICAHeader. <->
object- An object about which notifications are requested. <->
extd- Set this to kExtendedNotificationPB.
notifyProc- A callback function to receive the notifications. <--
rawEventType- Type of event that occurred. This could be vendor-specific.
eventType- Type of ImageCapture supported event that occurred. Refer to "Image Capture event types". <->
eventClass- Set to one of the following: 'kICAEventClassPTPStandard', 'kICAEventClassPTPStandard or any vendor-specific value. -->
eventDataSize- This is non-zero if there is additional data associated with this event. Additional event data can be fetched by calling ICAObjectSendMessage with messageType set to 'kICAMessageGetEventData', dataType set to value of eventDataCookie and dataSize set to value of eventDataSize. -->
eventDataCookie- A token identifying the additional data associated with this event. Additional event data can be fetched by calling ICAObjectSendMessage with messageType set to 'kICAMessageGetEventData', dataType set to value of eventDataCookie and dataSize set to value of eventDataSize. -->
deviceObject- Device object associated with the event. -->
Use this parameter block with the 'extd' field set to kExtendedNotificationPB to receive detailed (extended) notifications. This parameter block is passed back with event notifications to the callback function.
ICAGetChildCountPB |
typedef struct ICAGetChildCountPB { ICAHeader header; ICAObject object; UInt32 count; } ICAGetChildCountPB;
header- See description for ICAHeader. <-->
object- An object whose number of children is being requested by calling ICAGetChildCount. <--
count- Number of children returned by ICAGetChildCount, if successful. Should check err field in header before using the value returned in count. -->
ICAGetDeviceListPB |
typedef struct ICAGetDeviceListPB { ICAHeader header; ICAObject object; } ICAGetDeviceListPB;
header- See description for ICAHeader. <-->
object- The device list object, if ICAGetDeviceList returns successfully. -->
ICAGetNthChildPB |
typedef struct ICAGetNthChildPB { ICAHeader header; ICAObject parentObject; UInt32 index; ICAObject childObject; ICAObjectInfo childInfo; } ICAGetNthChildPB;
header- See description for ICAHeader. <-->
parentObject- An object whose child is being accessed. <--
index- A zero based index in to the children of 'parentObject'. <--
childObject- Child object, if ICAGetNthChild returns successfully. -->
childInfo- Object information for 'childObject', if ICAGetNthChild returns successfully. -->
ICAGetNthPropertyPB |
typedef struct ICAGetNthPropertyPB { ICAHeader header; ICAObject object; UInt32 index; ICAProperty property; ICAPropertyInfo propertyInfo; } ICAGetNthPropertyPB;
header- See description for ICAHeader. <-->
object- An object whose property is being fetched. <--
index- A zero based index in to the properties of 'object'. <--
property- Property, if ICAGetNthProperty returns successfully. -->
propertyInfo- Property information for 'property', if ICAGetNthProperty returns successfully. -->
ICAGetObjectInfoPB |
typedef struct ICAGetObjectInfoPB { ICAHeader header; ICAObject object; ICAObjectInfo objectInfo; } ICAGetObjectInfoPB;
header- See description for ICAHeader. <-->
object- An object whose information is being requested by calling ICAGetObjectInfo. <--
objectInfo- Object information for 'object', if ICAGetObjectInfo returns successfully. -->
ICAGetObjectRefConPB |
typedef struct ICAGetObjectRefConPB { ICAHeader header; ICAObject object; unsigned long objectRefCon; } ICAGetObjectRefConPB;
header- See description for ICAHeader. <-->
object- An object whose associated refcon value is being accessed by calling ICAGetObjectRefCon. <--
objectRefCon- The refcon value. -->
ICAGetParentOfObjectPB |
typedef struct ICAGetParentOfObjectPB { ICAHeader header; ICAObject object; ICAObject parentObject; ICAObjectInfo parentInfo; } ICAGetParentOfObjectPB;
header- See description for ICAHeader. <-->
object- An object whose parent is being accessed by calling ICAGetParentOfObject. <--
parentObject- Parent object, if ICAGetParentOfObject returns successfully. -->
parentInfo- Object information for the parent object, if ICAGetParentOfObject returns successfully. -->
ICAGetParentOfPropertyPB |
typedef struct ICAGetParentOfPropertyPB { ICAHeader header; ICAProperty property; ICAObject parentObject; ICAObjectInfo parentInfo; } ICAGetParentOfPropertyPB;
header- See description for ICAHeader. <-->
property- A property whose parent is being fetched. <--
parentObject- Parent object, if ICAGetParentOfProperty returns successfully. -->
parentInfo- Information about 'parentObject', if ICAGetParentOfProperty returns successfully. -->
ICAGetPropertyByTypePB |
typedef struct ICAGetPropertyByTypePB { ICAHeader header; ICAObject object; OSType propertyType; ICAProperty property; ICAPropertyInfo propertyInfo; } ICAGetPropertyByTypePB;
header- See description for ICAHeader. <-->
object- An object whose property is being fetched. <--
propertyType- The type of property being fetched. <--
property- Property, if ICAGetPropertyByType returns successfully. -->
propertyInfo- Property information for 'property', if ICAGetPropertyByType returns successfully. -->
ICAGetPropertyCountPB |
typedef struct ICAGetPropertyCountPB { ICAHeader header; ICAObject object; UInt32 coun