CoverDirectory.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef NULLSOFT_COVERDIRECTORY_COVERDIRECTORY_H
  2. #define NULLSOFT_COVERDIRECTORY_COVERDIRECTORY_H
  3. #include "../Agave/AlbumArt/svc_albumArtProvider.h"
  4. #include <api/service/waservicefactory.h>
  5. class CoverDirectory : public svc_albumArtProvider
  6. {
  7. public:
  8. bool IsMine(const wchar_t *filename);
  9. int ProviderType();
  10. // implementation note: use WASABI_API_MEMMGR to alloc bits and mimetype, so that the recipient can free through that
  11. int GetAlbumArtData(const wchar_t *filename, const wchar_t *type, void **bits, size_t *len, wchar_t **mimeType);
  12. int SetAlbumArtData(const wchar_t *filename, const wchar_t *type, void *bits, size_t len, const wchar_t *mimeType);
  13. int DeleteAlbumArt(const wchar_t *filename, const wchar_t *type);
  14. protected:
  15. RECVS_DISPATCH;
  16. };
  17. class AlbumArtFactory : public waServiceFactory
  18. {
  19. public:
  20. FOURCC GetServiceType();
  21. const char *GetServiceName();
  22. GUID GetGUID();
  23. void *GetInterface(int global_lock);
  24. int SupportNonLockingInterface();
  25. int ReleaseInterface(void *ifc);
  26. const char *GetTestString();
  27. int ServiceNotify(int msg, int param1, int param2);
  28. protected:
  29. RECVS_DISPATCH;
  30. };
  31. #endif