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.

127 lines
3.0 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: pglog.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #if !defined(AFX_LOGGING_H__C0DCD9EB_64FE_11D1_855B_00C04FC31FD3__INCLUDED_)
  11. #define AFX_LOGGING_H__C0DCD9EB_64FE_11D1_855B_00C04FC31FD3__INCLUDED_
  12. #if _MSC_VER >= 1000
  13. #pragma once
  14. #endif // _MSC_VER >= 1000
  15. // logging.h : header file
  16. //
  17. /////////////////////////////////////////////////////////////////////////////
  18. // Accounting dialog
  19. class CPgAccounting : public CACSPage
  20. {
  21. DECLARE_DYNCREATE(CPgAccounting)
  22. // Construction
  23. CPgAccounting();
  24. public:
  25. CPgAccounting(CACSSubnetConfig* pConfig);
  26. ~CPgAccounting();
  27. // Dialog Data
  28. //{{AFX_DATA(CPgAccounting)
  29. enum { IDD = IDD_ACCOUNTING };
  30. BOOL m_bEnableAccounting;
  31. CString m_strLogDir;
  32. DWORD m_dwNumFiles;
  33. DWORD m_dwLogSize;
  34. //}}AFX_DATA
  35. // Overrides
  36. // ClassWizard generate virtual function overrides
  37. //{{AFX_VIRTUAL(CPgAccounting)
  38. public:
  39. virtual BOOL OnApply();
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. void EnableEverything();
  45. protected:
  46. // Generated message map functions
  47. //{{AFX_MSG(CPgAccounting)
  48. afx_msg void OnCheckEnableAccounting();
  49. afx_msg void OnChangeEditLogDirectory();
  50. afx_msg void OnChangeEditLogLogfiles();
  51. afx_msg void OnChangeEditLogMaxfilesize();
  52. virtual BOOL OnInitDialog();
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. void DataInit();
  56. CComPtr<CACSSubnetConfig> m_spConfig;
  57. };
  58. /////////////////////////////////////////////////////////////////////////////
  59. // CPgLogging dialog
  60. class CPgLogging : public CACSPage
  61. {
  62. DECLARE_DYNCREATE(CPgLogging)
  63. // Construction
  64. CPgLogging();
  65. public:
  66. CPgLogging(CACSSubnetConfig* pConfig);
  67. ~CPgLogging();
  68. // Dialog Data
  69. //{{AFX_DATA(CPgLogging)
  70. enum { IDD = IDD_LOGGING };
  71. BOOL m_bEnableLogging;
  72. int m_dwLevel;
  73. CString m_strLogDir;
  74. DWORD m_dwNumFiles;
  75. DWORD m_dwLogSize;
  76. //}}AFX_DATA
  77. // Overrides
  78. // ClassWizard generate virtual function overrides
  79. //{{AFX_VIRTUAL(CPgLogging)
  80. public:
  81. virtual BOOL OnApply();
  82. protected:
  83. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  84. //}}AFX_VIRTUAL
  85. // Implementation
  86. void EnableEverything();
  87. protected:
  88. // Generated message map functions
  89. //{{AFX_MSG(CPgLogging)
  90. afx_msg void OnCheckEnableloggin();
  91. afx_msg void OnSelchangeCombolevel();
  92. afx_msg void OnChangeEditLogDirectory();
  93. afx_msg void OnChangeEditLogLogfiles();
  94. afx_msg void OnChangeEditLogMaxfilesize();
  95. virtual BOOL OnInitDialog();
  96. //}}AFX_MSG
  97. DECLARE_MESSAGE_MAP()
  98. void DataInit();
  99. CComPtr<CACSSubnetConfig> m_spConfig;
  100. CStrArray m_aLevelStrings;
  101. CStrBox<CComboBox>* m_pLevel;
  102. };
  103. //{{AFX_INSERT_LOCATION}}
  104. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  105. #endif // !defined(AFX_LOGGING_H__C0DCD9EB_64FE_11D1_855B_00C04FC31FD3__INCLUDED_)