]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSWindows/ControlPanel/RegistrationPage.h
mDNSResponder-379.37.tar.gz
[apple/mdnsresponder.git] / mDNSWindows / ControlPanel / RegistrationPage.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
18 #pragma once
19
20 #include "stdafx.h"
21 #include "resource.h"
22 #include <DebugServices.h>
23 #include "afxwin.h"
24
25
26 //---------------------------------------------------------------------------------------------------------------------------
27 // CRegistrationPage
28 //---------------------------------------------------------------------------------------------------------------------------
29
30 class CRegistrationPage : public CPropertyPage
31 {
32 public:
33 CRegistrationPage();
34 ~CRegistrationPage();
35
36 protected:
37 //{{AFX_DATA(CRegistrationPage)
38 enum { IDD = IDR_APPLET_PAGE1 };
39 //}}AFX_DATA
40
41 //{{AFX_VIRTUAL(CRegistrationPage)
42 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
43 //}}AFX_VIRTUAL
44
45 DECLARE_DYNCREATE(CRegistrationPage)
46
47 //{{AFX_MSG(CRegistrationPage)
48 //}}AFX_MSG
49 DECLARE_MESSAGE_MAP()
50
51 private:
52
53 afx_msg BOOL OnSetActive();
54 afx_msg void OnOK();
55
56 void SetModified( BOOL bChanged = TRUE );
57 void Commit();
58
59 CEdit m_hostnameControl;
60 CEdit m_usernameControl;
61 CEdit m_passwordControl;
62 CButton m_advertiseServices;
63 bool m_ignoreChanges;
64 bool m_modified;
65 HKEY m_hostnameSetupKey;
66 HKEY m_registrationSetupKey;
67 HKEY m_statusKey;
68
69 public:
70
71 afx_msg void OnEnChangeHostname();
72 afx_msg void OnEnChangeUsername();
73 afx_msg void OnEnChangePassword();
74 afx_msg void OnBnClickedAdvertiseServices();
75 };