1
0

updateService.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef NULLSOFT_WINAMP_UPDATE_SERVICE_HEADER
  2. #define NULLSOFT_WINAMP_UPDATE_SERVICE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. #include "../omBrowser/ifc_omservice.h"
  8. class obj_ombrowser;
  9. class UpdateService : public ifc_omservice
  10. {
  11. protected:
  12. UpdateService(obj_ombrowser *browserObject, LPWSTR pszUrl);
  13. ~UpdateService();
  14. public:
  15. static HRESULT CreateInstance(LPCSTR pszUrl, UpdateService **instance);
  16. public:
  17. /* Dispatchable */
  18. size_t AddRef();
  19. size_t Release();
  20. int QueryInterface(GUID interface_guid, void **object);
  21. /* ifc_omservice */
  22. unsigned int GetId();
  23. HRESULT GetName(wchar_t *pszBuffer, int cchBufferMax);
  24. HRESULT GetUrl(wchar_t *pszBuffer, int cchBufferMax);
  25. HRESULT GetExternal(IDispatch **ppDispatch);
  26. HRESULT GetIcon(wchar_t *pszBuffer, int cchBufferMax);
  27. public:
  28. HRESULT Show();
  29. HRESULT Finish();
  30. protected:
  31. ULONG ref;
  32. LPWSTR url;
  33. obj_ombrowser *browserManager;
  34. protected:
  35. RECVS_DISPATCH;
  36. };
  37. #endif //NULLSOFT_WINAMP_UPDATE_SERVICE_HEADER