diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Soundcloud.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/Soundcloud.hpp b/plugins/Soundcloud.hpp index 0f397a1..873de5a 100644 --- a/plugins/Soundcloud.hpp +++ b/plugins/Soundcloud.hpp @@ -4,6 +4,8 @@ #include "../include/AsyncTask.hpp" namespace QuickMedia { + class SoundcloudPlaylist; + class SoundcloudPage : public Page { public: SoundcloudPage(Program *program) : Page(program) {} @@ -44,10 +46,13 @@ namespace QuickMedia { class SoundcloudPlaylistPage : public SoundcloudPage { public: - SoundcloudPlaylistPage(Program *program, const std::string &playlist_name) : SoundcloudPage(program), playlist_name(playlist_name) {} + SoundcloudPlaylistPage(Program *program, SoundcloudPlaylist *playlist, const std::string &playlist_name) : SoundcloudPage(program), playlist(playlist), playlist_name(playlist_name), track_offset(0) {} const char* get_title() const override { return playlist_name.c_str(); } + PluginResult get_page(const std::string &str, int page, BodyItems &result_items) override; private: + SoundcloudPlaylist *playlist; std::string playlist_name; + size_t track_offset; }; class SoundcloudAudioPage : public VideoPage { |