From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/playlist/PlaylistCounter.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Src/playlist/PlaylistCounter.h (limited to 'Src/playlist/PlaylistCounter.h') diff --git a/Src/playlist/PlaylistCounter.h b/Src/playlist/PlaylistCounter.h new file mode 100644 index 00000000..0d3fb72d --- /dev/null +++ b/Src/playlist/PlaylistCounter.h @@ -0,0 +1,21 @@ +#ifndef NULLSOFT_PLAYLIST_PLAYLISTCOUNTER_H +#define NULLSOFT_PLAYLIST_PLAYLISTCOUNTER_H + +#include "ifc_playlistloadercallback.h" + +class PlaylistCounter : public ifc_playlistloadercallback +{ +public: + PlaylistCounter() {} + + int OnFile( const wchar_t *filename, const wchar_t *title, int lengthInMS, ifc_plentryinfo *info ); + + size_t count = 0; + uint64_t length = 0; + +protected: + RECVS_DISPATCH; + +}; + +#endif \ No newline at end of file -- cgit