1
0

serviceHelper.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef NULLSOFT_ONLINEMEDIA_PLUGIN_SERVICE_HELPER_HEADER
  2. #define NULLSOFT_ONLINEMEDIA_PLUGIN_SERVICE_HELPER_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. class ifc_omservice;
  8. class ifc_omserviceenum;
  9. class ifc_omserviceeditor;
  10. class ifc_omstorage;
  11. #include <ifc_omstorageasync.h>
  12. #define SHF_VERBAL 0x00000001
  13. #define SHF_NOTIFY 0x00000002
  14. #define SHF_SAVE 0x00000004
  15. HRESULT ServiceHelper_Initialize();
  16. HRESULT ServiceHelper_QueryStorage(ifc_omstorage **storage);
  17. HRESULT ServiceHelper_QueryWebStorage(ifc_omstorage **storage);
  18. HRESULT ServiceHelper_Load(ifc_omserviceenum **enumerator);
  19. HRESULT ServiceHelper_Create(UINT serviceId, LPCWSTR pszName, LPCWSTR pszIcon, LPCWSTR pszUrl, UINT flags, UINT generation, BOOL fSave, ifc_omservice **serviceOut);
  20. HRESULT ServiceHelper_Save(ifc_omservice *service);
  21. HRESULT ServiceHelper_Delete(ifc_omservice *service, UINT flags);
  22. HRESULT ServiceHelper_UpdateIcon(ifc_omserviceeditor *editor, LPCWSTR pszImage);
  23. HRESULT ServiceHelper_Find(UINT serviceId, ifc_omservice **serviceOut);
  24. HRESULT ServiceHelper_SetFlags(ifc_omservice *service, UINT flags, UINT flagsMask);
  25. HRESULT ServiceHelper_IsSpecial(ifc_omservice *service);
  26. HRESULT ServiceHelper_IsPreAuthorized(ifc_omservice *service);
  27. HRESULT ServiceHelper_IsSubscribed(ifc_omservice *service);
  28. HRESULT ServiceHelper_IsModified(ifc_omservice *service);
  29. HRESULT ServiceHelper_MarkModified(ifc_omservice *service, UINT modifiedFlag, UINT modifiedMask);
  30. HRESULT ServiceHelper_SetRating(ifc_omservice *service, UINT rating, UINT flags);
  31. HRESULT ServiceHelper_Subscribe(ifc_omservice *service, BOOL subscribe, UINT flags);
  32. HRESULT ServiceHelper_ResetPermissions(ifc_omservice *service, UINT flags);
  33. HRESULT ServiceHelper_ResetSubscription(UINT flags);
  34. HRESULT ServiceHelper_BeginDiscover(LPCWSTR address);
  35. HRESULT ServiceHelper_IsDiscovering();
  36. HRESULT ServiceHelper_BeginVersionCheck(ifc_omservice *service);
  37. HRESULT ServiceHelper_GetDetailsUrl(LPWSTR pszBuffer, UINT cchBufferMax, ifc_omservice *service, BOOL fLite);
  38. HRESULT ServiceHelper_PostNotificationUrl(LPCWSTR pszUrl);
  39. HRESULT ServiceHelper_UpdateOperationInfo(HWND hBrowser);
  40. #define SHOWMODE_NORMAL 0
  41. #define SHOWMODE_ENSUREVISIBLE 1
  42. #define SHOWMODE_POPUP 2
  43. HRESULT ServiceHelper_ShowService(UINT serviceId, UINT showMode);
  44. #endif //NULLSOFT_ONLINEMEDIA_PLUGIN_SERVICE_HELPER_HEADER