WifiPlaylist.h 703 B

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #include "../../General/gen_ml/ml.h" // for itemRecordW
  3. #include <vector>
  4. struct WifiTrack
  5. {
  6. WifiTrack();
  7. WifiTrack(const WifiTrack &copy);
  8. ~WifiTrack();
  9. WifiTrack(const char *id, const itemRecordW *record, const wchar_t *filename);
  10. wchar_t *id;
  11. wchar_t *artist;
  12. wchar_t *album;
  13. wchar_t *composer;
  14. int duration;
  15. int track;
  16. int year;
  17. int size;
  18. wchar_t *title;
  19. wchar_t *mime_type;
  20. __time64_t last_updated;
  21. wchar_t *ext;
  22. };
  23. class WifiPlaylist
  24. {
  25. public:
  26. WifiPlaylist();
  27. WifiPlaylist(const char *id, const wchar_t *name);
  28. ~WifiPlaylist();
  29. void SetName(const wchar_t *new_name);
  30. typedef std::vector<WifiTrack*> TrackList;
  31. TrackList tracks;
  32. wchar_t *id;
  33. wchar_t *name;
  34. };