UsbHostService.h 515 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef USBHOSTSERVICE_H
  2. #define USBHOSTSERVICE_H
  3. #ifdef __cplusplus
  4. #include <stdint.h>
  5. #include <memory.h>
  6. #include <functional>
  7. using namespace std;
  8. typedef function<void (int, int)> funcHotplug;
  9. class LinkAssist;
  10. class UsbHostServicePrivate;
  11. class UsbHostService
  12. {
  13. public:
  14. UsbHostService();
  15. ~UsbHostService();
  16. void addHotplugListener(funcHotplug hotplug);
  17. bool start();
  18. void stop();
  19. private:
  20. bool mStart;
  21. UsbHostServicePrivate *mHandle;
  22. };
  23. #endif
  24. #endif // USBHOSTSERVICE_H