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.

116 lines
3.3 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. FltrNode.h
  7. FILE HISTORY:
  8. */
  9. #ifndef _WIRELESS_NODE_H
  10. #define _WIRELESS_NODE_H
  11. #ifndef _IPSMHAND_H
  12. #include "ipsmhand.h"
  13. #endif
  14. #ifndef _APINFO_H
  15. #include "apinfo.h"
  16. #endif
  17. /*---------------------------------------------------------------------------
  18. Class: CFilterHandler
  19. ---------------------------------------------------------------------------*/
  20. class CWirelessHandler : public CIpsmHandler
  21. {
  22. public:
  23. CWirelessHandler(ITFSComponentData* pTFSComponentData);
  24. virtual ~CWirelessHandler();
  25. // Interface
  26. public:
  27. // base handler functionality we override
  28. OVERRIDE_NodeHandler_HasPropertyPages();
  29. OVERRIDE_NodeHandler_CreatePropertyPages();
  30. OVERRIDE_NodeHandler_OnAddMenuItems();
  31. OVERRIDE_NodeHandler_OnCommand();
  32. OVERRIDE_NodeHandler_GetString()
  33. { return (nCol == 0) ? GetDisplayName() : NULL; }
  34. // Base handler notifications we handle
  35. OVERRIDE_BaseHandlerNotify_OnExpand();
  36. OVERRIDE_BaseHandlerNotify_OnDelete();
  37. OVERRIDE_BaseHandlerNotify_OnPropertyChange();
  38. // Result handler functionality we override
  39. OVERRIDE_BaseResultHandlerNotify_OnResultSelect();
  40. OVERRIDE_BaseResultHandlerNotify_OnResultUpdateView();
  41. OVERRIDE_ResultHandler_OnGetResultViewType();
  42. OVERRIDE_ResultHandler_GetVirtualString();
  43. OVERRIDE_ResultHandler_GetVirtualImage();
  44. OVERRIDE_ResultHandler_AddMenuItems();
  45. OVERRIDE_ResultHandler_Command();
  46. OVERRIDE_ResultHandler_HasPropertyPages();
  47. OVERRIDE_ResultHandler_CreatePropertyPages();
  48. STDMETHODIMP CacheHint(int nStartIndex, int nEndIndex);
  49. /*
  50. STDMETHODIMP SortItems(int nColumn,
  51. DWORD dwSortOptions,
  52. LPARAM lUserParam);
  53. */
  54. // base handler overrides
  55. virtual HRESULT LoadColumns(ITFSComponent *, MMC_COOKIE, LPARAM, LPARAM);
  56. // CHandler overridden
  57. virtual HRESULT OnRefresh(ITFSNode *, LPDATAOBJECT, DWORD, LPARAM, LPARAM);
  58. // multi select support
  59. virtual const GUID * GetVirtualGuid(int nIndex)
  60. {
  61. return &GUID_IpfmWirelessNodeType;
  62. }
  63. public:
  64. // CMTIpsmHandler functionality
  65. virtual HRESULT InitializeNode(ITFSNode * pNode);
  66. virtual int GetImageIndex(BOOL bOpenImage);
  67. ITFSQueryObject* OnCreateQuery(ITFSNode * pNode);
  68. public:
  69. // implementation specific
  70. HRESULT InitApData(IApDbInfo * pApDbInfo);
  71. HRESULT UpdateStatus(ITFSNode * pNode);
  72. // Implementation
  73. private:
  74. // Command handlers
  75. HRESULT OnDelete(ITFSNode * pNode);
  76. //HRESULT UpdateViewType(ITFSNode * pNode, FILTER_TYPE NewFltrType);
  77. private:
  78. SPIApDbInfo m_spApDbInfo;
  79. //FILTER_TYPE m_FltrType;
  80. };
  81. /*
  82. SPITFSNode spWirelessNode;
  83. CWirelessHandler * pWirelessHandler = new CWirelessHandler(m_spTFSCompData);
  84. CreateContainerTFSNode( &spWirelessNode,
  85. &GUID_IpfmWirelessNodeType,
  86. pWirelessHandler,
  87. pWirelessHandler,
  88. m_spNodeMgr);
  89. pWirelessHandler->InitData(m_spApDbInfo);
  90. pWirelessHandler->InitializeNode(spWirelessNode);
  91. pWirelessHandler->Release();
  92. pNode->AddChild(spWirelessNode);
  93. */
  94. #endif _WIRELESS_NODE_H