summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/foundation/NSScriptCommandDescription.inc
blob: 509f61a486a47143efde07fe731ad957b75853f1 (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
{ Parsed from Foundation.framework NSScriptCommandDescription.h }

{$ifdef TYPES}
{$ifndef NSSCRIPTCOMMANDDESCRIPTION_PAS_T}
{$define NSSCRIPTCOMMANDDESCRIPTION_PAS_T}

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSSCRIPTCOMMANDDESCRIPTION_PAS_R}
{$define NSSCRIPTCOMMANDDESCRIPTION_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSSCRIPTCOMMANDDESCRIPTION_PAS_F}
{$define NSSCRIPTCOMMANDDESCRIPTION_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSSCRIPTCOMMANDDESCRIPTION_PAS_S}
{$define NSSCRIPTCOMMANDDESCRIPTION_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSScriptCommandDescription = objcclass;
  NSScriptCommandDescriptionPointer = ^NSScriptCommandDescription;
  NSScriptCommandDescriptionPtr = NSScriptCommandDescriptionPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSSCRIPTCOMMANDDESCRIPTION_PAS_C}
{$define NSSCRIPTCOMMANDDESCRIPTION_PAS_C}

{ NSScriptCommandDescription }
  NSScriptCommandDescription = objcclass external (NSObject, NSCodingProtocol)
  private
    _suiteName: NSString;
    _plistCommandName: NSString;
    _classAppleEventCode: FourCharCode;
    _idAppleEventCode: FourCharCode;
    _objcClassName: NSString;
    _resultTypeNameOrDescription: NSObject;
    _plistResultTypeAppleEventCode: FourCharCode;
    _moreVars: id;
    
  public
    function initWithSuiteName_commandName_dictionary(suiteName_: NSString; commandName_: NSString; commandDeclaration: NSDictionary): id; message 'initWithSuiteName:commandName:dictionary:';
    function suiteName: NSString; message 'suiteName';
    function commandName: NSString; message 'commandName';
    function appleEventClassCode: FourCharCode; message 'appleEventClassCode';
    function appleEventCode: FourCharCode; message 'appleEventCode';
    function commandClassName: NSString; message 'commandClassName';
    function returnType: NSString; message 'returnType';
    function appleEventCodeForReturnType: FourCharCode; message 'appleEventCodeForReturnType';
    function argumentNames: NSArray; message 'argumentNames';
    function typeForArgumentWithName(argumentName: NSString): NSString; message 'typeForArgumentWithName:';
    function appleEventCodeForArgumentWithName(argumentName: NSString): FourCharCode; message 'appleEventCodeForArgumentWithName:';
    function isOptionalArgumentWithName(argumentName: NSString): Boolean; message 'isOptionalArgumentWithName:';
    function createCommandInstance: NSScriptCommand; message 'createCommandInstance';
    function createCommandInstanceWithZone(zone_: NSZonePtr): NSScriptCommand; message 'createCommandInstanceWithZone:';

    { Adopted Protocols }
    procedure encodeWithCoder(aCoder: NSCoder);
    function initWithCoder(aDecoder: NSCoder): id;
  end;

{$endif}
{$endif}