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.

111 lines
2.6 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1999 **/
  4. /**********************************************************************/
  5. /*
  6. Servpp.h
  7. Server properties header file
  8. FILE HISTORY:
  9. */
  10. #if !defined(AFX_SERVPP_H__037BF46A_6E87_11D1_93B6_00C04FC3358C__INCLUDED_)
  11. #define AFX_SERVPP_H__037BF46A_6E87_11D1_93B6_00C04FC3358C__INCLUDED_
  12. #ifndef _SPDDB_H
  13. #include "spddb.h"
  14. #endif
  15. #if _MSC_VER >= 1000
  16. #pragma once
  17. #endif // _MSC_VER >= 1000
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CQmPolGenProp dialog
  20. class CQmPolGenProp : public CPropertyPageBase
  21. {
  22. DECLARE_DYNCREATE(CQmPolGenProp)
  23. // Construction
  24. public:
  25. CQmPolGenProp();
  26. ~CQmPolGenProp();
  27. // Dialog Data
  28. //{{AFX_DATA(CQmPolGenProp)
  29. enum { IDD = IDP_QM_POLICY_GENERAL };
  30. CListCtrl m_listOffers;
  31. //}}AFX_DATA
  32. virtual BOOL OnPropertyChange(BOOL bScope, LONG_PTR *ChangeMask);
  33. // Context Help Support
  34. virtual DWORD * GetHelpMap() { return (DWORD *) &g_aHelpIDs_IDP_QM_POLICY_GENERAL[0]; }
  35. // Overrides
  36. // ClassWizard generate virtual function overrides
  37. //{{AFX_VIRTUAL(CQmPolGenProp)
  38. public:
  39. virtual BOOL OnApply();
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. protected:
  45. // Generated message map functions
  46. //{{AFX_MSG(CQmPolGenProp)
  47. virtual BOOL OnInitDialog();
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. void PopulateOfferInfo();
  51. };
  52. class CQmPolicyProperties : public CPropertyPageHolderBase
  53. {
  54. friend class CQmPolGenProp;
  55. public:
  56. CQmPolicyProperties(ITFSNode * pNode,
  57. IComponentData * pComponentData,
  58. ITFSComponentData * pTFSCompData,
  59. CQmPolicyInfo * pFltrInfo,
  60. ISpdInfo * pSpdInfo,
  61. LPCTSTR pszSheetName);
  62. virtual ~CQmPolicyProperties();
  63. ITFSComponentData * GetTFSCompData()
  64. {
  65. if (m_spTFSCompData)
  66. m_spTFSCompData->AddRef();
  67. return m_spTFSCompData;
  68. }
  69. HRESULT GetPolicyInfo(CQmPolicyInfo **ppPolInfo)
  70. {
  71. Assert(ppPolInfo);
  72. *ppPolInfo = &m_PolInfo;
  73. return hrOK;
  74. }
  75. public:
  76. CQmPolGenProp m_pageGeneral;
  77. protected:
  78. SPITFSComponentData m_spTFSCompData;
  79. CQmPolicyInfo m_PolInfo;
  80. SPISpdInfo m_spSpdInfo;
  81. BOOL m_fSpdInfoLoaded;
  82. };
  83. #endif // !defined(AFX_SERVPP_H__037BF46A_6E87_11D1_93B6_00C04FC3357A__INCLUDED_)