/** * Appcelerator Titanium Mobile * Copyright (c) 2009-2010 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 "TiUtils.h" #import "TiEvaluator.h" @class TiHost; @interface TiModule : TiProxy { @protected TiHost *host; @private CFMutableDictionaryRef classNameLookup; NSString *moduleName; id moduleAssets; } // internal -(void)_setName:(NSString*)name; -(void)setPageContext:(id)evaluator; -(void)setHost:(TiHost*)host; -(id)createProxy:(NSArray*)args forName:(NSString*)name context:(id)evaluator; // module related utilities -(NSString*)moduleId; -(BOOL)isJSModule; -(NSData*)moduleJS; -(NSURL*)moduleResourceURL:(NSString*)name; -(id)bindCommonJSModule:(NSString*)code; -(id)bindCommonJSModuleForPath:(NSURL*)path; // lifecycle -(void)startup; -(void)shutdown:(id)sender; -(void)suspend:(id)sender; -(void)resume:(id)sender; -(void)resumed:(id)sender; @end