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.

157 lines
4.6 KiB

  1. //==============================================================;
  2. //
  3. // This source code is only intended as a supplement to
  4. // existing Microsoft documentation.
  5. //
  6. //
  7. //
  8. //
  9. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  10. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  11. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  12. // PURPOSE.
  13. //
  14. // Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  15. //
  16. //
  17. //
  18. //==============================================================;
  19. #ifndef _PEOPLE_H
  20. #define _PEOPLE_H
  21. #include "DeleBase.h"
  22. class CBicycle : public CDelegationBase {
  23. public:
  24. CBicycle(int i) : id(i) { }
  25. virtual ~CBicycle() {}
  26. virtual const _TCHAR *GetDisplayName(int nCol = 0);
  27. virtual const GUID & getNodeType() { return thisGuid; }
  28. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  29. private:
  30. // {2974380D-4C4B-11d2-89D8-000021473128}
  31. static const GUID thisGuid;
  32. int id;
  33. };
  34. class CBicycleFolder : public CDelegationBase {
  35. public:
  36. CBicycleFolder();
  37. virtual ~CBicycleFolder();
  38. virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("Bicycles"); }
  39. virtual const GUID & getNodeType() { return thisGuid; }
  40. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  41. public:
  42. // virtual functions go here (for MMCN_*)
  43. virtual HRESULT OnShow(IConsole *pConsole, BOOL bShow, HSCOPEITEM scopeitem);
  44. private:
  45. // {2974380D-4C4B-11d2-89D8-000021473128}
  46. static const GUID thisGuid;
  47. enum { NUMBER_OF_CHILDREN = 20 };
  48. CDelegationBase *children[NUMBER_OF_CHILDREN];
  49. };
  50. class CSkateboard : public CDelegationBase {
  51. public:
  52. CSkateboard(int i) : id(i) { }
  53. virtual ~CSkateboard() {}
  54. virtual const _TCHAR *GetDisplayName(int nCol = 0);
  55. virtual const GUID & getNodeType() { return thisGuid; }
  56. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  57. private:
  58. // {2974380D-4C4B-11d2-89D8-000021473128}
  59. static const GUID thisGuid;
  60. int id;
  61. };
  62. class CSkateboardFolder : public CDelegationBase {
  63. public:
  64. CSkateboardFolder();
  65. virtual ~CSkateboardFolder();
  66. virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("Skateboards"); }
  67. virtual const GUID & getNodeType() { return thisGuid; }
  68. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  69. public:
  70. // virtual functions go here (for MMCN_*)
  71. virtual HRESULT OnShow(IConsole *pConsole, BOOL bShow, HSCOPEITEM scopeitem);
  72. private:
  73. // {2974380D-4C4B-11d2-89D8-000021473128}
  74. static const GUID thisGuid;
  75. enum { NUMBER_OF_CHILDREN = 20 };
  76. CDelegationBase *children[NUMBER_OF_CHILDREN];
  77. };
  78. class CIceSkate : public CDelegationBase {
  79. public:
  80. CIceSkate(int i) : id(i) { }
  81. virtual ~CIceSkate() {}
  82. virtual const _TCHAR *GetDisplayName(int nCol = 0);
  83. virtual const GUID & getNodeType() { return thisGuid; }
  84. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  85. private:
  86. // {2974380D-4C4B-11d2-89D8-000021473128}
  87. static const GUID thisGuid;
  88. int id;
  89. };
  90. class CIceSkateFolder : public CDelegationBase {
  91. public:
  92. CIceSkateFolder();
  93. virtual ~CIceSkateFolder();
  94. virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("Ice Skates"); }
  95. virtual const GUID & getNodeType() { return thisGuid; }
  96. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  97. public:
  98. // virtual functions go here (for MMCN_*)
  99. virtual HRESULT OnShow(IConsole *pConsole, BOOL bShow, HSCOPEITEM scopeitem);
  100. private:
  101. // {2974380D-4C4B-11d2-89D8-000021473128}
  102. static const GUID thisGuid;
  103. enum { NUMBER_OF_CHILDREN = 20 };
  104. CDelegationBase *children[NUMBER_OF_CHILDREN];
  105. };
  106. class CPeoplePoweredVehicle : public CDelegationBase {
  107. public:
  108. CPeoplePoweredVehicle(CComponentData *pComponentData = NULL);
  109. virtual ~CPeoplePoweredVehicle();
  110. virtual const _TCHAR *GetDisplayName(int nCol = 0) { return _T("People-powered Vehicles"); }
  111. virtual const GUID & getNodeType() { return thisGuid; }
  112. virtual const int GetBitmapIndex() { return INDEX_PEOPLEICON; }
  113. virtual HRESULT OnExpand(IConsoleNameSpace *pConsoleNameSpace, IConsole *pConsole, HSCOPEITEM parent);
  114. private:
  115. enum { IDM_NEW_PEOPLE = 1 };
  116. // {2974380D-4C4B-11d2-89D8-000021473128}
  117. static const GUID thisGuid;
  118. enum { NUMBER_OF_CHILDREN = 3 };
  119. CDelegationBase *children[3];
  120. };
  121. #endif // _PEOPLE_H