ifc_omserviceevent.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef NULLSOFT_WINAMP_OMSERVICE_EVENTHANDLER_INTERFACE_HEADER
  2. #define NULLSOFT_WINAMP_OMSERVICE_EVENTHANDLER_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <bfc/dispatch.h>
  7. // {82B3DD14-A2B3-4f80-A4E1-C8702E0AF70E}
  8. static const GUID IFC_OmServiceEvent =
  9. { 0x82b3dd14, 0xa2b3, 0x4f80, { 0xa4, 0xe1, 0xc8, 0x70, 0x2e, 0xa, 0xf7, 0xe } };
  10. class ifc_omservice;
  11. class __declspec(novtable) ifc_omserviceevent : public Dispatchable
  12. {
  13. protected:
  14. ifc_omserviceevent() {}
  15. ~ifc_omserviceevent() {}
  16. public:
  17. void ServiceChange(ifc_omservice *service, unsigned int modifiedFlags);
  18. void CommandStateChange(ifc_omservice *service, const GUID *commandGroup, unsigned int commandId);
  19. public:
  20. DISPATCH_CODES
  21. {
  22. API_SERVICECHANGE = 10,
  23. API_COMMANDSTATECHANGE = 20,
  24. };
  25. };
  26. inline void ifc_omserviceevent::ServiceChange(ifc_omservice *service, unsigned int modifiedFlags)
  27. {
  28. _voidcall(API_SERVICECHANGE, service, modifiedFlags);
  29. }
  30. inline void ifc_omserviceevent::CommandStateChange(ifc_omservice *service, const GUID *commandGroup, unsigned int commandId)
  31. {
  32. _voidcall(API_COMMANDSTATECHANGE, service, commandGroup, commandId);
  33. }
  34. #endif //NULLSOFT_WINAMP_OMSERVICE_EVENTHANDLER_INTERFACE_HEADER