]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSWindows/ControlPanel/ThirdPage.h
mDNSResponder-161.1.tar.gz
[apple/mdnsresponder.git] / mDNSWindows / ControlPanel / ThirdPage.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: ThirdPage.h,v $
20 Revision 1.3 2006/08/14 23:25:29 cheshire
21 Re-licensed mDNSResponder daemon source code under Apache License, Version 2.0
22
23 Revision 1.2 2005/03/03 19:55:21 shersche
24 <rdar://problem/4034481> ControlPanel source code isn't saving CVS log info
25
26
27 */
28
29 #pragma once
30
31 #include "stdafx.h"
32 #include "resource.h"
33
34 #include <DebugServices.h>
35 #include <list>
36 #include "afxcmn.h"
37
38 #include "afxwin.h"
39
40
41
42
43
44 //---------------------------------------------------------------------------------------------------------------------------
45 // CThirdPage
46 //---------------------------------------------------------------------------------------------------------------------------
47
48 class CThirdPage : public CPropertyPage
49 {
50 public:
51 CThirdPage();
52 ~CThirdPage();
53
54 protected:
55
56 //{{AFX_DATA(CThirdPage)
57 enum { IDD = IDR_APPLET_PAGE3 };
58 //}}AFX_DATA
59
60 //{{AFX_VIRTUAL(CThirdPage)
61 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
62 //}}AFX_VIRTUAL
63
64 DECLARE_DYNCREATE(CThirdPage)
65
66 //{{AFX_MSG(CThirdPage)
67 //}}AFX_MSG
68 DECLARE_MESSAGE_MAP()
69
70 private:
71
72 typedef std::list<CString> StringList;
73
74 afx_msg BOOL
75 OnSetActive();
76
77 afx_msg void
78 OnOK();
79
80 void
81 SetModified( BOOL bChanged = TRUE );
82
83 void
84 Commit();
85
86 BOOL m_modified;
87
88 public:
89 private:
90
91 static int CALLBACK
92
93 SortFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
94
95
96
97 CListCtrl m_browseListCtrl;
98
99 bool m_initialized;
100
101 bool m_firstTime;
102
103
104
105 public:
106
107
108
109 afx_msg void OnBnClickedAddBrowseDomain();
110
111 afx_msg void OnBnClickedRemoveBrowseDomain();
112
113 afx_msg void OnLvnItemchangedBrowseList(NMHDR *pNMHDR, LRESULT *pResult);
114
115 CButton m_removeButton;
116
117 };
118
119
120
121
122
123 //---------------------------------------------------------------------------------------------------------------------------
124 // CAddBrowseDomain
125 //---------------------------------------------------------------------------------------------------------------------------
126
127
128 class CAddBrowseDomain : public CDialog
129
130 {
131
132 DECLARE_DYNAMIC(CAddBrowseDomain)
133
134
135
136 public:
137
138 CAddBrowseDomain(CWnd* pParent = NULL); // standard constructor
139
140 virtual ~CAddBrowseDomain();
141
142
143
144 // Dialog Data
145
146 enum { IDD = IDR_ADD_BROWSE_DOMAIN };
147
148
149
150 protected:
151
152 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
153
154 virtual BOOL OnInitDialog();
155
156 virtual void OnOK();
157
158 DECLARE_MESSAGE_MAP()
159
160 public:
161
162 CComboBox m_comboBox;
163
164 CString m_text;
165
166 };
167