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.

74 lines
1.7 KiB

  1. /*
  2. *
  3. * djs05Jun96: Broke off from firmware rev sensor
  4. * srt09Jun97: Added a proper parent object argument
  5. * tjg03Dec97: Changed darkstar to symmetra
  6. * tjg30Jan98: Added destructor
  7. */
  8. #ifndef __FIRMMAN_H
  9. #define __FIRMMAN_H
  10. //
  11. // Defines
  12. //
  13. #include "_defs.h"
  14. #include "update.h"
  15. #include "apcobj.h"
  16. _CLASSDEF(FirmwareRevManager)
  17. class FirmwareRevManager : public Obj{
  18. protected:
  19. PUpdateObj theParent;
  20. PCHAR theValue;
  21. virtual INT Is250();
  22. virtual INT Is370();
  23. virtual INT Is400();
  24. virtual INT Is400_or_370();
  25. virtual INT Is600();
  26. virtual INT Is900();
  27. virtual INT Is1250();
  28. virtual INT Is2000();
  29. virtual INT Is3000();
  30. virtual INT Is5000();
  31. virtual INT Is120VoltUps();
  32. virtual INT Is100VoltUps();
  33. virtual INT Is208VoltUps();
  34. virtual INT Is220VoltUps();
  35. virtual INT Is200VoltUps();
  36. virtual INT IsMatrix();
  37. virtual INT IsXL();
  38. virtual INT IsSymmetra();
  39. virtual INT IsBackUps();
  40. virtual INT IsFirstGen();
  41. virtual INT IsSecondGen();
  42. virtual INT IsThirdGen();
  43. virtual VOID GetNumberOfInternalBatteryPacks(PCHAR aValue);
  44. virtual VOID GetUPSNameFromFirmware(PCHAR aValue);
  45. virtual VOID GetUPSModelChar(PCHAR aValue);
  46. virtual VOID GetCountryCode(PCHAR aValue);
  47. virtual CHAR GetFirmwareRevChar(VOID);
  48. public:
  49. FirmwareRevManager(PUpdateObj aParent, PCHAR aFirmwareRevChars);
  50. virtual ~FirmwareRevManager();
  51. virtual VOID ReInitialize(PCHAR aFirmwareRevChars);
  52. virtual INT IsA() const;
  53. virtual INT Get( INT aCode, PCHAR aValue );
  54. };
  55. #endif