WMPlaylist.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #ifndef NULLSOFT_IN_WMVDRM_WMPLAYLIST_H
  2. #define NULLSOFT_IN_WMVDRM_WMPLAYLIST_H
  3. #include "../playlist/ifc_playlistloadercallback.h"
  4. class WMPlaylist : public ifc_playlistloadercallback
  5. {
  6. public:
  7. WMPlaylist() {}
  8. ~WMPlaylist()
  9. {
  10. if ( playstring )
  11. free( playstring );
  12. if ( playlistFilename )
  13. free( playlistFilename );
  14. }
  15. void Clear()
  16. {
  17. if ( playstring )
  18. free( playstring );
  19. playstring = 0;
  20. if ( playlistFilename )
  21. free( playlistFilename );
  22. playlistFilename = 0;
  23. }
  24. void OnFile( const wchar_t *filename, const wchar_t *title, int lengthInMS, ifc_plentryinfo *info );
  25. const wchar_t *GetFileName();
  26. const wchar_t *GetOriginalFileName();
  27. /* TODO: need something like these, just not sure exact what yet
  28. bool ForceStartTime(int &);
  29. bool ForceLength(int &);
  30. bool ForceNoSeek();
  31. */
  32. bool IsMe( const char *filename );
  33. bool IsMe( const wchar_t *filename );
  34. protected:
  35. RECVS_DISPATCH;
  36. public:
  37. wchar_t *playstring = 0;
  38. wchar_t *playlistFilename = 0;
  39. };
  40. extern WMPlaylist activePlaylist;
  41. #endif // !NULLSOFT_IN_WMVDRM_WMPLAYLIST_H