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.

92 lines
2.1 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // eapnegotiate.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // Declare the class EapNegotiate.
  12. //
  13. ///////////////////////////////////////////////////////////////////////////////
  14. #ifndef EAPNEGOCIATE_H
  15. #define EAPNEGOCIATE_H
  16. #if _MSC_VER >= 1000
  17. #pragma once
  18. #endif
  19. #include "eapprofile.h"
  20. #include "helptable.h"
  21. class EapConfig;
  22. ///////////////////////////////////////////////////////////////////////////////
  23. //
  24. // CLASS
  25. //
  26. // EapNegotiate
  27. //
  28. // DESCRIPTION
  29. //
  30. // Implements a dialog box to order, add, configure and remove the EAP
  31. // types that will be negotiated for the profile.
  32. //
  33. ///////////////////////////////////////////////////////////////////////////////
  34. class EapNegotiate : public CHelpDialog
  35. {
  36. public:
  37. EapNegotiate(
  38. CWnd* pParent,
  39. EapConfig& eapConfig,
  40. CRASProfileMerge& profile,
  41. bool fromProfile
  42. );
  43. ~EapNegotiate() throw ();
  44. EapProfile m_eapProfile;
  45. private:
  46. void UpdateProfileTypesSelected();
  47. virtual BOOL OnInitDialog();
  48. DECLARE_MESSAGE_MAP()
  49. virtual void DoDataExchange(CDataExchange* pDX);
  50. afx_msg void OnItemChangedListEap();
  51. afx_msg void OnButtonAdd();
  52. afx_msg void OnButtonEdit();
  53. afx_msg void OnButtonRemove();
  54. afx_msg void OnButtonMoveUp();
  55. afx_msg void OnButtonMoveDown();
  56. void UpdateButtons();
  57. void UpdateAddButton();
  58. void UpdateArrowsButtons(int selectedItem);
  59. void UpdateEditButton(int selectedItem);
  60. void UpdateTypesNotSelected();
  61. EapConfig& m_eapConfig;
  62. CRASProfileMerge& m_profile;
  63. CStrArray m_typesNotSelected;
  64. CStrBox<CListBox> *m_listBox;
  65. CButton m_buttonUp;
  66. CButton m_buttonDown;
  67. CButton m_buttonAdd;
  68. CButton m_buttonEdit;
  69. CButton m_buttonRemove;
  70. // Not implemented.
  71. EapNegotiate(const EapNegotiate&);
  72. EapNegotiate& operator=(const EapNegotiate&);
  73. };
  74. #endif // EAPNEGOCIATE_H