]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSWindows/ControlPanel/SecondPage.h
mDNSResponder-107.5.tar.gz
[apple/mdnsresponder.git] / mDNSWindows / ControlPanel / SecondPage.h
1 /*
2 * Copyright (c) 2002-2004 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: SecondPage.h,v $
26 Revision 1.4 2005/04/05 03:52:14 shersche
27 <rdar://problem/4066485> Registering with shared secret key doesn't work. Additionally, mDNSResponder wasn't dynamically re-reading it's DynDNS setup after setting a shared secret key.
28
29 Revision 1.3 2005/03/03 19:55:21 shersche
30 <rdar://problem/4034481> ControlPanel source code isn't saving CVS log info
31
32
33 */
34
35 #pragma once
36
37 #include "stdafx.h"
38 #include "resource.h"
39
40 #include <DebugServices.h>
41 #include <list>
42
43
44 //---------------------------------------------------------------------------------------------------------------------------
45 // CSecondPage
46 //---------------------------------------------------------------------------------------------------------------------------
47
48 class CSecondPage : public CPropertyPage
49 {
50 public:
51 CSecondPage();
52 ~CSecondPage();
53
54 protected:
55
56 //{{AFX_DATA(CSecondPage)
57 enum { IDD = IDR_APPLET_PAGE2 };
58 //}}AFX_DATA
59
60 //{{AFX_VIRTUAL(CSecondPage)
61 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
62 //}}AFX_VIRTUAL
63
64 DECLARE_DYNCREATE(CSecondPage)
65
66 //{{AFX_MSG(CSecondPage)
67 //}}AFX_MSG
68 DECLARE_MESSAGE_MAP()
69 public:
70
71 afx_msg void OnBnClickedSharedSecret();
72 afx_msg void OnBnClickedAdvertise();
73
74 void OnAddRegistrationDomain( CString & domain );
75 void OnRemoveRegistrationDomain( CString & domain );
76
77 private:
78
79 typedef std::list<CString> StringList;
80
81 afx_msg BOOL
82 OnSetActive();
83
84 afx_msg void
85 OnOK();
86
87 void
88 EmptyComboBox
89 (
90 CComboBox & box
91 );
92
93 OSStatus
94 Populate(
95 CComboBox & box,
96 HKEY key,
97 StringList & l
98 );
99
100 void
101 SetModified( BOOL bChanged = TRUE );
102
103 void
104 Commit();
105
106 OSStatus
107 Commit( CComboBox & box, HKEY key, DWORD enabled );
108
109 OSStatus
110 CreateKey( CString & name, DWORD enabled );
111
112 OSStatus
113 RegQueryString( HKEY key, CString valueName, CString & value );
114
115 CComboBox m_regDomainsBox;
116 CButton m_advertiseServicesButton;
117 CButton m_sharedSecretButton;
118 BOOL m_modified;
119 HKEY m_setupKey;
120
121 public:
122 afx_msg void OnCbnSelChange();
123 afx_msg void OnCbnEditChange();
124 };