WinampPlaylist.h 993 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef NULLSOFT_WINAMP_WINAMP_PLAYLIST_H
  2. #define NULLSOFT_WINAMP_WINAMP_PLAYLIST_H
  3. // this class is for the main playlist editor
  4. #include "../playlist/ifc_playlistloadercallback.h"
  5. #include "../playlist/ifc_playlistdirectorycallback.h"
  6. class WinampPlaylist : public ifc_playlistloadercallback
  7. {
  8. public:
  9. WinampPlaylist( const wchar_t *_base = 0, bool _loadDirectories = false );
  10. ~WinampPlaylist();
  11. void OnFile( const wchar_t *filename, const wchar_t *title, int lengthInMS, ifc_plentryinfo *info );
  12. const wchar_t *GetBasePath();
  13. protected:
  14. RECVS_DISPATCH;
  15. const wchar_t *base;
  16. bool terminateOnEnd;
  17. bool loadDirectories;
  18. };
  19. class WinampDirectoryLoad : public ifc_playlistdirectorycallback
  20. {
  21. public:
  22. WinampDirectoryLoad( bool _forceRecurse, char *exts = 0 );
  23. ~WinampDirectoryLoad();
  24. bool ShouldRecurse( const wchar_t *path );
  25. bool ShouldLoad( const wchar_t *filename );
  26. bool forceRecurse;
  27. char *exts;
  28. bool needsFree;
  29. int listStart;
  30. protected:
  31. RECVS_DISPATCH;
  32. };
  33. #endif