]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSMacOSX/Applications/DNSServiceBrowser/BrowserController.h
mDNSResponder-58.6.tar.gz
[apple/mdnsresponder.git] / mDNSMacOSX / Applications / DNSServiceBrowser / BrowserController.h
1 /*
2 * Copyright (c) 2002-2003 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
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
11 * file.
12 *
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.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22
23 Change History (most recent first):
24
25 $Log: BrowserController.h,v $
26 Revision 1.7 2003/08/12 19:55:07 cheshire
27 Update to APSL 2.0
28
29 */
30
31 #import <Cocoa/Cocoa.h>
32 #import <DNSServiceDiscovery/DNSServiceDiscovery.h>
33
34 #include <netinet/in.h>
35
36 @interface BrowserController : NSObject
37 {
38 IBOutlet id domainField;
39 IBOutlet id nameField;
40 IBOutlet id typeField;
41
42 IBOutlet id serviceDisplayTable;
43 IBOutlet id typeColumn;
44 IBOutlet id nameColumn;
45 IBOutlet id serviceTypeField;
46 IBOutlet id serviceNameField;
47
48 IBOutlet id ipAddressField;
49 IBOutlet id portField;
50 IBOutlet id textField;
51
52 NSMutableArray *srvtypeKeys;
53 NSMutableArray *srvnameKeys;
54 NSMutableArray *domainKeys;
55 NSMutableArray *nameKeys;
56 NSString *Domain;
57 NSString *SrvType;
58 NSString *SrvName;
59 NSString *Name;
60
61 dns_service_discovery_ref browse_client;
62
63 }
64
65 - (IBAction)handleDomainClick:(id)sender;
66 - (IBAction)handleNameClick:(id)sender;
67 - (IBAction)handleTypeClick:(id)sender;
68
69 - (IBAction)connect:(id)sender;
70
71 - (IBAction)handleTableClick:(id)sender;
72 - (IBAction)removeSelected:(id)sender;
73 - (IBAction)addNewService:(id)sender;
74
75 - (IBAction)update:(NSString *)Type Domain:(NSString *)Domain;
76 - (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication;
77 - (IBAction)loadDomains:(id)sender;
78
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;
82
83 @end