/
BridgeSupportController.h
65 lines (48 loc) · 1.46 KB
/
BridgeSupportController.h
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
//
// BridgeSupportController.h
// JSCocoa
//
// Created by Patrick Geiller on 08/07/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#if !TARGET_IPHONE_SIMULATOR && !TARGET_OS_IPHONE
#import <Cocoa/Cocoa.h>
#endif
@class JSBridgeType;
@interface BridgeSupportController : NSObject {
NSMutableArray* paths;
NSMutableArray* xmlDocuments;
NSMutableDictionary* hash;
NSMutableDictionary* ghash;
JSBridgeType* currentBridgeType;
}
+ (id)sharedController;
- (BOOL)loadBridgeSupport:(NSString*)path;
- (BOOL)isBridgeSupportLoaded:(NSString*)path;
- (NSUInteger)bridgeSupportIndexForString:(NSString*)string;
/*
- (NSString*)query:(NSString*)name withType:(NSString*)type;
- (NSString*)query:(NSString*)name withType:(NSString*)type inBridgeSupportFile:(NSString*)file;
*/
- (NSString*)queryName:(NSString*)name;
- (NSString*)queryName:(NSString*)name type:(NSString*)type;
- (JSBridgeType*) typeForName:(NSString*)name;
@end
extern NSString *JSBridgeTypeConstant;
extern NSString *JSBridgeTypeEnum;
extern NSString *JSBridgeTypeFunction;
@interface JSBridgeType : NSObject {
NSString *_type;
NSString *_name;
NSString *_ctype;
NSInteger _evalue;
NSArray *_args;
NSDictionary *_retval;
}
@property (retain) NSString *type;
@property (retain) NSString *name;
@property (retain) NSString *ctype;
@property (assign) NSInteger evalue;
@property (retain) NSArray *args;
@property (retain) NSDictionary *retval;
@end