utilityFactory.h 834 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef NULLSOFT_WINAMP_UTILITY_FACTORY_HEADER
  2. #define NULLSOFT_WINAMP_UTILITY_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 OmUtility;
  9. class OmUtilityFactory : public waServiceFactory
  10. {
  11. public:
  12. OmUtilityFactory();
  13. ~OmUtilityFactory();
  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. OmUtility *object;
  30. };
  31. #endif //NULLSOFT_WINAMP_UTILITY_FACTORY_HEADER