/** * 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. * * Special thanks to Steve Tramer for implementing this. */ #ifdef USE_TI_NETWORK #import #import "TiProxy.h" #import #if !defined(__IPHONE_4_0) || (__IPHONE_OS_VERSION_MAX_ALLOWED < __IPHONE_4_0) //Prior to 4.0, All the delegate protocol didn't exist. Instead, the methods //were a category on NSObject. So to make this compile for 3.x, we make an empty protocol. @protocol NSNetServiceBrowserDelegate @end #endif // NSNetServiceBrowser delegate @interface TiNetworkBonjourBrowserProxy : TiProxy { NSNetServiceBrowser* browser; NSString* serviceType; NSString* domain; NSMutableArray* services; BOOL searching; NSString* error; NSCondition* searchCondition; } -(void)search:(id)unused; -(void)stopSearch:(id)unused; @property(readonly, nonatomic) NSString* serviceType; @property(readonly, nonatomic) NSString* domain; @property(readonly, nonatomic, getter=isSearching) NSNumber* searching; @end #endif