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.

98 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 _QMSA_H
  10. #define _QMSA_H
  11. #ifndef _IPSMHAND_H
  12. #include "ipsmhand.h"
  13. #endif
  14. #ifndef _SPDDB_H
  15. #include "spddb.h"
  16. #endif
  17. /*---------------------------------------------------------------------------
  18. Class: CQmSAHandler
  19. ---------------------------------------------------------------------------*/
  20. class CQmSAHandler : public CIpsmHandler
  21. {
  22. public:
  23. CQmSAHandler(ITFSComponentData* pTFSComponentData);
  24. virtual ~CQmSAHandler();
  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_IpsmQmSANodeType;
  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 BuildDisplayName(CString * pstrDisplayName);
  67. HRESULT InitData(ISpdInfo * pSpdInfo);
  68. HRESULT UpdateStatus(ITFSNode * pNode);
  69. // Implementation
  70. private:
  71. // Command handlers
  72. HRESULT OnDelete(ITFSNode * pNode);
  73. private:
  74. SPISpdInfo m_spSpdInfo;
  75. };
  76. #endif _LINES_H