31 lines
755 B
C++
31 lines
755 B
C++
#pragma once
|
|
|
|
#include <wtypes.h>
|
|
#include "../playlist/ifc_playlist.h"
|
|
|
|
class USBPlaylist;
|
|
|
|
class USBPlaylistSaver : public ifc_playlist
|
|
{
|
|
|
|
public:
|
|
USBPlaylistSaver(LPCTSTR iFilename, LPCTSTR iTitle, USBPlaylist * iPlaylist);
|
|
virtual ~USBPlaylistSaver();
|
|
|
|
public:
|
|
/*** ifc_playlist ***/
|
|
size_t GetNumItems();
|
|
size_t GetItem(size_t item, wchar_t *filename, size_t filenameCch);
|
|
size_t GetItemTitle(size_t item, wchar_t *title, size_t titleCch);
|
|
int GetItemLengthMs(size_t item); // TODO: maybe microsecond for better resolution?
|
|
size_t GetItemExtendedInfo(size_t item, const wchar_t *metadata, wchar_t *info, size_t infoCch);
|
|
|
|
HRESULT Save();
|
|
protected:
|
|
RECVS_DISPATCH;
|
|
|
|
protected:
|
|
LPTSTR title;
|
|
LPTSTR filename;
|
|
USBPlaylist *playlist;
|
|
}; |