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.

77 lines
2.0 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1994 - 1997.
  5. //
  6. // File: data.h
  7. //
  8. // Contents: Defines storage class that maintains data for snap-in nodes.
  9. //
  10. // Classes:
  11. //
  12. // Functions: SetStringData
  13. //
  14. // History: 5-27-1997 stevebl Created
  15. //
  16. //---------------------------------------------------------------------------
  17. #ifndef _DATA_H_
  18. #define _DATA_H_
  19. #define _NEW_
  20. #include <map>
  21. #include <set>
  22. #include <algorithm>
  23. typedef enum DEPLOYMENT_TYPES
  24. {
  25. DT_ASSIGNED = 0,
  26. DT_PUBLISHED
  27. } DEPLOYMENT_TYPE;
  28. class CComponentDataImpl;
  29. class CProduct;
  30. class CDeploy;
  31. class CLocPkg;
  32. class CCategory;
  33. class CXforms;
  34. class CPackageDetails;
  35. class APP_DATA
  36. {
  37. public:
  38. APP_DATA();
  39. ~APP_DATA();
  40. // data
  41. PACKAGEDETAIL * pDetails;
  42. CString szPublisher;
  43. long itemID;
  44. // property pages: (NULL unless property pages are being displayed)
  45. CProduct * pProduct;
  46. CDeploy * pDeploy;
  47. CLocPkg * pLocPkg;
  48. CCategory * pCategory;
  49. CXforms * pXforms;
  50. CPackageDetails * pPkgDetails;
  51. void NotifyChange(void);
  52. std::set<long> sUpgrades; // set of apps that are upgrades to this one
  53. // methods - NOTE: all methods require a valid pDetails
  54. void InitializeExtraInfo(void);
  55. void GetSzDeployment(CString &);
  56. void GetSzAutoInstall(CString &);
  57. void GetSzLocale(CString &);
  58. void GetSzPlatform(CString &);
  59. void GetSzStage(CString &, CComponentDataImpl *);
  60. void GetSzRelation(CString &, CComponentDataImpl *);
  61. void GetSzVersion(CString &);
  62. void GetSzMods(CString &);
  63. void GetSzSource(CString &);
  64. int GetImageIndex(CComponentDataImpl *);
  65. };
  66. #endif // _DATA_H_