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
23#include <DebugServices.h>
24#include <list>
25#include "afxcmn.h"
26
27#include "afxwin.h"
28
29
30
31
32
33//---------------------------------------------------------------------------------------------------------------------------
34//	CServicesPage
35//---------------------------------------------------------------------------------------------------------------------------
36
37class CServicesPage : public CPropertyPage
38{
39public:
40	CServicesPage();
41	~CServicesPage();
42
43protected:
44
45	//{{AFX_DATA(CServicesPage)
46	enum { IDD = IDR_APPLET_PAGE5 };
47	//}}AFX_DATA
48
49	//{{AFX_VIRTUAL(CServicesPage)
50	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
51	//}}AFX_VIRTUAL
52
53	DECLARE_DYNCREATE(CServicesPage)
54
55	//{{AFX_MSG(CServicesPage)
56	//}}AFX_MSG
57	DECLARE_MESSAGE_MAP()
58
59private:
60
61	typedef std::list<CString> StringList;
62
63	afx_msg BOOL
64	OnSetActive();
65
66	afx_msg void
67	OnOK();
68
69	void
70	SetModified( BOOL bChanged = TRUE );
71
72	void
73	Commit();
74
75	BOOL			m_modified;
76
77public:
78private:
79
80	CButton m_SMBCheckBox;
81	CButton m_powerManagementCheckBox;
82
83public:
84
85
86	afx_msg void OnBnClickedAdvertiseSMB();
87	afx_msg void OnBnClickedPowerManagement();
88};
89
90
91//---------------------------------------------------------------------------------------------------------------------------
92//	CPowerManagementWarning
93//---------------------------------------------------------------------------------------------------------------------------
94
95class CPowerManagementWarning : public CDialog
96{
97	DECLARE_DYNAMIC(CPowerManagementWarning)
98
99public:
100
101	CPowerManagementWarning(CWnd* pParent = NULL);   // standard constructor
102
103	virtual ~CPowerManagementWarning();
104
105// Dialog Data
106
107	enum { IDD = IDR_POWER_MANAGEMENT_WARNING };
108
109protected:
110
111	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
112
113	virtual BOOL OnInitDialog();
114
115	virtual void OnOK();
116
117	DECLARE_MESSAGE_MAP()
118
119public:
120
121	CStatic m_energySaverIcon;
122};
123
124