/** * Appcelerator Titanium Mobile * Copyright (c) 2009-2011 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ #import "TiProxy.h" #import "Bridge.h" #import "TiEvaluator.h" #import "TiStylesheet.h" @interface TiHost : NSObject { NSMutableDictionary *modules; NSMutableDictionary *contexts; NSURL *startURL; NSURL *baseURL; TiStylesheet *stylesheet; BOOL debugMode; } @property (nonatomic,assign) BOOL debugMode; -(NSString*)appID; -(NSURL*)baseURL; -(NSURL*)startURL; +(NSString *)resourcePath; -(TiStylesheet*)stylesheet; +(NSURL*)resourceBasedURL:(NSString*)fn baseURL:(NSString**)base; -(id)moduleNamed:(NSString*)name context:(id)context; -(void)fireEvent:(id)listener withObject:(id)obj remove:(BOOL)remove context:(id)context thisObject:(TiProxy*)thisObject_; -(void)removeListener:(id)listener context:(id)context; -(void)evaluateJS:(NSString*)js context:(id)context; -(void)registerContext:(id)context forToken:(NSString*)token; -(void)unregisterContext:(id)context forToken:(NSString*)token; -(id)contextForToken:(NSString*)token; @end