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.

207 lines
5.9 KiB

  1. //============================================================================
  2. // Copyright (C) Microsoft Corporation, 1996 - 1999
  3. //
  4. // File: add.h
  5. //
  6. // History:
  7. // Abolade-Gbadegesin Mar-15-1996 Created
  8. //
  9. // Contains declarations for the dialogs displayed to select items
  10. // to be added to the router-configuration.
  11. //============================================================================
  12. #ifndef _ADD_H
  13. #define _ADD_H
  14. #ifndef _DIALOG_H_
  15. #include "dialog.h"
  16. #endif
  17. #ifndef _RTRLIST_H
  18. #include "rtrlist.h" // for the CList classes
  19. #endif
  20. //----------------------------------------------------------------------------
  21. // Class: CRmAddInterface
  22. //
  23. // This dialog displays interfaces not yet added to the specified transport,
  24. // allowing the user to select one to add.
  25. //----------------------------------------------------------------------------
  26. class CRmAddInterface : public CBaseDialog {
  27. public:
  28. CRmAddInterface(
  29. IRouterInfo* pRouterInfo,
  30. IRtrMgrInfo* pRmInfo,
  31. IRtrMgrInterfaceInfo** ppRmInterfaceInfo,
  32. CWnd * pParent
  33. ) : CBaseDialog(CRmAddInterface::IDD, pParent)
  34. {
  35. m_spRouterInfo.Set(pRouterInfo);
  36. m_spRtrMgrInfo.Set(pRmInfo);
  37. m_ppRtrMgrInterfaceInfo = ppRmInterfaceInfo;
  38. // SetHelpMap(m_dwHelpMap);
  39. }
  40. virtual ~CRmAddInterface( );
  41. //{{AFX_DATA(CRmAddInterface)
  42. enum { IDD = IDD_ADD };
  43. CListCtrl m_listCtrl;
  44. //}}AFX_DATA
  45. //{{AFX_VIRTUAL(CRmAddInterface)
  46. protected:
  47. virtual VOID DoDataExchange(CDataExchange* pDX);
  48. //}}AFX_VIRTUAL
  49. protected:
  50. static DWORD m_dwHelpMap[];
  51. CImageList m_imageList;
  52. SPIRouterInfo m_spRouterInfo;
  53. SPIRtrMgrInfo m_spRtrMgrInfo;
  54. // This is used to store the list of interfaces
  55. // that we have pointers to in our list box. I could
  56. // keep AddRef'd pointers in the item data, but this
  57. // seems safer.
  58. PInterfaceInfoList m_pIfList;
  59. // The return value is stored in here
  60. IRtrMgrInterfaceInfo ** m_ppRtrMgrInterfaceInfo;
  61. //{{AFX_MSG(CRmAddInterface)
  62. virtual BOOL OnInitDialog();
  63. afx_msg VOID OnDblclkListctrl(NMHDR* , LRESULT* );
  64. virtual VOID OnOK();
  65. //}}AFX_MSG
  66. DECLARE_MESSAGE_MAP()
  67. };
  68. //----------------------------------------------------------------------------
  69. // Class: CAddRoutingProtocol
  70. //
  71. // This dialog displays routing-protocols for the specified transport,
  72. // allowing the user to select a protocol to be added.
  73. //----------------------------------------------------------------------------
  74. class CAddRoutingProtocol : public CBaseDialog {
  75. public:
  76. CAddRoutingProtocol(
  77. IRouterInfo * pRouter,
  78. IRtrMgrInfo* pRmInfo,
  79. IRtrMgrProtocolInfo** ppRmProtInfo,
  80. CWnd* pParent = NULL
  81. ) : CBaseDialog(CAddRoutingProtocol::IDD, pParent)
  82. {
  83. m_spRouter.Set(pRouter);
  84. m_spRm.Set(pRmInfo);
  85. m_ppRmProt = ppRmProtInfo;
  86. // SetHelpMap(m_dwHelpMap);
  87. }
  88. virtual
  89. ~CAddRoutingProtocol( );
  90. //{{AFX_DATA(CAddRoutingProtocol)
  91. enum { IDD = IDD_ADD };
  92. CListCtrl m_listCtrl;
  93. //}}AFX_DATA
  94. //{{AFX_VIRTUAL(CAddRoutingProtocol)
  95. protected:
  96. virtual VOID DoDataExchange(CDataExchange* pDX);
  97. //}}AFX_VIRTUAL
  98. protected:
  99. static DWORD m_dwHelpMap[];
  100. CImageList m_imageList;
  101. SPIRouterInfo m_spRouter;
  102. SPIRtrMgrInfo m_spRm;
  103. IRtrMgrProtocolInfo ** m_ppRmProt;
  104. // CPtrList m_pcbList;
  105. //{{AFX_MSG(CAddRoutingProtocol)
  106. afx_msg VOID OnDblclkListctrl(NMHDR* , LRESULT* );
  107. virtual VOID OnOK();
  108. virtual BOOL OnInitDialog();
  109. //}}AFX_MSG
  110. DECLARE_MESSAGE_MAP()
  111. };
  112. //----------------------------------------------------------------------------
  113. // Class: CRpAddInterface
  114. //
  115. // This dialog displays interfaces not yet added to the specified protocol,
  116. // allowing the user to select one to add.
  117. //----------------------------------------------------------------------------
  118. class CRpAddInterface : public CBaseDialog {
  119. public:
  120. CRpAddInterface(
  121. IRouterInfo* pRouterInfo,
  122. IRtrMgrProtocolInfo* pRmProtInfo,
  123. IRtrMgrProtocolInterfaceInfo** ppRmProtInterfaceInfo,
  124. CWnd* pParent = NULL);
  125. virtual
  126. ~CRpAddInterface( );
  127. //{{AFX_DATA(CRpAddInterface)
  128. enum { IDD = IDD_ADD };
  129. CListCtrl m_listCtrl;
  130. //}}AFX_DATA
  131. //{{AFX_VIRTUAL(CRpAddInterface)
  132. protected:
  133. virtual VOID DoDataExchange(CDataExchange* pDX);
  134. //}}AFX_VIRTUAL
  135. protected:
  136. static DWORD m_dwHelpMap[];
  137. CImageList m_imageList;
  138. SPIRouterInfo m_spRouterInfo;
  139. SPIRtrMgrProtocolInfo m_spRmProt;
  140. IRtrMgrProtocolInterfaceInfo ** m_ppRmProtIf;
  141. // This is used to store the list of interfaces
  142. // that we have pointers to in our list box. I could
  143. // keep AddRef'd pointers in the item data, but this
  144. // seems safer.
  145. PInterfaceInfoList m_pIfList;
  146. //{{AFX_MSG(CRpAddInterface)
  147. virtual BOOL OnInitDialog();
  148. afx_msg VOID OnDblclkListctrl(NMHDR* , LRESULT* );
  149. virtual VOID OnOK();
  150. //}}AFX_MSG
  151. DECLARE_MESSAGE_MAP()
  152. };
  153. #endif // _ADD_H