summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/foundation/NSScriptSuiteRegistry.inc
blob: 3810b6a128f49bf65103e0bece37da71df6804dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{ Parsed from Foundation.framework NSScriptSuiteRegistry.h }

{$ifdef TYPES}
{$ifndef NSSCRIPTSUITEREGISTRY_PAS_T}
{$define NSSCRIPTSUITEREGISTRY_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSSCRIPTSUITEREGISTRY_PAS_R}
{$define NSSCRIPTSUITEREGISTRY_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSSCRIPTSUITEREGISTRY_PAS_F}
{$define NSSCRIPTSUITEREGISTRY_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSSCRIPTSUITEREGISTRY_PAS_S}
{$define NSSCRIPTSUITEREGISTRY_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSScriptSuiteRegistry = objcclass;
  NSScriptSuiteRegistryPointer = ^NSScriptSuiteRegistry;
  NSScriptSuiteRegistryPtr = NSScriptSuiteRegistryPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSSCRIPTSUITEREGISTRY_PAS_C}
{$define NSSCRIPTSUITEREGISTRY_PAS_C}

{ NSScriptSuiteRegistry }
  NSScriptSuiteRegistry = objcclass external (NSObject)
  private
    _isLoadingSDEFFiles: Boolean;
    _reserved1: array[0..(3)-1] of char;
    _seenBundles: NSMutableSet;
    _suiteDescriptionsBeingCollected: NSMutableArray;
    _classDescriptionNeedingRegistration: NSScriptClassDescription;
    _suiteDescriptions: NSMutableArray;
    _commandDescriptionNeedingRegistration: NSScriptCommandDescription;
    _cachedClassDescriptionsByAppleEventCode: NSMutableDictionary;
    _cachedCommandDescriptionsByAppleEventCodes: NSMutableDictionary;
    _cachedSuiteDescriptionsByName: NSDictionary;
    _complexTypeDescriptionsByName: NSMutableDictionary;
    _listTypeDescriptionsByName: NSMutableDictionary;
    _nextComplexTypeAppleEventCode: cuint;
    _reserved2: array[0..(4)-1] of Pointer;
    
  public
    class function sharedScriptSuiteRegistry: NSScriptSuiteRegistry; message 'sharedScriptSuiteRegistry';
    class procedure setSharedScriptSuiteRegistry(registry: NSScriptSuiteRegistry); message 'setSharedScriptSuiteRegistry:';
    procedure loadSuitesFromBundle(bundle: NSBundle); message 'loadSuitesFromBundle:';
    procedure loadSuiteWithDictionary_fromBundle(suiteDeclaration: NSDictionary; bundle: NSBundle); message 'loadSuiteWithDictionary:fromBundle:';
    procedure registerClassDescription(classDescription: NSScriptClassDescription); message 'registerClassDescription:';
    procedure registerCommandDescription(commandDescription: NSScriptCommandDescription); message 'registerCommandDescription:';
    function suiteNames: NSArray; message 'suiteNames';
    function appleEventCodeForSuite(suiteName: NSString): FourCharCode; message 'appleEventCodeForSuite:';
    function bundleForSuite(suiteName: NSString): NSBundle; message 'bundleForSuite:';
    function classDescriptionsInSuite(suiteName: NSString): NSDictionary; message 'classDescriptionsInSuite:';
    function commandDescriptionsInSuite(suiteName: NSString): NSDictionary; message 'commandDescriptionsInSuite:';
    function suiteForAppleEventCode(appleEventCode: FourCharCode): NSString; message 'suiteForAppleEventCode:';
    function classDescriptionWithAppleEventCode(appleEventCode: FourCharCode): NSScriptClassDescription; message 'classDescriptionWithAppleEventCode:';
    function commandDescriptionWithAppleEventClass_andAppleEventCode(appleEventClassCode: FourCharCode; appleEventIDCode: FourCharCode): NSScriptCommandDescription; message 'commandDescriptionWithAppleEventClass:andAppleEventCode:';
    function aeteResource(languageName: NSString): NSData; message 'aeteResource:';
  end;

{$endif}
{$endif}