1
0

storageHelper.h 834 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef NULLSOFT_WINAMP_OMSTORAGE_HELPER_HEADER
  2. #define NULLSOFT_WINAMP_OMSTORAGE_HELPER_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include "./ifc_omstoragehelper.h"
  7. class StorageHelper : public ifc_omstoragehelper
  8. {
  9. protected:
  10. StorageHelper();
  11. ~StorageHelper();
  12. public:
  13. static HRESULT CreateInstance(StorageHelper **instance);
  14. public:
  15. /* Dispatchable */
  16. size_t AddRef();
  17. size_t Release();
  18. int QueryInterface(GUID interface_guid, void **object);
  19. /* ifc_omstoragehelper */
  20. HRESULT CreateHandler(const wchar_t *key, HandlerProc proc, ifc_omstoragehandler **handler);
  21. HRESULT CreateEnumerator(const TemplateRecord *recordList, size_t recordCount, ifc_omstoragehandlerenum **enumerator);
  22. protected:
  23. size_t ref;
  24. protected:
  25. RECVS_DISPATCH;
  26. };
  27. #endif //NULLSOFT_WINAMP_OMSTORAGE_HELPER_HEADER