summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/scriptingbridge/SBApplication.inc
blob: efd05482ce81e57744ad13b3c8168edbabddce9a (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
{ Parsed from ScriptingBridge.framework SBApplication.h }


{$ifdef TYPES}
type
  SBApplicationPtr = ^SBApplication;
  SBApplicationDelegateProtocolPtr = ^SBApplicationDelegateProtocol;
{$endif}

{$ifdef CLASSES}

type
  SBApplication = objcclass external (SBObject, NSCodingProtocol)
  public
    function initWithBundleIdentifier (ident: NSString): id; message 'initWithBundleIdentifier:';
    function initWithURL (url: NSURL): id; message 'initWithURL:';
    function initWithProcessIdentifier (pid: pid_t): id; message 'initWithProcessIdentifier:';
    class function applicationWithBundleIdentifier (ident: NSString): id; message 'applicationWithBundleIdentifier:';
    class function applicationWithURL (url: NSURL): id; message 'applicationWithURL:';
    class function applicationWithProcessIdentifier (pid: pid_t): id; message 'applicationWithProcessIdentifier:';
    function classForScriptingClass (className: NSString): pobjc_class; message 'classForScriptingClass:';
    function isRunning: ObjCBOOL; message 'isRunning';
    procedure activate; message 'activate';
    procedure setDelegate(newValue: SBApplicationDelegateProtocol); message 'setDelegate:';
    function delegate: SBApplicationDelegateProtocol; message 'delegate';
    procedure setLaunchFlags(newValue: LSLaunchFlags); message 'setLaunchFlags:';
    function launchFlags: LSLaunchFlags; message 'launchFlags';
    procedure setSendMode(newValue: AESendMode); message 'setSendMode:';
    function sendMode: AESendMode; message 'sendMode';
    procedure setTimeout(newValue: clong); message 'setTimeout:';
    function timeout: clong; message 'timeout';
  end;
{$endif}

{$ifdef PROTOCOLS}

type
  SBApplicationDelegateProtocol = objcprotocol external name 'SBApplicationDelegate'
    function eventDidFail_withError (event: AppleEventPtr; error: NSError): id; message 'eventDidFail:withError:';
  end;
{$endif}