1
0

deviceManagerFactory.h 906 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef _NULLSOFT_WINAMP_DEVICES_DEVICE_MANAGER_FACTORY_HEADER
  2. #define _NULLSOFT_WINAMP_DEVICES_DEVICE_MANAGER_FACTORY_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <api/service/waservicefactory.h>
  7. #include <api/service/services.h>
  8. class DeviceManager;
  9. class DeviceManagerFactory : public waServiceFactory
  10. {
  11. public:
  12. DeviceManagerFactory();
  13. ~DeviceManagerFactory();
  14. public:
  15. FOURCC GetServiceType();
  16. const char *GetServiceName();
  17. GUID GetGUID();
  18. void *GetInterface(int global_lock);
  19. int SupportNonLockingInterface();
  20. int ReleaseInterface(void *ifc);
  21. const char *GetTestString();
  22. int ServiceNotify(int msg, int param1, int param2);
  23. public:
  24. HRESULT Register(api_service *service);
  25. HRESULT Unregister(api_service *service);
  26. protected:
  27. RECVS_DISPATCH;
  28. protected:
  29. DeviceManager *object;
  30. };
  31. #endif //_NULLSOFT_WINAMP_DEVICES_DEVICE_MANAGER_FACTORY_HEADER