TKSmartCard.inc 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. { Parsed from CryptoTokenKit.framework TKSmartCard.h }
  2. {$ifdef TYPES}
  3. type
  4. TKSmartCardSlotManagerPtr = ^TKSmartCardSlotManager;
  5. TKSmartCardSlotPtr = ^TKSmartCardSlot;
  6. TKSmartCardPtr = ^TKSmartCard;
  7. {$endif}
  8. {$ifdef CLASSES}
  9. type
  10. TKSmartCardSlotManager = objcclass external (NSObject)
  11. public
  12. class function defaultManager: instancetype; message 'defaultManager';
  13. function slotNames: NSArray; message 'slotNames';
  14. procedure getSlotWithName_reply (name: NSString; reply: OpaqueCBlock); message 'getSlotWithName:reply:';
  15. end;
  16. {$endif}
  17. {$ifdef TYPES}
  18. type
  19. TKSmartCardSlotState = NSInteger;
  20. TKSmartCardSlotStatePtr = ^TKSmartCardSlotState;
  21. const
  22. TKSmartCardSlotStateMissing = 0;
  23. TKSmartCardSlotStateEmpty = 1;
  24. TKSmartCardSlotStateProbing = 2;
  25. TKSmartCardSlotStateMuteCard = 3;
  26. TKSmartCardSlotStateValidCard = 4;
  27. TKSmartCardNoSlot = TKSmartCardSlotStateMissing deprecated 'in 10_10, 10_10';
  28. TKSmartCardSlotEmpty = TKSmartCardSlotStateEmpty deprecated 'in 10_10, 10_10';
  29. TKSmartCardSlotProbing = TKSmartCardSlotStateProbing deprecated 'in 10_10, 10_10';
  30. TKSmartCardSlotMuteCard = TKSmartCardSlotStateMuteCard deprecated 'in 10_10, 10_10';
  31. TKSmartCardSlotValidCard = TKSmartCardSlotStateValidCard deprecated 'in 10_10, 10_10';
  32. {$endif}
  33. {$ifdef CLASSES}
  34. type
  35. TKSmartCardSlot = objcclass external (NSObject)
  36. public
  37. function state: TKSmartCardSlotState; message 'state';
  38. function ATR: TKSmartCardATR; message 'ATR';
  39. function name: NSString; message 'name';
  40. function maxInputLength: NSInteger; message 'maxInputLength';
  41. function maxOutputLength: NSInteger; message 'maxOutputLength';
  42. function makeSmartCard: TKSmartCard; message 'makeSmartCard';
  43. end;
  44. type
  45. TKSmartCard = objcclass external (NSObject)
  46. public
  47. function slot: TKSmartCardSlot; message 'slot';
  48. function valid: ObjCBOOL; message 'valid';
  49. procedure setAllowedProtocols(newValue: TKSmartCardProtocol); message 'setAllowedProtocols:';
  50. function allowedProtocols: TKSmartCardProtocol; message 'allowedProtocols';
  51. function currentProtocol: TKSmartCardProtocol; message 'currentProtocol';
  52. procedure setSensitive(newValue: ObjCBOOL); message 'setSensitive:';
  53. function sensitive: ObjCBOOL; message 'sensitive';
  54. procedure setContext(newValue: id); message 'setContext:';
  55. function context: id; message 'context';
  56. procedure beginSessionWithReply (reply: OpaqueCBlock); message 'beginSessionWithReply:';
  57. procedure transmitRequest_reply (request: NSData; reply: OpaqueCBlock); message 'transmitRequest:reply:';
  58. procedure endSession; message 'endSession';
  59. end;
  60. type
  61. APDULevelTransmit = objccategory external (TKSmartCard)
  62. procedure setCla(newValue: UInt8); message 'setCla:';
  63. function cla: UInt8; message 'cla';
  64. procedure setUseExtendedLength(newValue: ObjCBOOL); message 'setUseExtendedLength:';
  65. function useExtendedLength: ObjCBOOL; message 'useExtendedLength';
  66. procedure sendIns_p1_p2_data_le_reply (ins: UInt8; p1: UInt8; p2: UInt8; requestData: NSData; le: NSNumber; reply: OpaqueCBlock); message 'sendIns:p1:p2:data:le:reply:';
  67. end;
  68. {$endif}