FinderSync.inc 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. { Parsed from FinderSync.framework FinderSync.h }
  2. {$ifdef TYPES}
  3. type
  4. FIFinderSyncControllerPtr = ^FIFinderSyncController;
  5. FIFinderSyncPtr = ^FIFinderSync;
  6. FIFinderSyncProtocolPtr = ^FIFinderSyncProtocol;
  7. {$endif}
  8. {$if defined(__OBJC2__)}
  9. {$ifdef CLASSES}
  10. type
  11. FIFinderSyncController = objcclass external (NSExtensionContext)
  12. public
  13. class function defaultController: instancetype; message 'defaultController';
  14. procedure setDirectoryURLs(newValue: NSSet); message 'setDirectoryURLs:';
  15. function directoryURLs: NSSet; message 'directoryURLs';
  16. procedure setBadgeImage_label_forBadgeIdentifier (image: NSImage; label_: NSString; badgeID: NSString); message 'setBadgeImage:label:forBadgeIdentifier:';
  17. procedure setBadgeIdentifier_forURL (badgeID: NSString; url: NSURL); message 'setBadgeIdentifier:forURL:';
  18. function targetedURL: NSURL; message 'targetedURL';
  19. function selectedItemURLs: NSArray; message 'selectedItemURLs';
  20. end;
  21. {$endif}
  22. {$ifdef TYPES}
  23. type
  24. FIMenuKind = NSUInteger;
  25. FIMenuKindPtr = ^FIMenuKind;
  26. const
  27. FIMenuKindContextualMenuForItems = 0;
  28. FIMenuKindContextualMenuForContainer = 1;
  29. FIMenuKindContextualMenuForSidebar = 2;
  30. FIMenuKindToolbarItemMenu = 3;
  31. {$endif}
  32. {$ifdef PROTOCOLS}
  33. type
  34. FIFinderSyncProtocol = objcprotocol external name 'FIFinderSync'
  35. optional
  36. function menuForMenuKind (menu: FIMenuKind): NSMenu; message 'menuForMenuKind:';
  37. procedure beginObservingDirectoryAtURL (url: NSURL); message 'beginObservingDirectoryAtURL:';
  38. procedure endObservingDirectoryAtURL (url: NSURL); message 'endObservingDirectoryAtURL:';
  39. procedure requestBadgeIdentifierForURL (url: NSURL); message 'requestBadgeIdentifierForURL:';
  40. function toolbarItemName: NSString; message 'toolbarItemName';
  41. function toolbarItemImage: NSImage; message 'toolbarItemImage';
  42. function toolbarItemToolTip: NSString; message 'toolbarItemToolTip';
  43. end;
  44. {$endif}
  45. {$ifdef CLASSES}
  46. type
  47. FIFinderSync = objcclass external (NSObject, FIFinderSyncProtocol, NSExtensionRequestHandlingProtocol)
  48. { Adopted protocols }
  49. procedure beginObservingDirectoryAtURL (url: NSURL); message 'beginObservingDirectoryAtURL:';
  50. procedure beginRequestWithExtensionContext (context: NSExtensionContext); message 'beginRequestWithExtensionContext:';
  51. procedure endObservingDirectoryAtURL (url: NSURL); message 'endObservingDirectoryAtURL:';
  52. function menuForMenuKind (menu: FIMenuKind): NSMenu; message 'menuForMenuKind:';
  53. procedure requestBadgeIdentifierForURL (url: NSURL); message 'requestBadgeIdentifierForURL:';
  54. function toolbarItemImage: NSImage; message 'toolbarItemImage';
  55. function toolbarItemName: NSString; message 'toolbarItemName';
  56. function toolbarItemToolTip: NSString; message 'toolbarItemToolTip';
  57. end;
  58. {$endif}
  59. {$endif}