1
0

ID3v1Metadata.h 935 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "metadata/metadata.h"
  3. #include "nsid3v1/nsid3v1.h"
  4. /* this class mimics ifc_metadata and ifc_metadata_editor, but doesn't inherit (because it's not given out directly) */
  5. class ID3v1Metadata
  6. {
  7. public:
  8. ID3v1Metadata();
  9. ~ID3v1Metadata();
  10. static int Initialize(api_metadata *metadata_api);
  11. int Initialize(nsid3v1_tag_t tag);
  12. /* ifc_metadata implementation */
  13. int WASABICALL Metadata_GetField(int field, unsigned int index, nx_string_t *value);
  14. int WASABICALL Metadata_GetInteger(int field, unsigned int index, int64_t *value);
  15. int WASABICALL Metadata_GetReal(int field, unsigned int index, double *value);
  16. /* ifc_metadata_editor implementation */
  17. int WASABICALL MetadataEditor_SetField(int field, unsigned int index, nx_string_t value);
  18. int WASABICALL MetadataEditor_SetInteger(int field, unsigned int index, int64_t value);
  19. private:
  20. nsid3v1_tag_t id3v1_tag;
  21. static api_metadata *metadata_api;
  22. };