IDPCHandler.h 616 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. class DevTree;
  3. class SCFPacket;
  4. class DriverDPC;
  5. namespace DiosCtrlBox
  6. {
  7. class ICommunicateEntity;
  8. class IPacketDispatcher;
  9. class IDPCHandler
  10. {
  11. public:
  12. IDPCHandler(){}
  13. virtual ~IDPCHandler(){}
  14. public:
  15. virtual void OnDriverEntry(DriverDPC *dpc,
  16. ResDataObject &inConfiguration,
  17. ICommunicateEntity *&outcommunicate,
  18. IPacketDispatcher *&outdispatcher,
  19. bool &outstatus) = 0;
  20. virtual void OnSetDriverWorkPath(const char *workPath) = 0;
  21. virtual void OnConnected(ICommunicateEntity *communicate) = 0;
  22. virtual void OnLoadLogicDevices(DriverDPC *dpc, DevTree *root) = 0;
  23. };
  24. }