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