]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSWindows/Applications/DNSServiceBrowser/WindowsCE/Sources/BrowserDialog.h
mDNSResponder-58.8.1.tar.gz
[apple/mdnsresponder.git] / mDNSWindows / Applications / DNSServiceBrowser / WindowsCE / Sources / BrowserDialog.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: BrowserDialog.h,v $
26 Revision 1.1 2003/08/21 02:16:10 bradley
27 Rendezvous Browser for HTTP services for Windows CE/PocketPC.
28
29 */
30
31 #if !defined(AFX_BROWSERDIALOG_H__DECC5C82_C1C6_4630_B8D5_E1DDE570A061__INCLUDED_)
32 #define AFX_BROWSERDIALOG_H__DECC5C82_C1C6_4630_B8D5_E1DDE570A061__INCLUDED_
33
34 #if _MSC_VER >= 1000
35 #pragma once
36 #endif // _MSC_VER >= 1000
37
38 #include "afxtempl.h"
39 #include "Resource.h"
40
41 #include "DNSServices.h"
42
43 //===========================================================================================================================
44 // BrowserDialog
45 //===========================================================================================================================
46
47 class BrowserDialog : public CDialog
48 {
49 public:
50
51 BrowserDialog( CWnd *inParent = NULL );
52
53 //{{AFX_DATA(BrowserDialog)
54 enum { IDD = IDD_APPLICATION_DIALOG };
55 CListCtrl mBrowserList;
56 //}}AFX_DATA
57
58 // ClassWizard generated virtual function overrides
59 //{{AFX_VIRTUAL(BrowserDialog)
60 protected:
61 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
62 //}}AFX_VIRTUAL
63
64 static void
65 BrowserCallBack(
66 void * inContext,
67 DNSBrowserRef inRef,
68 DNSStatus inStatusCode,
69 const DNSBrowserEvent * inEvent );
70
71 void BrowserAddService( const char *inName );
72 void BrowserRemoveService( const char *inName );
73
74 protected:
75
76 struct BrowserEntry
77 {
78 CString name;
79 };
80
81
82 HICON mIcon;
83 DNSBrowserRef mBrowser;
84 CArray < BrowserEntry, BrowserEntry > mBrowserEntries;
85
86 // Generated message map functions
87 //{{AFX_MSG(BrowserDialog)
88 virtual BOOL OnInitDialog();
89 //}}AFX_MSG
90 DECLARE_MESSAGE_MAP()
91 };
92
93 //{{AFX_INSERT_LOCATION}}
94 // Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
95
96 #endif // !defined(AFX_BROWSERDIALOG_H__DECC5C82_C1C6_4630_B8D5_E1DDE570A061__INCLUDED_)