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.

56 lines
953 B

  1. /*
  2. *
  3. * NOTES:
  4. *
  5. * REVISIONS:
  6. * rct08Dec92 fixed up some things ... finished implemantation
  7. * rct11Dec92 added additional states
  8. * SjA15Dec92 Fixed Macros SET_BIT and CLEAR_BIT.
  9. * pcy27Dec92 Parent is now an UpdateObj
  10. * pcy21Jan93 Moved state stuff into upsstate.h
  11. *
  12. * pcy08Apr94: Trim size, use static iterators, dead code removal
  13. * jps14Jul94: made theUpsState LONG
  14. */
  15. #ifndef _INC__UPS_H
  16. #define _INC__UPS_H
  17. #include "apc.h"
  18. #include "device.h"
  19. //
  20. // Defines
  21. //
  22. _CLASSDEF(Ups)
  23. //
  24. // Uses
  25. //
  26. class Ups : public Device {
  27. protected:
  28. ULONG theUpsState;
  29. virtual VOID registerForEvents() = 0;
  30. public:
  31. Ups(PUpdateObj aDeviceController, PCommController aCommController);
  32. virtual INT Get(INT code, PCHAR value) = 0;
  33. virtual INT Set(INT code, const PCHAR value) = 0;
  34. virtual INT Update(PEvent event) = 0;
  35. INT Initialize();
  36. };
  37. #endif