Oolite
Loading...
Searching...
No Matches
OOJSInterfaceDefinition.h
Go to the documentation of this file.
1/*
2
3OOJSInterfaceDefinition.h
4
5
6Oolite
7Copyright (C) 2004-2013 Giles C Williams and contributors
8
9This program is free software; you can redistribute it and/or
10modify it under the terms of the GNU General Public License
11as published by the Free Software Foundation; either version 2
12of the License, or (at your option) any later version.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with this program; if not, write to the Free Software
21Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22MA 02110-1301, USA.
23
24*/
25
26#import "OOJSScript.h"
27#include <jsapi.h>
28
30@private
31 jsval _callback;
32 JSObject* _callbackThis;
34
35 NSString* _title;
36 NSString* _summary;
37 NSString* _category;
38}
39
40- (NSString*)title;
41- (void)setTitle:(NSString*)title;
42- (NSString*)category;
43- (void)setCategory:(NSString*)category;
44- (NSString*)summary;
45- (void)setSummary:(NSString*)summary;
46- (jsval)callback;
47- (void)setCallback:(jsval)callback;
48- (JSObject*)callbackThis;
49- (void)setCallbackThis:(JSObject*)callbackthis;
50
51- (void)runCallback:(NSString*)key;
52
53- (NSComparisonResult)interfaceCompare:(OOJSInterfaceDefinition*)other;
54
55@end