esmp3/include/playlist_manager.h

20 lines
420 B
C
Raw Normal View History

#pragma once
#include <map>
#include <vector>
#include "playlist.h"
class PlaylistManager {
private:
std::map<String, String> _map;
std::map<String, Playlist*> _playlists;
std::vector<String> _unmapped_folders;
public:
PlaylistManager();
Playlist* get_playlist_for_id(String id);
Playlist* get_playlist_for_folder(String folder);
void dump_ids();
String json();
bool add_mapping(String id, String folder);
};