1
0

commands.h 1.1 KB

1234567891011121314151617181920212223242526272829
  1. #ifndef NULLOSFT_ONLINEMEDIA_PLUGIN_COMMANDS_HEADER
  2. #define NULLOSFT_ONLINEMEDIA_PLUGIN_COMMANDS_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. class ifc_omservice;
  8. // returns TRUE if command was handled (fSuccess will have result code if not NULL).
  9. HRESULT Command_NavigateService(ifc_omservice *service, LPCWSTR pszUrl, BOOL fActiveOnly);
  10. BOOL Command_ProcessService(HWND hView, ifc_omservice *service, INT commandId, BOOL *fSuccess);
  11. BOOL Command_ProcessView(HWND hView, INT commandId, BOOL *fSuccess);
  12. BOOL Command_ProcessGeneral(INT commandId, BOOL *fSuccess);
  13. BOOL Command_ReportService(ifc_omservice *service);
  14. BOOL Command_UnsubscribeService(ifc_omservice *service);
  15. BOOL Command_ShowServiceInfo(ifc_omservice *service);
  16. BOOL Command_ResetServicePolicy(ifc_omservice *service);
  17. BOOL Command_ResetSubscription();
  18. BOOL Command_SetServiceRating(ifc_omservice *service, INT rating);
  19. HRESULT Command_CreateService(void);
  20. BOOL Command_OpenServiceView(ifc_omservice *service);
  21. BOOL Command_OpenServicePopup(ifc_omservice *service);
  22. #endif //NULLOSFT_ONLINEMEDIA_PLUGIN_COMMANDS_HEADER