diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Winamp/WinampPlaylist.h | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Winamp/WinampPlaylist.h')
-rw-r--r-- | Src/Winamp/WinampPlaylist.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Src/Winamp/WinampPlaylist.h b/Src/Winamp/WinampPlaylist.h new file mode 100644 index 00000000..aedb6720 --- /dev/null +++ b/Src/Winamp/WinampPlaylist.h @@ -0,0 +1,43 @@ +#ifndef NULLSOFT_WINAMP_WINAMP_PLAYLIST_H +#define NULLSOFT_WINAMP_WINAMP_PLAYLIST_H + +// this class is for the main playlist editor +#include "../playlist/ifc_playlistloadercallback.h" +#include "../playlist/ifc_playlistdirectorycallback.h" + +class WinampPlaylist : public ifc_playlistloadercallback +{ +public: + WinampPlaylist( const wchar_t *_base = 0, bool _loadDirectories = false ); + ~WinampPlaylist(); + + void OnFile( const wchar_t *filename, const wchar_t *title, int lengthInMS, ifc_plentryinfo *info ); + const wchar_t *GetBasePath(); + +protected: + RECVS_DISPATCH; + + const wchar_t *base; + bool terminateOnEnd; + bool loadDirectories; +}; + +class WinampDirectoryLoad : public ifc_playlistdirectorycallback +{ +public: + WinampDirectoryLoad( bool _forceRecurse, char *exts = 0 ); + ~WinampDirectoryLoad(); + + bool ShouldRecurse( const wchar_t *path ); + bool ShouldLoad( const wchar_t *filename ); + + bool forceRecurse; + char *exts; + bool needsFree; + int listStart; + +protected: + RECVS_DISPATCH; +}; + +#endif
\ No newline at end of file |