1234567891011121314151617181920212223242526272829 |
- #pragma once
- #include "ifc_playlistloadercallback.h"
- template <class T>
- class ifc_playlistloadercallbackT : public ifc_playlistloadercallback
- {
- protected:
- ifc_playlistloadercallbackT() {}
- ~ifc_playlistloadercallbackT() {}
- protected:
-
-
- int OnFile(const wchar_t *filename, const wchar_t *title, int lengthInMS, ifc_plentryinfo *info) { return LOAD_ABORT; }
-
- int OnPlaylistInfo(const wchar_t *playlistName, size_t numEntries, ifc_plentryinfo *info) { return LOAD_ABORT; }
-
- const wchar_t *GetBasePath() { return 0; }
- #define CBCLASS T
- #define CBCLASST ifc_playlistloadercallbackT<T>
- START_DISPATCH_INLINE;
- CBT(IFC_PLAYLISTLOADERCALLBACK_ONFILE_RET, OnFile);
- CBT(IFC_PLAYLISTLOADERCALLBACK_ONPLAYLISTINFO_RET, OnPlaylistInfo);
- CBT(IFC_PLAYLISTLOADERCALLBACK_GETBASEPATH, GetBasePath);
- END_DISPATCH;
- #undef CBCLASS
- #undef CBCLASST
- };
|