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