PageRenderTime 25ms CodeModel.GetById 20ms app.highlight 4ms RepoModel.GetById 0ms app.codeStats 0ms

/packages/cocoaint/src/appkit/NSSpeechRecognizer.inc

https://github.com/slibre/freepascal
Pascal | 76 lines | 26 code | 15 blank | 35 comment | 0 complexity | eb62cda0ff3f0041dc361b5861b5395d MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
 1{ Parsed from Appkit.framework NSSpeechRecognizer.h }
 2
 3{$ifdef TYPES}
 4{$ifndef NSSPEECHRECOGNIZER_PAS_T}
 5{$define NSSPEECHRECOGNIZER_PAS_T}
 6
 7{$endif}
 8{$endif}
 9
10{$ifdef RECORDS}
11{$ifndef NSSPEECHRECOGNIZER_PAS_R}
12{$define NSSPEECHRECOGNIZER_PAS_R}
13
14{$endif}
15{$endif}
16
17{$ifdef FUNCTIONS}
18{$ifndef NSSPEECHRECOGNIZER_PAS_F}
19{$define NSSPEECHRECOGNIZER_PAS_F}
20
21{$endif}
22{$endif}
23
24{$ifdef EXTERNAL_SYMBOLS}
25{$ifndef NSSPEECHRECOGNIZER_PAS_S}
26{$define NSSPEECHRECOGNIZER_PAS_S}
27
28{$endif}
29{$endif}
30
31{$ifdef FORWARD}
32  NSSpeechRecognizerDelegateProtocol = objcprotocol;
33  NSSpeechRecognizer = objcclass;
34  NSSpeechRecognizerPointer = ^NSSpeechRecognizer;
35  NSSpeechRecognizerPtr = NSSpeechRecognizerPointer;
36
37{$endif}
38
39{$ifdef CLASSES}
40{$ifndef NSSPEECHRECOGNIZER_PAS_C}
41{$define NSSPEECHRECOGNIZER_PAS_C}
42
43{ NSSpeechRecognizer }
44  NSSpeechRecognizer = objcclass external (NSObject)
45  private
46    _privateNSSpeechRecognizerVars: id;
47    
48  public
49    function init: id; message 'init';
50    procedure startListening; message 'startListening';
51    procedure stopListening; message 'stopListening';
52    function delegate: NSSpeechRecognizerDelegateProtocol; message 'delegate';
53    procedure setDelegate(anObject: NSSpeechRecognizerDelegateProtocol); message 'setDelegate:';
54    function commands: NSArray; message 'commands';
55    procedure setCommands(commands_: NSArray); message 'setCommands:';
56    function displayedCommandsTitle: NSString; message 'displayedCommandsTitle';
57    procedure setDisplayedCommandsTitle(title: NSString); message 'setDisplayedCommandsTitle:';
58    function listensInForegroundOnly: Boolean; message 'listensInForegroundOnly';
59    procedure setListensInForegroundOnly(flag: Boolean); message 'setListensInForegroundOnly:';
60    function blocksOtherRecognizers: Boolean; message 'blocksOtherRecognizers';
61    procedure setBlocksOtherRecognizers(flag: Boolean); message 'setBlocksOtherRecognizers:';
62  end;
63
64{$endif}
65{$endif}
66{$ifdef PROTOCOLS}
67{$ifndef NSSPEECHRECOGNIZER_PAS_P}
68{$define NSSPEECHRECOGNIZER_PAS_P}
69  
70{ NSSpeechRecognizerDelegate Protocol }
71  NSSpeechRecognizerDelegateProtocol = objcprotocol external name 'NSSpeechRecognizerDelegate'
72  optional
73    procedure speechRecognizer_didRecognizeCommand(sender: NSSpeechRecognizer; command: id); message 'speechRecognizer:didRecognizeCommand:';
74  end;
75{$endif}
76{$endif}