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.

48 lines
1.0 KiB

  1. /*
  2. * REVISIONS:
  3. * ane11Nov92: Changed IsA and Equal.
  4. * pcy30Nov92: Added dispatcher and Register/UnregisterEvent
  5. * pcy30Apr93: Made Register/Unregister for virtual, removed IsA
  6. * cad07Oct93: Plugging Memory Leaks
  7. * ajr03Dec93: Set and Get were good only for compiler warnings... fixed.
  8. * cad28Feb94: added copy constructor
  9. * mwh05May94: #include file madness , part 2
  10. */
  11. #ifndef __UPDATEOBJ_H
  12. #define __UPDATEOBJ_H
  13. #include "_defs.h"
  14. //
  15. // Defines
  16. //
  17. _CLASSDEF(UpdateObj)
  18. //
  19. // Implementation uses
  20. //
  21. #include "apcobj.h"
  22. //
  23. // Interface uses
  24. //
  25. _CLASSDEF(Event)
  26. _CLASSDEF(Dispatcher)
  27. class UpdateObj : public Obj
  28. {
  29. protected:
  30. PDispatcher theDispatcher;
  31. public:
  32. UpdateObj();
  33. UpdateObj(const UpdateObj&);
  34. virtual ~UpdateObj();
  35. virtual INT Update(PEvent value);
  36. virtual INT RegisterEvent(INT anEventCode, PUpdateObj aAttribute);
  37. virtual INT UnregisterEvent(INT anEventCode, PUpdateObj aAttribute);
  38. virtual INT Set(INT code, const PCHAR value);
  39. virtual INT Get(INT code, PCHAR value);
  40. };
  41. #endif