deviceSupportedCommand.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef _NULLSOFT_WINAMP_DEVICES_DEVICE_SUPPORTED_COMMAND_HEADER
  2. #define _NULLSOFT_WINAMP_DEVICES_DEVICE_SUPPORTED_COMMAND_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. #include "./ifc_devicesupportedcommand.h"
  8. class DeviceSupportedCommand : public ifc_devicesupportedcommand
  9. {
  10. protected:
  11. DeviceSupportedCommand();
  12. ~DeviceSupportedCommand();
  13. public:
  14. static HRESULT CreateInstance(const char *name,
  15. DeviceSupportedCommand **instance);
  16. public:
  17. /* Dispatchable */
  18. size_t AddRef();
  19. size_t Release();
  20. int QueryInterface(GUID interface_guid, void **object);
  21. /* ifc_devicesupportedcommand */
  22. const char *GetName();
  23. HRESULT GetFlags(DeviceCommandFlags *flags);
  24. public:
  25. HRESULT SetFlags(DeviceCommandFlags mask, DeviceCommandFlags value);
  26. HRESULT Clone(DeviceSupportedCommand **instance);
  27. protected:
  28. size_t ref;
  29. char *name;
  30. DeviceCommandFlags flags;
  31. protected:
  32. RECVS_DISPATCH;
  33. };
  34. #endif //_NULLSOFT_WINAMP_DEVICES_DEVICE_SUPPORTED_COMMAND_HEADER