1 /* -*- Mode: C; tab-width: 4 -*-
3 * Copyright (c) 2002-2004 Apple Computer, Inc. All rights reserved.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 Change History (most recent first):
19 $Log: ConfigPropertySheet.h,v $
20 Revision 1.7 2009/07/01 19:20:37 herscher
21 <rdar://problem/6713286> UI changes for configuring sleep proxy settings.
23 Revision 1.6 2009/03/30 19:58:47 herscher
24 <rdar://problem/5925472> Current Bonjour code does not compile on Windows
25 <rdar://problem/5187308> Move build train to Visual Studio 2005
27 Revision 1.5 2006/08/14 23:25:28 cheshire
28 Re-licensed mDNSResponder daemon source code under Apache License, Version 2.0
30 Revision 1.4 2005/03/03 19:55:21 shersche
31 <rdar://problem/4034481> ControlPanel source code isn't saving CVS log info
36 #ifndef _ConfigPropertySheet_h
37 #define _ConfigPropertySheet_h
40 #include "FirstPage.h"
41 #include "SecondPage.h"
42 #include "ThirdPage.h"
43 #include "FourthPage.h"
50 //---------------------------------------------------------------------------------------------------------------------------
51 // CConfigPropertySheet
52 //---------------------------------------------------------------------------------------------------------------------------
54 class CConfigPropertySheet
: public CPropertySheet
58 CConfigPropertySheet();
59 virtual ~CConfigPropertySheet();
61 typedef std::list
<CString
> StringList
;
63 StringList m_browseDomains
;
64 StringList m_regDomains
;
68 CFirstPage m_firstPage
;
69 CSecondPage m_secondPage
;
70 CThirdPage m_thirdPage
;
71 CFourthPage m_fourthPage
;
73 //{{AFX_VIRTUAL(CConfigPropertySheet)
76 DECLARE_DYNCREATE(CConfigPropertySheet
)
78 //{{AFX_MSG(CConfigPropertySheet)
82 afx_msg BOOL
OnInitDialog();
83 afx_msg BOOL
OnCommand( WPARAM wParam
, LPARAM lParam
);
84 afx_msg LRESULT
OnDataReady( WPARAM inWParam
, LPARAM inLParam
);
85 afx_msg LRESULT
OnRegistryChanged( WPARAM inWParam
, LPARAM inLParam
);
97 SetupRegistryNotifications();
100 TearDownRegistryNotifications();
103 DecodeDomainName( const char * raw
, CString
& decoded
);
106 GetNextLabel( const char * cstr
, char label
[64] );
108 static void DNSSD_API
112 DNSServiceFlags flags
,
113 uint32_t interfaceIndex
,
114 DNSServiceErrorType errorCode
,
115 const char * replyDomain
,
119 static void DNSSD_API
123 DNSServiceFlags flags
,
124 uint32_t interfaceIndex
,
125 DNSServiceErrorType errorCode
,
126 const char * replyDomain
,
130 // This thread will watch for registry changes
132 static unsigned WINAPI
140 HANDLE m_threadExited
;
141 DNSServiceRef m_browseDomainsRef
;
142 DNSServiceRef m_regDomainsRef
;
143 CRITICAL_SECTION m_lock
;