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.

99 lines
2.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1998
  6. //
  7. // File: traffic.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #if !defined(AFX_TRAFFIC_H__C0DCD9E9_64FE_11D1_855B_00C04FC31FD3__INCLUDED_)
  11. #define AFX_TRAFFIC_H__C0DCD9E9_64FE_11D1_855B_00C04FC31FD3__INCLUDED_
  12. #if _MSC_VER >= 1000
  13. #pragma once
  14. #endif // _MSC_VER >= 1000
  15. // Traffic.h : header file
  16. //
  17. #include "resource.h"
  18. #include "acs.h"
  19. class CACSPolicyElement;
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CPgTraffic dialog
  22. class CPgTraffic : public CACSPage
  23. {
  24. DECLARE_DYNCREATE(CPgTraffic)
  25. // Construction
  26. private:
  27. CPgTraffic();
  28. public:
  29. CPgTraffic(CACSPolicyElement* pData);
  30. ~CPgTraffic();
  31. // Dialog Data
  32. //{{AFX_DATA(CPgTraffic)
  33. enum { IDD = IDD_TRAFFIC };
  34. DWORD m_dwPFDataRate;
  35. DWORD m_dwPFDuration;
  36. DWORD m_dwPFPeakRate;
  37. DWORD m_dwTTDataRate;
  38. DWORD m_dwTTFlows;
  39. BOOL m_bPFDataRate;
  40. BOOL m_bPFPeakRate;
  41. BOOL m_bTTDataRate;
  42. BOOL m_bTTFlows;
  43. BOOL m_bPFDuration;
  44. BOOL m_bTTPeakRate;
  45. DWORD m_dwTTPeakRate;
  46. //}}AFX_DATA
  47. // Overrides
  48. // ClassWizard generate virtual function overrides
  49. //{{AFX_VIRTUAL(CPgTraffic)
  50. public:
  51. virtual BOOL OnApply();
  52. protected:
  53. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  54. //}}AFX_VIRTUAL
  55. // Implementation
  56. protected:
  57. void DataInit();
  58. // Generated message map functions
  59. //{{AFX_MSG(CPgTraffic)
  60. virtual BOOL OnInitDialog();
  61. afx_msg void OnSelchangeCombodirectioin();
  62. afx_msg void OnSelchangeComboservicelevel();
  63. afx_msg void OnChangeEditPfDatarate();
  64. afx_msg void OnChangeEditPfDuration();
  65. afx_msg void OnChangeEditPfPeakrate();
  66. afx_msg void OnChangeEditTtDatarate();
  67. afx_msg void OnChangeEditTtFlows();
  68. afx_msg void OnCheckPfDatarate();
  69. afx_msg void OnCheckPfPeakrate();
  70. afx_msg void OnCheckTtDatarate();
  71. afx_msg void OnCheckTtFlows();
  72. afx_msg void OnCheckPfDuration();
  73. afx_msg void OnCheckTtPeakrate();
  74. afx_msg void OnChangeEditTtPeakrate();
  75. //}}AFX_MSG
  76. DECLARE_MESSAGE_MAP()
  77. CComPtr<CACSPolicyElement> m_spData;
  78. CStrBox<CComboBox>* m_pDirection;
  79. CStrBox<CComboBox>* m_pServiceType;
  80. CStrArray m_aDirections;
  81. CStrArray m_aServiceTypes;
  82. };
  83. //{{AFX_INSERT_LOCATION}}
  84. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  85. #endif // !defined(AFX_TRAFFIC_H__C0DCD9E9_64FE_11D1_855B_00C04FC31FD3__INCLUDED_)