winamp/Src/Plugins/Portable/pmp_usb/usbplaylistsaver.h

31 lines
755 B
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
#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;
};