Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
56
Src/Plugins/Input/in_wmvdrm/WMPlaylist.h
Normal file
56
Src/Plugins/Input/in_wmvdrm/WMPlaylist.h
Normal file
|
@ -0,0 +1,56 @@
|
|||
#ifndef NULLSOFT_IN_WMVDRM_WMPLAYLIST_H
|
||||
#define NULLSOFT_IN_WMVDRM_WMPLAYLIST_H
|
||||
|
||||
#include "../playlist/ifc_playlistloadercallback.h"
|
||||
|
||||
class WMPlaylist : public ifc_playlistloadercallback
|
||||
{
|
||||
public:
|
||||
WMPlaylist() {}
|
||||
|
||||
~WMPlaylist()
|
||||
{
|
||||
if ( playstring )
|
||||
free( playstring );
|
||||
|
||||
if ( playlistFilename )
|
||||
free( playlistFilename );
|
||||
}
|
||||
|
||||
void Clear()
|
||||
{
|
||||
if ( playstring )
|
||||
free( playstring );
|
||||
|
||||
playstring = 0;
|
||||
|
||||
if ( playlistFilename )
|
||||
free( playlistFilename );
|
||||
|
||||
playlistFilename = 0;
|
||||
}
|
||||
|
||||
void OnFile( const wchar_t *filename, const wchar_t *title, int lengthInMS, ifc_plentryinfo *info );
|
||||
|
||||
const wchar_t *GetFileName();
|
||||
const wchar_t *GetOriginalFileName();
|
||||
/* TODO: need something like these, just not sure exact what yet
|
||||
bool ForceStartTime(int &);
|
||||
bool ForceLength(int &);
|
||||
bool ForceNoSeek();
|
||||
*/
|
||||
bool IsMe( const char *filename );
|
||||
bool IsMe( const wchar_t *filename );
|
||||
|
||||
|
||||
protected:
|
||||
RECVS_DISPATCH;
|
||||
|
||||
public:
|
||||
wchar_t *playstring = 0;
|
||||
wchar_t *playlistFilename = 0;
|
||||
};
|
||||
|
||||
extern WMPlaylist activePlaylist;
|
||||
|
||||
#endif // !NULLSOFT_IN_WMVDRM_WMPLAYLIST_H
|
Loading…
Add table
Add a link
Reference in a new issue