Source code of Windows XP (NT5)
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.

226 lines
5.0 KiB

  1. //
  2. // CertContentsPages.h
  3. //
  4. #ifndef _CERT_CONTENTS_PAGES_H
  5. #define _CERT_CONTENTS_PAGES_H
  6. #include "Certificat.h"
  7. class CCertContentsPage : public CIISWizardPage
  8. {
  9. DECLARE_DYNCREATE(CCertContentsPage)
  10. // Construction
  11. public:
  12. CCertContentsPage(UINT id = 0, CCertificate * pCert = NULL);
  13. ~CCertContentsPage();
  14. CCertificate * GetCertificate() {return m_pCert;}
  15. // Dialog Data
  16. //{{AFX_DATA(CCertContentsPage)
  17. //}}AFX_DATA
  18. CCertificate * m_pCert;
  19. // Overrides
  20. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd)
  21. {
  22. return FALSE;
  23. }
  24. // ClassWizard generate virtual function overrides
  25. //{{AFX_VIRTUAL(CCertContentsPage)
  26. public:
  27. virtual LRESULT OnWizardBack()
  28. {
  29. ASSERT(FALSE);
  30. return 1;
  31. }
  32. virtual LRESULT OnWizardNext()
  33. {
  34. ASSERT(FALSE);
  35. return 1;
  36. }
  37. virtual BOOL OnSetActive();
  38. protected:
  39. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  40. //}}AFX_VIRTUAL
  41. // Implementation
  42. protected:
  43. // Generated message map functions
  44. //{{AFX_MSG(CCertContentsPage)
  45. virtual BOOL OnInitDialog();
  46. //}}AFX_MSG
  47. DECLARE_MESSAGE_MAP()
  48. };
  49. class CInstallCertPage : public CCertContentsPage
  50. {
  51. enum
  52. {
  53. IDD = IDD_PAGE_WIZ_INSTALL_CERT,
  54. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL,
  55. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_CERT
  56. };
  57. DECLARE_DYNCREATE(CInstallCertPage)
  58. public:
  59. CInstallCertPage(CCertificate * pCert = NULL)
  60. : CCertContentsPage(CInstallCertPage::IDD, pCert)
  61. {
  62. }
  63. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  64. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  65. virtual LRESULT OnWizardNext();
  66. };
  67. class CReplaceCertPage : public CCertContentsPage
  68. {
  69. enum
  70. {
  71. IDD = IDD_PAGE_WIZ_REPLACE_CERT,
  72. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_REPLACE,
  73. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_CERT
  74. };
  75. DECLARE_DYNCREATE(CReplaceCertPage)
  76. public:
  77. CReplaceCertPage(CCertificate * pCert = NULL)
  78. : CCertContentsPage(CReplaceCertPage::IDD, pCert)
  79. {
  80. }
  81. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  82. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  83. virtual LRESULT OnWizardNext();
  84. };
  85. class CInstallKeyPage : public CCertContentsPage
  86. {
  87. enum
  88. {
  89. IDD = IDD_PAGE_WIZ_INSTALL_KEYCERT,
  90. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL,
  91. IDD_PAGE_PREV = IDD_PAGE_WIZ_GET_PASSWORD
  92. };
  93. DECLARE_DYNCREATE(CInstallKeyPage)
  94. public:
  95. CInstallKeyPage(CCertificate * pCert = NULL)
  96. : CCertContentsPage(CInstallKeyPage::IDD, pCert)
  97. {
  98. }
  99. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  100. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  101. virtual LRESULT OnWizardNext();
  102. virtual BOOL OnSetActive();
  103. };
  104. class CInstallRespPage : public CCertContentsPage
  105. {
  106. enum
  107. {
  108. IDD = IDD_PAGE_WIZ_INSTALL_RESP,
  109. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL,
  110. IDD_PAGE_PREV = IDD_PAGE_WIZ_GETRESP_FILE
  111. };
  112. DECLARE_DYNCREATE(CInstallRespPage)
  113. public:
  114. CInstallRespPage(CCertificate * pCert = NULL)
  115. : CCertContentsPage(CInstallRespPage::IDD, pCert)
  116. {
  117. }
  118. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  119. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  120. virtual LRESULT OnWizardNext();
  121. virtual BOOL OnSetActive();
  122. };
  123. class CRequestCancelPage : public CCertContentsPage
  124. {
  125. enum
  126. {
  127. IDD = IDD_PAGE_WIZ_CANCEL_REQUEST,
  128. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_CANCEL,
  129. IDD_PAGE_PREV = IDD_PAGE_WIZ_PENDING_WHAT_TODO
  130. };
  131. DECLARE_DYNCREATE(CRequestCancelPage)
  132. public:
  133. CRequestCancelPage(CCertificate * pCert = NULL)
  134. : CCertContentsPage(CRequestCancelPage::IDD, pCert)
  135. {
  136. }
  137. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  138. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  139. virtual LRESULT OnWizardNext();
  140. };
  141. class CRemoveCertPage : public CCertContentsPage
  142. {
  143. enum
  144. {
  145. IDD = IDD_PAGE_WIZ_REMOVE_CERT,
  146. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_REMOVE,
  147. IDD_PAGE_PREV = IDD_PAGE_WIZ_MANAGE_CERT
  148. };
  149. DECLARE_DYNCREATE(CRemoveCertPage)
  150. public:
  151. CRemoveCertPage(CCertificate * pCert = NULL)
  152. : CCertContentsPage(CRemoveCertPage::IDD, pCert)
  153. {
  154. }
  155. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  156. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  157. virtual LRESULT OnWizardNext();
  158. };
  159. class CRequestToFilePage : public CCertContentsPage
  160. {
  161. enum
  162. {
  163. IDD = IDD_PAGE_WIZ_REQUEST_DUMP,
  164. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_TO_FILE,
  165. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_FILENAME
  166. };
  167. DECLARE_DYNCREATE(CRequestToFilePage)
  168. public:
  169. CRequestToFilePage(CCertificate * pCert = NULL)
  170. : CCertContentsPage(CRequestToFilePage::IDD, pCert)
  171. {
  172. }
  173. virtual BOOL OnSetActive();
  174. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  175. virtual LRESULT OnWizardNext();
  176. };
  177. class COnlineRequestSubmit : public CCertContentsPage
  178. {
  179. enum
  180. {
  181. IDD = IDD_PAGE_WIZ_ONLINE_DUMP,
  182. IDD_PAGE_NEXT = IDD_PAGE_WIZ_FINAL_INSTALL,
  183. IDD_PAGE_PREV = IDD_PAGE_WIZ_CHOOSE_ONLINE
  184. };
  185. DECLARE_DYNCREATE(COnlineRequestSubmit)
  186. public:
  187. COnlineRequestSubmit(CCertificate * pCert = NULL)
  188. : CCertContentsPage(COnlineRequestSubmit::IDD, pCert)
  189. {
  190. }
  191. virtual BOOL GetCertDescription(CERT_DESCRIPTION& cd);
  192. virtual LRESULT OnWizardBack() {return IDD_PAGE_PREV;}
  193. virtual LRESULT OnWizardNext();
  194. virtual BOOL OnSetActive();
  195. };
  196. #endif //_CERT_CONTENTS_PAGES_H