topical media & game development

talk show tell print

#mobile-application-10-DerbyApp-build-iphone-Classes-TiNetworkBonjourBrowserProxy.h / h



  
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. Special thanks to Steve Tramer for implementing this.

  
  
  ifdef USE_TI_NETWORK
  
  #import <Foundation/Foundation.h>
  #import <TiProxy.h>
  #import <Foundation/NSNetServices.h>
  
  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 <NSObject>
  @end
  
  endif
  
  // NSNetServiceBrowser delegate
  @interface TiNetworkBonjourBrowserProxy : TiProxy<NSNetServiceBrowserDelegate> {
      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


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.