/**
 * 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.
 * 
 * WARNING: This is generated code. Modify at your own risk and without support.
 */
#import <Foundation/Foundation.h>
#import "KrollContext.h"

@class TiHost;

@protocol TiEvaluator <NSObject>

- (TiHost*)host;

- (void)evalJSWithoutResult:(NSString*)code;

- (void)evalFile:(NSString*)file;

// NOTE: this must only be called on a thread JS thread or an exception will occur
- (id)evalJSAndWait:(NSString*)code;

- (void)fireEvent:(id)listener withObject:(id)obj remove:(BOOL)yn thisObject:(id)thisObject_;

- (id)preloadForKey:(id)key;

- (KrollContext*)krollContext;

- (void)registerProxy:(id)proxy;

- (void)unregisterProxy:(id)proxy;


@end
