1.1 --- a/Bonjour/MYBonjourBrowser.h Wed Apr 22 16:45:39 2009 -0700
1.2 +++ b/Bonjour/MYBonjourBrowser.h Mon Apr 27 09:03:56 2009 -0700
1.3 @@ -6,17 +6,15 @@
1.4 // Copyright 2008 Jens Alfke. All rights reserved.
1.5 //
1.6
1.7 -#import <Foundation/Foundation.h>
1.8 +#import "MYDNSService.h"
1.9
1.10
1.11 /** Searches for Bonjour services of a specific type. */
1.12 -@interface MYBonjourBrowser : NSObject
1.13 +@interface MYBonjourBrowser : MYDNSService
1.14 {
1.15 @private
1.16 NSString *_serviceType;
1.17 - NSNetServiceBrowser *_browser;
1.18 BOOL _browsing;
1.19 - NSError *_error;
1.20 Class _serviceClass;
1.21 NSMutableSet *_services, *_addServices, *_rmvServices;
1.22 }
1.23 @@ -26,19 +24,9 @@
1.24 @param serviceType The name of the service type to look for, e.g. "_http._tcp". */
1.25 - (id) initWithServiceType: (NSString*)serviceType;
1.26
1.27 -/** Starts browsing. This is asynchronous, so nothing will happen immediately. */
1.28 -- (void) start;
1.29 -
1.30 -/** Stops browsing. */
1.31 -- (void) stop;
1.32 -
1.33 /** Is the browser currently browsing? */
1.34 @property (readonly) BOOL browsing;
1.35
1.36 -/** The current error status, if any.
1.37 - This is KV-observable. */
1.38 -@property (readonly,retain) NSError* error;
1.39 -
1.40 /** The set of currently found services. These are instances of the serviceClass,
1.41 which is BonjourService by default.
1.42 This is KV-observable. */