diff options
Diffstat (limited to 'music.h')
-rw-r--r-- | music.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,6 +1,8 @@ #ifndef MUSIC_H #define MUSIC_H +#include "http.h" + #include <boost/filesystem.hpp> #include <vector> #include <iostream> @@ -10,13 +12,13 @@ namespace fs = boost::filesystem; class MusicListing { public: fs::path path; - virtual void render(std::ostream& os) = 0; + virtual void render(HTTPResponse& res) = 0; }; class MusicTrack : public MusicListing { public: MusicTrack(const fs::path path); - virtual void render(std::ostream& os); + virtual void render(HTTPResponse& res); }; class MusicDirectory; @@ -29,7 +31,7 @@ class MusicDirectory : public MusicListing { MusicTracks tracks; MusicDirectory(const fs::path root); - virtual void render(std::ostream& os); + virtual void render(HTTPResponse& res); }; namespace music { |