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.

283 lines
6.3 KiB

  1. /*++
  2. 1998 Seagate Software, Inc. All rights reserved.
  3. Module Name:
  4. WzMedSet.h
  5. Abstract:
  6. Wizard for Media Set - Copy Set Wizard.
  7. Author:
  8. Rohde Wakefield [rohde] 23-09-1997
  9. Revision History:
  10. --*/
  11. #ifndef _WZMEDSET_H
  12. #define _WZMEDSET_H
  13. //
  14. // Use CMediaInfoObject
  15. //
  16. #include "ca.h"
  17. // Pre-declare
  18. class CMediaCopyWizard;
  19. class CMediaCopyWizardSelect;
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CCopySetList window
  22. class CCopySetList : public CListCtrl
  23. {
  24. // Construction
  25. public:
  26. CCopySetList( CMediaCopyWizardSelect * pPage );
  27. // Attributes
  28. public:
  29. // Operations
  30. public:
  31. void UpdateView( );
  32. INT GetSelectedSet( );
  33. void SelectSet( INT SetNum );
  34. private:
  35. INT m_CopySetCol;
  36. INT m_UpdateCol;
  37. INT m_CreateCol;
  38. // Overrides
  39. // ClassWizard generated virtual function overrides
  40. //{{AFX_VIRTUAL(CCopySetList)
  41. protected:
  42. virtual void PreSubclassWindow();
  43. //}}AFX_VIRTUAL
  44. // Implementation
  45. struct CopySetInfo {
  46. FILETIME m_Updated;
  47. INT m_NumOutOfDate;
  48. INT m_NumMissing;
  49. };
  50. CopySetInfo m_CopySetInfo[HSMADMIN_MAX_COPY_SETS];
  51. private:
  52. CMediaCopyWizardSelect * m_pPage;
  53. public:
  54. virtual ~CCopySetList();
  55. // Generated message map functions
  56. protected:
  57. //{{AFX_MSG(CCopySetList)
  58. //}}AFX_MSG
  59. DECLARE_MESSAGE_MAP()
  60. };
  61. /////////////////////////////////////////////////////////////////////////////
  62. /////////////////////////////////////////////////////////////////////////////
  63. // CMediaCopyWizardSelect dialog
  64. class CMediaCopyWizardSelect : public CSakWizardPage
  65. {
  66. // Construction
  67. public:
  68. CMediaCopyWizardSelect();
  69. ~CMediaCopyWizardSelect();
  70. // Dialog Data
  71. //{{AFX_DATA(CMediaCopyWizardSelect)
  72. enum { IDD = IDD_WIZ_CAR_COPY_SELECT };
  73. CCopySetList m_List;
  74. //}}AFX_DATA
  75. // Overrides
  76. // ClassWizard generate virtual function overrides
  77. //{{AFX_VIRTUAL(CMediaCopyWizardSelect)
  78. public:
  79. virtual BOOL OnSetActive();
  80. protected:
  81. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  82. //}}AFX_VIRTUAL
  83. // Implementation
  84. protected:
  85. // Generated message map functions
  86. //{{AFX_MSG(CMediaCopyWizardSelect)
  87. virtual BOOL OnInitDialog();
  88. afx_msg void OnSelchangeCopyList();
  89. //}}AFX_MSG
  90. DECLARE_MESSAGE_MAP()
  91. private:
  92. void SetButtons();
  93. public:
  94. };
  95. /////////////////////////////////////////////////////////////////////////////
  96. // CMediaCopyWizardNumCopies dialog
  97. class CMediaCopyWizardNumCopies : public CSakWizardPage
  98. {
  99. // Construction
  100. public:
  101. CMediaCopyWizardNumCopies();
  102. ~CMediaCopyWizardNumCopies();
  103. // Dialog Data
  104. //{{AFX_DATA(CMediaCopyWizardNumCopies)
  105. enum { IDD = IDD_WIZ_CAR_COPY_NUM_COPIES };
  106. CSpinButtonCtrl m_SpinMediaCopies;
  107. CEdit m_EditMediaCopies;
  108. //}}AFX_DATA
  109. // Overrides
  110. // ClassWizard generate virtual function overrides
  111. //{{AFX_VIRTUAL(CMediaCopyWizardNumCopies)
  112. public:
  113. virtual BOOL OnSetActive();
  114. virtual BOOL OnKillActive();
  115. protected:
  116. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  117. //}}AFX_VIRTUAL
  118. // Implementation
  119. public:
  120. HRESULT GetNumMediaCopies( USHORT* pNumMediaCopies, USHORT* pEditMediaCopies = 0 );
  121. private:
  122. void SetButtons();
  123. protected:
  124. // Generated message map functions
  125. //{{AFX_MSG(CMediaCopyWizardNumCopies)
  126. virtual BOOL OnInitDialog();
  127. afx_msg void OnChangeEditMediaCopies();
  128. //}}AFX_MSG
  129. DECLARE_MESSAGE_MAP()
  130. };
  131. /////////////////////////////////////////////////////////////////////////////
  132. // CMediaCopyWizardIntro dialog
  133. class CMediaCopyWizardIntro : public CSakWizardPage
  134. {
  135. // Construction
  136. public:
  137. CMediaCopyWizardIntro();
  138. ~CMediaCopyWizardIntro();
  139. // Dialog Data
  140. //{{AFX_DATA(CMediaCopyWizardIntro)
  141. enum { IDD = IDD_WIZ_CAR_COPY_INTRO };
  142. // NOTE - ClassWizard will add data members here.
  143. // DO NOT EDIT what you see in these blocks of generated code !
  144. //}}AFX_DATA
  145. // Overrides
  146. // ClassWizard generate virtual function overrides
  147. //{{AFX_VIRTUAL(CMediaCopyWizardIntro)
  148. public:
  149. virtual BOOL OnSetActive();
  150. protected:
  151. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  152. //}}AFX_VIRTUAL
  153. // Implementation
  154. protected:
  155. // Generated message map functions
  156. //{{AFX_MSG(CMediaCopyWizardIntro)
  157. virtual BOOL OnInitDialog();
  158. //}}AFX_MSG
  159. DECLARE_MESSAGE_MAP()
  160. };
  161. /////////////////////////////////////////////////////////////////////////////
  162. // CMediaCopyWizardFinish dialog
  163. class CMediaCopyWizardFinish : public CSakWizardPage
  164. {
  165. // Construction
  166. public:
  167. CMediaCopyWizardFinish();
  168. ~CMediaCopyWizardFinish();
  169. // Dialog Data
  170. //{{AFX_DATA(CMediaCopyWizardFinish)
  171. enum { IDD = IDD_WIZ_CAR_COPY_FINISH };
  172. // NOTE - ClassWizard will add data members here.
  173. // DO NOT EDIT what you see in these blocks of generated code !
  174. //}}AFX_DATA
  175. // Overrides
  176. // ClassWizard generate virtual function overrides
  177. //{{AFX_VIRTUAL(CMediaCopyWizardFinish)
  178. public:
  179. virtual BOOL OnSetActive();
  180. protected:
  181. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  182. //}}AFX_VIRTUAL
  183. // Implementation
  184. protected:
  185. // Generated message map functions
  186. //{{AFX_MSG(CMediaCopyWizardFinish)
  187. virtual BOOL OnInitDialog();
  188. //}}AFX_MSG
  189. DECLARE_MESSAGE_MAP()
  190. };
  191. class CMediaCopyWizard : public CSakWizardSheet
  192. {
  193. // Construction
  194. public:
  195. CMediaCopyWizard();
  196. virtual ~CMediaCopyWizard();
  197. public:
  198. // Property Pages
  199. CMediaCopyWizardIntro m_pageIntro;
  200. CMediaCopyWizardNumCopies m_pageNumCopies;
  201. CMediaCopyWizardSelect m_pageSelect;
  202. CMediaCopyWizardFinish m_pageFinish;
  203. // Attributes
  204. public:
  205. USHORT m_numMediaCopiesOrig; // Number of media copies from RMS
  206. // Operations
  207. public:
  208. // Implementation
  209. public:
  210. virtual HRESULT OnFinish( void );
  211. STDMETHOD( AddWizardPages ) ( IN RS_PCREATE_HANDLE Handle, IN IUnknown* pPropSheetCallback, IN ISakSnapAsk* pSakSnapAsk );
  212. };
  213. #endif