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.

97 lines
2.7 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 2002 **/
  4. /**********************************************************************/
  5. /*
  6. FltrNode.h
  7. FILE HISTORY:
  8. */
  9. #ifndef _MMSA_H
  10. #define _MMSA_H
  11. #ifndef _IPSMHAND_H
  12. #include "ipsmhand.h"
  13. #endif
  14. #ifndef _SPDDB_H
  15. #include "spddb.h"
  16. #endif
  17. /*---------------------------------------------------------------------------
  18. Class: CMmSAHandler
  19. ---------------------------------------------------------------------------*/
  20. class CMmSAHandler : public CIpsmHandler
  21. {
  22. public:
  23. CMmSAHandler(ITFSComponentData* pTFSComponentData);
  24. virtual ~CMmSAHandler();
  25. // Interface
  26. public:
  27. // base handler functionality we override
  28. OVERRIDE_NodeHandler_OnAddMenuItems();
  29. OVERRIDE_NodeHandler_OnCommand();
  30. OVERRIDE_NodeHandler_GetString()
  31. { return (nCol == 0) ? GetDisplayName() : NULL; }
  32. // Base handler notifications we handle
  33. OVERRIDE_BaseHandlerNotify_OnExpand();
  34. OVERRIDE_BaseHandlerNotify_OnDelete();
  35. OVERRIDE_BaseHandlerNotify_OnPropertyChange();
  36. // Result handler functionality we override
  37. OVERRIDE_BaseResultHandlerNotify_OnResultSelect();
  38. OVERRIDE_BaseResultHandlerNotify_OnResultUpdateView();
  39. OVERRIDE_ResultHandler_OnGetResultViewType();
  40. OVERRIDE_ResultHandler_GetVirtualString();
  41. OVERRIDE_ResultHandler_GetVirtualImage();
  42. OVERRIDE_ResultHandler_AddMenuItems();
  43. OVERRIDE_ResultHandler_Command();
  44. OVERRIDE_ResultHandler_HasPropertyPages();
  45. OVERRIDE_ResultHandler_CreatePropertyPages();
  46. STDMETHODIMP CacheHint(int nStartIndex, int nEndIndex);
  47. STDMETHODIMP SortItems(int nColumn,
  48. DWORD dwSortOptions,
  49. LPARAM lUserParam);
  50. // base handler overrides
  51. virtual HRESULT LoadColumns(ITFSComponent *, MMC_COOKIE, LPARAM, LPARAM);
  52. // CHandler overridden
  53. virtual HRESULT OnRefresh(ITFSNode *, LPDATAOBJECT, DWORD, LPARAM, LPARAM);
  54. // multi select support
  55. virtual const GUID * GetVirtualGuid(int nIndex)
  56. {
  57. return &GUID_IpsmMmSANodeType;
  58. }
  59. public:
  60. // CMTIpsmHandler functionality
  61. virtual HRESULT InitializeNode(ITFSNode * pNode);
  62. virtual int GetImageIndex(BOOL bOpenImage);
  63. ITFSQueryObject* OnCreateQuery(ITFSNode * pNode);
  64. public:
  65. // implementation specific
  66. HRESULT InitData(ISpdInfo * pSpdInfo);
  67. HRESULT UpdateStatus(ITFSNode * pNode);
  68. // Implementation
  69. private:
  70. // Command handlers
  71. HRESULT OnDelete(ITFSNode * pNode);
  72. private:
  73. SPISpdInfo m_spSpdInfo;
  74. };
  75. #endif _LINES_H