winamp/Src/Plugins/Portable/pmp_wifi/WifiPlaylist.h
2024-09-24 14:54:57 +02:00

36 lines
No EOL
703 B
C++

#pragma once
#include "../../General/gen_ml/ml.h" // for itemRecordW
#include <vector>
struct WifiTrack
{
WifiTrack();
WifiTrack(const WifiTrack &copy);
~WifiTrack();
WifiTrack(const char *id, const itemRecordW *record, const wchar_t *filename);
wchar_t *id;
wchar_t *artist;
wchar_t *album;
wchar_t *composer;
int duration;
int track;
int year;
int size;
wchar_t *title;
wchar_t *mime_type;
__time64_t last_updated;
wchar_t *ext;
};
class WifiPlaylist
{
public:
WifiPlaylist();
WifiPlaylist(const char *id, const wchar_t *name);
~WifiPlaylist();
void SetName(const wchar_t *new_name);
typedef std::vector<WifiTrack*> TrackList;
TrackList tracks;
wchar_t *id;
wchar_t *name;
};