2016-01-01 20:28:09 -05:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class Playlist : public Component
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
typedef void(*Callback)();
|
|
|
|
|
|
|
|
Playlist();
|
|
|
|
~Playlist();
|
|
|
|
const char* GetName() { return "Playlist"; };
|
|
|
|
|
|
|
|
static void LoadPlaylist();
|
|
|
|
|
2016-01-03 09:14:44 -05:00
|
|
|
static std::string ReceivedPlaylistBuffer;
|
|
|
|
|
2016-01-01 20:28:09 -05:00
|
|
|
private:
|
|
|
|
static std::string CurrentPlaylistBuffer;
|
|
|
|
static DWORD StorePlaylistStub(const char** buffer);
|
|
|
|
|
|
|
|
static void PlaylistRequest(Network::Address address, std::string data);
|
|
|
|
static void PlaylistReponse(Network::Address address, std::string data);
|
|
|
|
};
|
|
|
|
}
|