TagProvider.h 905 B

12345678910111213141516171819202122232425262728
  1. #include "../tagz/ifc_tagprovider.h"
  2. #include "api.h"
  3. #include <api/service/waservicefactorybase.h>
  4. class TagProvider : public ifc_tagprovider
  5. {
  6. public:
  7. wchar_t *GetTag(const wchar_t *name, ifc_tagparams *parameters);
  8. void FreeTag(wchar_t *Tag);
  9. protected:
  10. RECVS_DISPATCH;
  11. };
  12. extern TagProvider *tagProvider;
  13. // {9490752F-23BF-4923-86F1-E1186543EC64}
  14. static const GUID WinampTagProviderGUID =
  15. { 0x9490752f, 0x23bf, 0x4923, { 0x86, 0xf1, 0xe1, 0x18, 0x65, 0x43, 0xec, 0x64 } };
  16. /*
  17. class TagProviderFactory : public waServiceBase<ifc_tagprovider, TagProviderFactory> {
  18. public:
  19. TagProviderFactory() : waServiceBase<ifc_tagprovider, TagProviderFactory>(WinampTagProviderGUID) {}
  20. static const char *getServiceName() { return "Winamp Tag Provider"; }
  21. virtual api_tagprovider *getService() { return tagProvider; }
  22. static FOURCC getServiceType() { return api_tagprovider::getServiceType(); }
  23. };
  24. */