ICDevice.inc 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. { Parsed from ImageCaptureCore.framework ICDevice.h }
  2. {$ifdef TYPES}
  3. type
  4. ICDevicePtr = ^ICDevice;
  5. ICDeviceDelegateProtocolPtr = ^ICDeviceDelegateProtocol;
  6. {$endif}
  7. {$ifdef TYPES}
  8. const
  9. ICDeviceTypeCamera = $00000001;
  10. ICDeviceTypeScanner = $00000002;
  11. type
  12. ICDeviceType = NSUInteger;
  13. ICDeviceTypePtr = ^ICDeviceType;
  14. const
  15. ICDeviceLocationTypeLocal = $00000100;
  16. ICDeviceLocationTypeShared = $00000200;
  17. ICDeviceLocationTypeBonjour = $00000400;
  18. ICDeviceLocationTypeBluetooth = $00000800;
  19. type
  20. ICDeviceLocationType = NSUInteger;
  21. ICDeviceLocationTypePtr = ^ICDeviceLocationType;
  22. const
  23. ICDeviceTypeMaskCamera = $00000001;
  24. ICDeviceTypeMaskScanner = $00000002;
  25. type
  26. ICDeviceTypeMask = NSUInteger;
  27. ICDeviceTypeMaskPtr = ^ICDeviceTypeMask;
  28. const
  29. ICDeviceLocationTypeMaskLocal = $00000100;
  30. ICDeviceLocationTypeMaskShared = $00000200;
  31. ICDeviceLocationTypeMaskBonjour = $00000400;
  32. ICDeviceLocationTypeMaskBluetooth = $00000800;
  33. ICDeviceLocationTypeMaskRemote = $0000FE00;
  34. type
  35. ICDeviceLocationTypeMask = NSUInteger;
  36. ICDeviceLocationTypeMaskPtr = ^ICDeviceLocationTypeMask;
  37. {$endif}
  38. {$ifdef EXTERNAL_SYMBOLS}
  39. var
  40. ICTransportTypeUSB: NSString; cvar; external;
  41. ICTransportTypeFireWire: NSString; cvar; external;
  42. ICTransportTypeBluetooth: NSString; cvar; external;
  43. ICTransportTypeTCPIP: NSString; cvar; external;
  44. ICTransportTypeMassStorage: NSString; cvar; external;
  45. ICDeviceLocationDescriptionUSB: NSString; cvar; external;
  46. ICDeviceLocationDescriptionFireWire: NSString; cvar; external;
  47. ICDeviceLocationDescriptionBluetooth: NSString; cvar; external;
  48. ICDeviceLocationDescriptionMassStorage: NSString; cvar; external;
  49. ICButtonTypeScan: NSString; cvar; external;
  50. ICButtonTypeMail: NSString; cvar; external;
  51. ICButtonTypeCopy: NSString; cvar; external;
  52. ICButtonTypeWeb: NSString; cvar; external;
  53. ICButtonTypePrint: NSString; cvar; external;
  54. ICButtonTypeTransfer: NSString; cvar; external;
  55. ICStatusNotificationKey: NSString; cvar; external;
  56. ICStatusCodeKey: NSString; cvar; external;
  57. ICLocalizedStatusNotificationKey: NSString; cvar; external;
  58. ICDeviceCanEjectOrDisconnect: NSString; cvar; external;
  59. {$endif}
  60. {$ifdef PROTOCOLS}
  61. type
  62. ICDeviceDelegateProtocol = objcprotocol external name 'ICDeviceDelegate' (NSObjectProtocol)
  63. required
  64. procedure didRemoveDevice (device: ICDevice); message 'didRemoveDevice:';
  65. optional
  66. procedure device_didOpenSessionWithError (device: ICDevice; error: NSError); message 'device:didOpenSessionWithError:';
  67. procedure deviceDidBecomeReady (device: ICDevice); message 'deviceDidBecomeReady:';
  68. procedure device_didCloseSessionWithError (device: ICDevice; error: NSError); message 'device:didCloseSessionWithError:';
  69. procedure deviceDidChangeName (device: ICDevice); message 'deviceDidChangeName:';
  70. procedure deviceDidChangeSharingState (device: ICDevice); message 'deviceDidChangeSharingState:';
  71. procedure device_didReceiveStatusInformation (device: ICDevice; status: NSDictionary); message 'device:didReceiveStatusInformation:';
  72. procedure device_didEncounterError (device: ICDevice; error: NSError); message 'device:didEncounterError:';
  73. procedure device_didReceiveButtonPress (device: ICDevice; buttonType: NSString); message 'device:didReceiveButtonPress:';
  74. procedure device_didReceiveCustomNotification_data (device: ICDevice; notification: NSDictionary; data: NSData); message 'device:didReceiveCustomNotification:data:';
  75. end;
  76. {$endif}
  77. {$ifdef CLASSES}
  78. type
  79. ICDevice = objcclass external (NSObject)
  80. private
  81. _deviceProperties: id;
  82. public
  83. procedure setDelegate(newValue: ICDeviceDelegateProtocol); message 'setDelegate:';
  84. function delegate: ICDeviceDelegateProtocol; message 'delegate';
  85. function type_: ICDeviceType; message 'type';
  86. function name: NSString; message 'name';
  87. function icon: CGImageRef; message 'icon';
  88. function capabilities: NSArray; message 'capabilities';
  89. function modulePath: NSString; message 'modulePath';
  90. function moduleVersion: NSString; message 'moduleVersion';
  91. function moduleExecutableArchitecture: cint; message 'moduleExecutableArchitecture';
  92. function isRemote: ObjCBOOL; message 'isRemote';
  93. function isShared: ObjCBOOL; message 'isShared';
  94. function hasConfigurableWiFiInterface: ObjCBOOL; message 'hasConfigurableWiFiInterface';
  95. function transportType: NSString; message 'transportType';
  96. function usbLocationID: cint; message 'usbLocationID';
  97. function usbProductID: cint; message 'usbProductID';
  98. function usbVendorID: cint; message 'usbVendorID';
  99. function fwGUID: clonglong; message 'fwGUID';
  100. function serialNumberString: NSString; message 'serialNumberString';
  101. function locationDescription: NSString; message 'locationDescription';
  102. function hasOpenSession: ObjCBOOL; message 'hasOpenSession';
  103. function UUIDString: NSString; message 'UUIDString';
  104. function persistentIDString: NSString; message 'persistentIDString';
  105. function buttonPressed: NSString; message 'buttonPressed';
  106. procedure setAutolaunchApplicationPath(newValue: NSString); message 'setAutolaunchApplicationPath:';
  107. function autolaunchApplicationPath: NSString; message 'autolaunchApplicationPath';
  108. function userData: NSMutableDictionary; message 'userData';
  109. procedure requestOpenSession; message 'requestOpenSession';
  110. procedure requestCloseSession; message 'requestCloseSession';
  111. procedure requestYield; message 'requestYield';
  112. procedure requestSendMessage_outData_maxReturnedDataSize_sendMessageDelegate_didSendMessageSelector_contextInfo (messageCode: cuint; data: NSData; maxReturnedDataSize: cuint; sendMessageDelegate: id; selector: SEL; contextInfo: pointer); message 'requestSendMessage:outData:maxReturnedDataSize:sendMessageDelegate:didSendMessageSelector:contextInfo:';
  113. procedure requestEjectOrDisconnect; message 'requestEjectOrDisconnect';
  114. end;
  115. {$endif}