Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

264 lines
6.2 KiB

  1. /*++
  2. 1998 Seagate Software, Inc. All rights reserved
  3. Module Name:
  4. WzMnVlLs.h
  5. Abstract:
  6. Managed Volume wizard.
  7. Author:
  8. Rohde Wakefield [rohde] 08-Aug-1997
  9. Revision History:
  10. --*/
  11. #ifndef _WZMNVLLS_H
  12. #define _WZMNVLLS_H
  13. #include "SakVlLs.h"
  14. // Pre-declare
  15. class CWizManVolLst;
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CWizManVolLstLevels dialog
  18. class CWizManVolLstLevels : public CSakWizardPage
  19. {
  20. // Construction
  21. public:
  22. CWizManVolLstLevels( );
  23. ~CWizManVolLstLevels();
  24. // Dialog Data
  25. //{{AFX_DATA(CWizManVolLstLevels)
  26. enum { IDD = IDD_WIZ_MANVOLLST_LEVELS };
  27. CSpinButtonCtrl m_SpinSize;
  28. CSpinButtonCtrl m_SpinLevel;
  29. CSpinButtonCtrl m_SpinDays;
  30. CEdit m_EditSize;
  31. CEdit m_EditLevel;
  32. CEdit m_EditDays;
  33. long m_HsmLevel;
  34. UINT m_AccessDays;
  35. DWORD m_FileSize;
  36. //}}AFX_DATA
  37. // Overrides
  38. // ClassWizard generate virtual function overrides
  39. //{{AFX_VIRTUAL(CWizManVolLstLevels)
  40. public:
  41. virtual BOOL OnSetActive();
  42. virtual BOOL OnKillActive();
  43. protected:
  44. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  45. //}}AFX_VIRTUAL
  46. protected:
  47. // Generated message map functions
  48. //{{AFX_MSG(CWizManVolLstLevels)
  49. virtual BOOL OnInitDialog();
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. private:
  53. void SetWizardFinish(void);
  54. public:
  55. ULONG GetFileSize();
  56. int GetHsmLevel();
  57. int GetAccessDays();
  58. };
  59. /////////////////////////////////////////////////////////////////////////////
  60. // CWizManVolLstIntro dialog
  61. class CWizManVolLstIntro : public CSakWizardPage
  62. {
  63. // Construction
  64. public:
  65. CWizManVolLstIntro( );
  66. ~CWizManVolLstIntro();
  67. // Dialog Data
  68. //{{AFX_DATA(CWizManVolLstIntro)
  69. enum { IDD = IDD_WIZ_MANVOLLST_INTRO };
  70. // NOTE - ClassWizard will add data members here.
  71. // DO NOT EDIT what you see in these blocks of generated code !
  72. //}}AFX_DATA
  73. // Overrides
  74. // ClassWizard generate virtual function overrides
  75. //{{AFX_VIRTUAL(CWizManVolLstIntro)
  76. public:
  77. virtual BOOL OnSetActive();
  78. protected:
  79. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  80. //}}AFX_VIRTUAL
  81. protected:
  82. // Generated message map functions
  83. //{{AFX_MSG(CWizManVolLstIntro)
  84. virtual BOOL OnInitDialog();
  85. //}}AFX_MSG
  86. DECLARE_MESSAGE_MAP()
  87. };
  88. /////////////////////////////////////////////////////////////////////////////
  89. // CWizManVolLstFinish dialog
  90. class CWizManVolLstFinish : public CSakWizardPage
  91. {
  92. // Construction
  93. public:
  94. CWizManVolLstFinish( );
  95. ~CWizManVolLstFinish();
  96. // Dialog Data
  97. //{{AFX_DATA(CWizManVolLstFinish)
  98. enum { IDD = IDD_WIZ_MANVOLLST_FINISH };
  99. // NOTE - ClassWizard will add data members here.
  100. // DO NOT EDIT what you see in these blocks of generated code !
  101. //}}AFX_DATA
  102. // Overrides
  103. // ClassWizard generate virtual function overrides
  104. //{{AFX_VIRTUAL(CWizManVolLstFinish)
  105. public:
  106. virtual BOOL OnSetActive();
  107. protected:
  108. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  109. //}}AFX_VIRTUAL
  110. protected:
  111. // Generated message map functions
  112. //{{AFX_MSG(CWizManVolLstFinish)
  113. afx_msg void OnSetfocusWizManvollstFinalEdit();
  114. //}}AFX_MSG
  115. DECLARE_MESSAGE_MAP()
  116. };
  117. /////////////////////////////////////////////////////////////////////////////
  118. // CWizManVolLstSelect dialog
  119. class CWizManVolLstSelect : public CSakWizardPage
  120. {
  121. // Construction
  122. public:
  123. CWizManVolLstSelect( );
  124. ~CWizManVolLstSelect();
  125. // Dialog Data
  126. //{{AFX_DATA(CWizManVolLstSelect)
  127. enum { IDD = IDD_WIZ_MANVOLLST_SELECT };
  128. CButton m_radioSelect;
  129. CSakVolList m_listBox;
  130. //}}AFX_DATA
  131. // Overrides
  132. // ClassWizard generate virtual function overrides
  133. //{{AFX_VIRTUAL(CWizManVolLstSelect)
  134. public:
  135. virtual BOOL OnSetActive();
  136. protected:
  137. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  138. //}}AFX_VIRTUAL
  139. protected:
  140. // Generated message map functions
  141. //{{AFX_MSG(CWizManVolLstSelect)
  142. virtual BOOL OnInitDialog();
  143. afx_msg void OnItemchangedManVollstFsareslbox(NMHDR* pNMHDR, LRESULT* pResult);
  144. afx_msg void OnRadioSelect();
  145. afx_msg void OnRadioManageAll();
  146. afx_msg void OnDestroy();
  147. //}}AFX_MSG
  148. DECLARE_MESSAGE_MAP()
  149. private:
  150. BOOL m_fChangingByCode;
  151. void SetBtnStates();
  152. BOOL m_listBoxSelected[HSMADMIN_MAX_VOLUMES];
  153. HRESULT FillListBoxSelect (IFsaServer *pFsaServer,CSakVolList *pListBox);
  154. };
  155. /////////////////////////////////////////////////////////////////////////////
  156. // CWizManVolLstSelectX dialog
  157. class CWizManVolLstSelectX : public CSakWizardPage
  158. {
  159. // Construction
  160. public:
  161. CWizManVolLstSelectX( );
  162. ~CWizManVolLstSelectX();
  163. // Dialog Data
  164. //{{AFX_DATA(CWizManVolLstSelectX)
  165. enum { IDD = IDD_WIZ_MANVOLLST_SELECTX };
  166. //}}AFX_DATA
  167. // Overrides
  168. // ClassWizard generate virtual function overrides
  169. //{{AFX_VIRTUAL(CWizManVolLstSelectX)
  170. public:
  171. virtual BOOL OnSetActive();
  172. protected:
  173. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  174. //}}AFX_VIRTUAL
  175. protected:
  176. // Generated message map functions
  177. //{{AFX_MSG(CWizManVolLstSelectX)
  178. //}}AFX_MSG
  179. DECLARE_MESSAGE_MAP()
  180. };
  181. /////////////////////////////////////////////////////////////////////////////
  182. // CWizManVolLst
  183. class CUiManVolLst;
  184. class CWizManVolLst : public CSakWizardSheet
  185. {
  186. // Construction
  187. public:
  188. CWizManVolLst();
  189. virtual ~CWizManVolLst();
  190. public:
  191. // Property Pages
  192. CWizManVolLstIntro m_PageIntro;
  193. CWizManVolLstSelect m_PageSelect;
  194. CWizManVolLstSelectX m_PageSelectX;
  195. CWizManVolLstLevels m_PageLevels;
  196. CWizManVolLstFinish m_PageFinish;
  197. // Attributes
  198. public:
  199. ULONG m_defMgtLevel; // default management level percentage - 100% == 1 billion
  200. // Operations
  201. public:
  202. virtual HRESULT OnFinish( void );
  203. STDMETHOD( AddWizardPages ) ( IN RS_PCREATE_HANDLE Handle, IN IUnknown* pPropSheetCallback, IN ISakSnapAsk* pSakSnapAsk );
  204. };
  205. #endif