-
Notifications
You must be signed in to change notification settings - Fork 1
/
HHServiceBrowser.h
41 lines (26 loc) · 1.18 KB
/
HHServiceBrowser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// HHServiceBrowser.h
// Part of Hejsan-Hoppsan-Services : http://www.github.com/tolo/HHServices
//
// Created by Tobias on 2011-11-02.
// Copyright (c) 2011 Leafnode AB. All rights reserved.
//
#import "HHServiceSupport.h"
#import "HHService.h"
@class HHServiceBrowser;
@protocol HHServiceBrowserDelegate <NSObject>
- (void) serviceBrowser:(HHServiceBrowser*)serviceBrowser didFindService:(HHService*)service moreComing:(BOOL)moreComing;
- (void) serviceBrowser:(HHServiceBrowser*)serviceBrowser didRemoveService:(HHService*)service moreComing:(BOOL)moreComing;
@end
@interface HHServiceBrowser : HHServiceSupport
@property (nonatomic, assign) id<HHServiceBrowserDelegate> delegate;
@property (nonatomic, retain, readonly) NSString* type;
@property (nonatomic, retain, readonly) NSString* domain;
@property (nonatomic) BOOL includeP2P;
- (id) initWithType:(NSString*)svcType domain:(NSString*)svcDomain;
- (id) initWithType:(NSString*)svcType domain:(NSString*)svcDomain includeP2P:(BOOL)includeP2P;
- (HHService*) resolverForService:(NSString*)name;
- (BOOL) resolveService:(NSString*)name delegate:(id<HHServiceDelegate>)resolveDelegate;
- (BOOL) beginBrowse;
- (void) endBrowse;
@end