]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSWindows/ControlPanel/FirstPage.h
mDNSResponder-107.6.tar.gz
[apple/mdnsresponder.git] / mDNSWindows / ControlPanel / FirstPage.h
1 /* -*- Mode: C; tab-width: 4 -*-
2 *
3 * Copyright (c) 2002-2004 Apple Computer, Inc. All rights reserved.
4 *
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
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
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.
16
17 Change History (most recent first):
18
19 $Log: FirstPage.h,v $
20 Revision 1.4 2006/08/14 23:25:28 cheshire
21 Re-licensed mDNSResponder daemon source code under Apache License, Version 2.0
22
23 Revision 1.3 2005/03/07 18:27:42 shersche
24 <rdar://problem/4037940> Fix problem when ControlPanel commits changes to the browse domain list
25
26 Revision 1.2 2005/03/03 19:55:21 shersche
27 <rdar://problem/4034481> ControlPanel source code isn't saving CVS log info
28
29
30 */
31
32 #pragma once
33
34 #include "stdafx.h"
35 #include "resource.h"
36
37 #include <DebugServices.h>
38 #include "afxwin.h"
39
40
41 //---------------------------------------------------------------------------------------------------------------------------
42 // CFirstPage
43 //---------------------------------------------------------------------------------------------------------------------------
44
45 class CFirstPage : public CPropertyPage
46 {
47 public:
48 CFirstPage();
49 ~CFirstPage();
50
51 protected:
52 //{{AFX_DATA(CFirstPage)
53 enum { IDD = IDR_APPLET_PAGE1 };
54 //}}AFX_DATA
55
56 //{{AFX_VIRTUAL(CFirstPage)
57 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
58 //}}AFX_VIRTUAL
59
60 DECLARE_DYNCREATE(CFirstPage)
61
62 //{{AFX_MSG(CFirstPage)
63 //}}AFX_MSG
64 DECLARE_MESSAGE_MAP()
65 public:
66 afx_msg void OnBnClickedSharedSecret();
67 void OnRegistryChanged();
68 private:
69
70 afx_msg BOOL OnSetActive();
71 afx_msg void OnOK();
72
73 void SetModified( BOOL bChanged = TRUE );
74 void Commit();
75
76 OSStatus CheckStatus();
77 void ShowStatus( DWORD status );
78
79 CEdit m_hostnameControl;
80 bool m_ignoreHostnameChange;
81 bool m_modified;
82 HKEY m_statusKey;
83 HKEY m_setupKey;
84
85 public:
86
87 afx_msg void OnEnChangeHostname();
88 CStatic m_failureIcon;
89 CStatic m_successIcon;
90 };