2 * Copyright (c) 2002-2003 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
23 Change History (most recent first):
25 $Log: BrowserController.h,v $
26 Revision 1.7 2003/08/12 19:55:07 cheshire
31 #import <Cocoa/Cocoa.h>
32 #import <DNSServiceDiscovery/DNSServiceDiscovery.h>
34 #include <netinet/in.h>
36 @interface BrowserController
: NSObject
38 IBOutlet id domainField
;
39 IBOutlet id nameField
;
40 IBOutlet id typeField
;
42 IBOutlet id serviceDisplayTable
;
43 IBOutlet id typeColumn
;
44 IBOutlet id nameColumn
;
45 IBOutlet id serviceTypeField
;
46 IBOutlet id serviceNameField
;
48 IBOutlet id ipAddressField
;
49 IBOutlet id portField
;
50 IBOutlet id textField
;
52 NSMutableArray
*srvtypeKeys
;
53 NSMutableArray
*srvnameKeys
;
54 NSMutableArray
*domainKeys
;
55 NSMutableArray
*nameKeys
;
61 dns_service_discovery_ref browse_client
;
65 - (IBAction
)handleDomainClick
:(id
)sender
;
66 - (IBAction
)handleNameClick
:(id
)sender
;
67 - (IBAction
)handleTypeClick
:(id
)sender
;
69 - (IBAction
)connect
:(id
)sender
;
71 - (IBAction
)handleTableClick
:(id
)sender
;
72 - (IBAction
)removeSelected
:(id
)sender
;
73 - (IBAction
)addNewService
:(id
)sender
;
75 - (IBAction
)update
:(NSString
*)Type Domain
:(NSString
*)Domain
;
76 - (BOOL
)applicationShouldTerminateAfterLastWindowClosed
:(NSApplication
*)theApplication
;
77 - (IBAction
)loadDomains
:(id
)sender
;
79 - (void)updateBrowseWithResult
:(int)type name
:(NSString
*)name type
:(NSString
*)resulttype domain
:(NSString
*)domain flags
:(int)flags
;
80 - (void)updateEnumWithResult
:(int)resultType domain
:(NSString
*)domain flags
:(int)flags
;
81 - (void)resolveClientWithInterface
:(struct sockaddr
*)interface address
:(struct sockaddr
*)address txtRecord
:(NSString
*)txtRecord
;