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.

124 lines
3.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: delegwiz.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef _DELEGWIZ_H
  11. #define _DELEGWIZ_H
  12. ///////////////////////////////////////////////////////////////////////////////
  13. // CDNSDelegationWiz_StartPropertyPage
  14. class CDNSDelegationWiz_StartPropertyPage : public CPropertyPageBase
  15. {
  16. public:
  17. CDNSDelegationWiz_StartPropertyPage();
  18. virtual BOOL OnInitDialog();
  19. virtual BOOL OnSetActive();
  20. virtual void OnWizardHelp();
  21. friend class CDNSDelegationWizardHolder;
  22. };
  23. ///////////////////////////////////////////////////////////////////////////////
  24. // CDNSDelegationWiz_DomainNamePropertyPage
  25. class CDNSDelegationWiz_DomainNamePropertyPage : public CPropertyPageBase
  26. {
  27. public:
  28. virtual BOOL OnInitDialog();
  29. virtual BOOL OnSetActive();
  30. CDNSDelegationWiz_DomainNamePropertyPage();
  31. virtual BOOL OnKillActive();
  32. virtual void OnWizardHelp();
  33. protected:
  34. afx_msg void OnChangeDomainNameEdit();
  35. private:
  36. CString m_szDomainName;
  37. int m_nUTF8ParentLen;
  38. CEdit* GetDomainEdit() { return (CEdit*)GetDlgItem(IDC_NEW_DOMAIN_NAME_EDIT);}
  39. DECLARE_MESSAGE_MAP()
  40. friend class CDNSDelegationWizardHolder;
  41. };
  42. ///////////////////////////////////////////////////////////////////////////////
  43. // CDNSDelegationWiz_NameServersPropertyPage
  44. class CDNSDelegationWiz_NameServersPropertyPage : public CDNSNameServersPropertyPage
  45. {
  46. public:
  47. CDNSDelegationWiz_NameServersPropertyPage();
  48. virtual BOOL OnSetActive();
  49. virtual void OnWizardHelp();
  50. protected:
  51. virtual void ReadRecordNodesList() { } // we do not load anything
  52. virtual BOOL WriteNSRecordNodesList() { ASSERT(FALSE); return FALSE;} // never called
  53. virtual void OnCountChange(int nCount);
  54. private:
  55. BOOL CreateNewNSRecords(CDNSDomainNode* pSubdomainNode);
  56. friend class CDNSDelegationWizardHolder;
  57. };
  58. ///////////////////////////////////////////////////////////////////////////////
  59. // CDNSDelegationWiz_FinishPropertyPage
  60. class CDNSDelegationWiz_FinishPropertyPage : public CPropertyPageBase
  61. {
  62. public:
  63. virtual BOOL OnSetActive();
  64. virtual BOOL OnWizardFinish();
  65. virtual void OnWizardHelp();
  66. CDNSDelegationWiz_FinishPropertyPage();
  67. private:
  68. void DisplaySummaryInfo();
  69. friend class CDNSDelegationWizardHolder;
  70. };
  71. ///////////////////////////////////////////////////////////////////////////////
  72. // CDNSDelegationWizardHolder
  73. class CDNSDelegationWizardHolder : public CPropertyPageHolderBase
  74. {
  75. public:
  76. CDNSDelegationWizardHolder(CDNSMTContainerNode* pContainerNode, CDNSDomainNode* pThisDomainNode,
  77. CComponentDataObject* pComponentData);
  78. virtual ~CDNSDelegationWizardHolder();
  79. private:
  80. CDNSDomainNode* GetDomainNode();
  81. BOOL OnFinish();
  82. CDNSDomainNode* m_pSubdomainNode;
  83. CDNSDelegationWiz_StartPropertyPage m_startPage;
  84. CDNSDelegationWiz_DomainNamePropertyPage m_domainNamePage;
  85. CDNSDelegationWiz_NameServersPropertyPage m_nameServersPage;
  86. CDNSDelegationWiz_FinishPropertyPage m_finishPage;
  87. friend class CDNSDelegationWiz_DomainNamePropertyPage;
  88. friend class CDNSDelegationWiz_NameServersPropertyPage;
  89. friend class CDNSDelegationWiz_FinishPropertyPage;
  90. };
  91. #endif // _DELEGWIZ_H