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