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.

38 lines
753 B

  1. /*
  2. *
  3. * NOTES:
  4. *
  5. * REVISIONS:
  6. * pcy28Dec92: A Device's parent is now an UpdateObj
  7. * rct17May93: Added IsA()
  8. *
  9. * pcy08Apr94: Trim size, use static iterators, dead code removal
  10. */
  11. #ifndef __DEVICE_H
  12. #define __DEVICE_H
  13. #include "_defs.h"
  14. #include "update.h"
  15. #include "comctrl.h"
  16. _CLASSDEF(Device)
  17. _CLASSDEF(CommController)
  18. _CLASSDEF(Event)
  19. _CLASSDEF(Dispatcher)
  20. _CLASSDEF(Sensor)
  21. class Device : public UpdateObj
  22. {
  23. public:
  24. Device(PUpdateObj aDevice, PCommController aCommController);
  25. virtual int Get(int code, PCHAR value) = 0;
  26. virtual int Set(int code, const PCHAR value) = 0;
  27. virtual VOID GetAllowedValue(INT code, PCHAR aValue) {};
  28. protected:
  29. PCommController theCommController;
  30. PUpdateObj theDeviceController;
  31. };
  32. #endif