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.

58 lines
1.2 KiB

  1. /*
  2. * REVISIONS:
  3. * pcy17Nov92: Equal() now uses reference and is const
  4. * ane03Feb93: Added destructors
  5. * pcy03Mar93: Cleaned up include files and use _CLASSDEFed types
  6. * pcy30Apr93: Moved DevComController to its own file and gor rid of IsA
  7. * rct17May93: Added IsA() -- sorry if it's not supposed to be pure virt.,
  8. * but nobody could of used it as is anyway...
  9. * mwh05May94: #include file madness , part 2
  10. * tjg26Jan98: Added Stop method
  11. */
  12. #ifndef __COMCTRL_H
  13. #define __COMCTRL_H
  14. //
  15. // Defines
  16. //
  17. _CLASSDEF(CommController)
  18. //
  19. // Implementation uses
  20. //
  21. #include "contrlr.h"
  22. //
  23. // Interface uses
  24. //
  25. _CLASSDEF(UpdateObj)
  26. _CLASSDEF(CommDevice)
  27. class CommController : public Controller {
  28. protected:
  29. PCommDevice theCommDevice;
  30. public:
  31. CommController();
  32. virtual ~CommController();
  33. INT RegisterEvent(INT anEventCode, PUpdateObj aAttribute);
  34. INT UnregisterEvent(INT anEventCode, PUpdateObj aAttribute);
  35. virtual INT Initialize();
  36. virtual INT Get(INT code, PCHAR value);
  37. virtual INT Set(INT code, const PCHAR value);
  38. VOID Stop();
  39. PCommDevice GetDevice () { return theCommDevice; }
  40. };
  41. #endif