serviceFactory.h 905 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef NULLSOFT_WINAMP_OMSERVICEOBJECT_FACTORY_HEADER
  2. #define NULLSOFT_WINAMP_OMSERVICEOBJECT_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 OmServiceManager;
  9. class OmServiceFactory : public waServiceFactory
  10. {
  11. public:
  12. OmServiceFactory();
  13. ~OmServiceFactory();
  14. FOURCC GetServiceType();
  15. const char *GetServiceName();
  16. GUID GetGUID();
  17. void *GetInterface( int global_lock );
  18. int SupportNonLockingInterface();
  19. int ReleaseInterface( void *ifc );
  20. const char *GetTestString();
  21. int ServiceNotify( int msg, int param1, int param2 );
  22. HRESULT Register( api_service *service );
  23. HRESULT Unregister( api_service *service );
  24. protected:
  25. RECVS_DISPATCH;
  26. OmServiceManager *object;
  27. };
  28. #endif //NULLSOFT_WINAMP_OMSERVICEOBJECT_FACTORY_HEADER