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.

68 lines
1.6 KiB

  1. /*
  2. *
  3. * NOTES:
  4. *
  5. * REVISIONS:
  6. * jod30Nov92: Added GCIP object stuff
  7. * jod02Dec92: Fixed Jim's sloppy code
  8. * jod13Jan93: Added eventList to InterpretMessage
  9. * pcy21Apr93: OS2 FE merge
  10. * pcy21May93: PROTOSIZE changed from 2600 to 8000
  11. * cad22Jul93: Fixed up destructor conflicts and omissions
  12. * pcy17Aug93: Removing strtok() requires new arg in InterpretParameters
  13. * cad28Sep93: Made sure destructor(s) virtual
  14. * pcy08Apr94: Trim size, use static iterators, dead code removal
  15. * cgm04May96: TestResponse uses BufferSize
  16. */
  17. #ifndef __PROTSIMP_H
  18. #define __PROTSIMP_H
  19. #include "_defs.h"
  20. #include "apc.h"
  21. //
  22. // Defines
  23. //
  24. _CLASSDEF(SimpleUpsProtocol)
  25. //
  26. // Implementation uses
  27. //
  28. #include "proto.h"
  29. #include "err.h"
  30. #include "trans.h"
  31. //
  32. // Interface uses
  33. //
  34. _CLASSDEF(List)
  35. _CLASSDEF(Message)
  36. class SimpleUpsProtocol : public Protocol
  37. {
  38. protected:
  39. PList theEventList;
  40. virtual PList BuildTransactionMessageList(Type , INT , PCHAR);
  41. PList BuildGetMessage(INT );
  42. virtual PList BuildStandardSetMessage(INT , PCHAR);
  43. public:
  44. SimpleUpsProtocol();
  45. virtual ~SimpleUpsProtocol();
  46. virtual VOID InitProtocol();
  47. virtual INT BuildTransactionGroupMessages(PTransactionGroup );
  48. virtual INT BuildPollTransactionGroupMessages(PTransactionGroup );
  49. virtual INT BuildMessage(PMessage msg, PList msglist=(PList)NULL);
  50. virtual PTransactionGroup InterpretTransactionGroup(PCHAR)
  51. {return (PTransactionGroup)NULL;}
  52. virtual INT InterpretMessage(PMessage msg, PList eventList,
  53. PList newmsglist=(PList)NULL);
  54. virtual INT TestResponse(PMessage msg,PCHAR Buffer,USHORT BufferSize) {return ErrNO_ERROR;};
  55. };
  56. #endif