1
0

playlist.mi 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef __PLAYLIST_MI
  2. #define __PLAYLIST_MI
  3. extern class @{632883FC-159F-4330-B193-CFD62CA47EC1}@ Object &Playlist;
  4. extern class @{5829EE15-3648-4c6e-B2FE-8736CBBF39DB}@ Object _predecl Playlists;
  5. extern class @{C18F8E50-2C81-4001-9F46-FD942B07ECCD}@ Object &PlaylistsEnumerator;
  6. extern class @{C6207729-2600-4bb8-B562-2E0BC04E4416}@ Object _predecl PlaylistManager;
  7. /* ===== Playlist ===== */
  8. extern Playlist.Clear();
  9. extern int Playlist.GetNumItems();
  10. /*
  11. Retrieve the filename for some item in the playlist
  12. */
  13. extern String Playlist.GetItem(int itemNumber);
  14. extern String Playlist.GetItemTitle(int itemNumber);
  15. extern int Playlist.GetItemLength(int itemNumber);
  16. extern String Playlist.GetItemExtendedInfo(int itemNumber, String metadata);
  17. extern Playlist.Reverse();
  18. extern Playlist.Swap(int item1, int item2);
  19. extern Playlist.Randomize();
  20. extern Playlist.Remove(int itemNumber);
  21. extern Playlist.SortByTitle();
  22. extern Playlist.SortByFilename();
  23. /* ===== Playlists ===== */
  24. extern PlaylistsEnumerator Playlists.GetEnumerator();
  25. extern Playlist Playlists.OpenPlaylist(String playlistGUID);
  26. extern Playlists.SavePlaylist(String playlistGUID, Playlist playlist_to_save);
  27. /* ===== PlaylistsEnumerator ===== */
  28. /* returns the number of playlists in the enumerator object */
  29. extern int PlaylistsEnumerator.GetCount();
  30. extern String PlaylistsEnumerator.GetFilename(int playlistNumber);
  31. extern String PlaylistsEnumerator.GetTitle(int playlistNumber);
  32. extern int PlaylistsEnumerator.GetLength(int playlistNumber);
  33. /*
  34. returns number of items in one of the playlists
  35. */
  36. extern int PlaylistsEnumerator.GetNumItems(int playlistNumber);
  37. extern String PlaylistsEnumerator.GetGUID(int playlistNumber);
  38. /* ===== Playlist Manager ===== */
  39. extern Playlist PlaylistManager.OpenPlaylist(String filename);
  40. extern PlaylistManager.SavePlaylist(String filename, Playlist playlist_to_save);
  41. #endif