Source code of Windows XP (NT5)
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.

102 lines
2.5 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // servergroups.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // Declares the classes ServerGroup and ServerGroups.
  12. //
  13. // MODIFICATION HISTORY
  14. //
  15. // 02/10/2000 Original version.
  16. // 04/19/2000 SdoScopeItem::getSelf returns by value, not reference.
  17. //
  18. ///////////////////////////////////////////////////////////////////////////////
  19. #ifndef SERVERGROUPS_H
  20. #define SERVERGROUPS_H
  21. #if _MSC_VER >= 1000
  22. #pragma once
  23. #endif
  24. #include <sdonode.h>
  25. ///////////////////////////////////////////////////////////////////////////////
  26. //
  27. // CLASS
  28. //
  29. // ServerGroup
  30. //
  31. // DESCRIPTION
  32. //
  33. // Implements SnapInDataItem for a server group result pane item.
  34. //
  35. ///////////////////////////////////////////////////////////////////////////////
  36. class ServerGroup : public SdoResultItem
  37. {
  38. public:
  39. ServerGroup(
  40. SdoScopeItem& owner,
  41. ISdo* sdo
  42. )
  43. : SdoResultItem(owner, sdo)
  44. { }
  45. virtual PCWSTR getDisplayName(int column = 0) const throw ()
  46. { return name; }
  47. virtual HRESULT createPropertyPages(
  48. SnapInView& view,
  49. LPPROPERTYSHEETCALLBACK provider,
  50. LONG_PTR handle
  51. );
  52. virtual HRESULT onContextHelp(SnapInView& view) throw ();
  53. protected:
  54. virtual UINT mapResourceId(ResourceId id) const throw ();
  55. };
  56. ///////////////////////////////////////////////////////////////////////////////
  57. //
  58. // CLASS
  59. //
  60. // ServerGroups
  61. //
  62. // DESCRIPTION
  63. //
  64. // Implements SnapInDataItem for the server groups scope pane node.
  65. //
  66. ///////////////////////////////////////////////////////////////////////////////
  67. class __declspec(uuid("f156cdba-aca3-4cb2-abb2-fb8921ee8512")) ServerGroups;
  68. class ServerGroups : public SdoScopeItem
  69. {
  70. public:
  71. ServerGroups(SdoConnection& connection);
  72. const GUID* getNodeType() const throw ()
  73. { return &__uuidof(this); }
  74. virtual HRESULT onContextHelp(SnapInView& view) throw ();
  75. protected:
  76. virtual SdoCollection getSelf();
  77. virtual void getResultItems(SdoEnum& src, ResultItems& dst);
  78. virtual void insertColumns(IHeaderCtrl2* headerCtrl);
  79. virtual HRESULT onMenuCommand(
  80. SnapInView& view,
  81. long commandId
  82. );
  83. virtual void propertyChanged(SnapInView& view, IASPROPERTIES id);
  84. private:
  85. ResourceString nameColumn;
  86. };
  87. #endif // SERVERGROUPS_H