ifc_playlistdirectorycallback.h 925 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef NULLSOFT_IFC_PLAYLISTDIRECTORYCALLBACK_H
  2. #define NULLSOFT_IFC_PLAYLISTDIRECTORYCALLBACK_H
  3. #include <bfc/dispatch.h>
  4. #include <bfc/platform/types.h>
  5. class ifc_playlistdirectorycallback : public Dispatchable
  6. {
  7. protected:
  8. ifc_playlistdirectorycallback() {}
  9. ~ifc_playlistdirectorycallback() {}
  10. public:
  11. bool ShouldRecurse(const wchar_t *path);
  12. bool ShouldLoad(const wchar_t *filename);
  13. DISPATCH_CODES
  14. {
  15. IFC_PLAYLISTDIRECTORYCALLBACK_SHOULDRECURSE = 10,
  16. IFC_PLAYLISTDIRECTORYCALLBACK_SHOULDLOAD = 20,
  17. };
  18. };
  19. inline bool ifc_playlistdirectorycallback::ShouldRecurse(const wchar_t *path)
  20. {
  21. return _call(IFC_PLAYLISTDIRECTORYCALLBACK_SHOULDRECURSE, (bool)false, path);
  22. }
  23. inline bool ifc_playlistdirectorycallback::ShouldLoad(const wchar_t *filename)
  24. {
  25. return _call(IFC_PLAYLISTDIRECTORYCALLBACK_SHOULDLOAD, (bool)true, filename);
  26. }
  27. #endif