#ifndef MOEBOORUCLIENT_H #define MOEBOORUCLIENT_H #include #include #include #include #include #include "nwutils.h" #include "curlresult.h" #include "tvshow.h" #include "filedownloadthread.h" #include "wallpaperdownloadclient.h" namespace Moebooru { using WallpaperDownload::FetchThread; using WallpaperDownload::Rating; using WallpaperDownload::SearchResult; using WallpaperDownload::Entry; class Client : public WallpaperDownload::Client { public: Client(QString baseUrl, int limit = 10, Rating ratingFilter = WallpaperDownload::ratingSafe); protected: Entry parseEntry(nw::Describer *de); SearchResult parseSearchResult(std::stringstream &, int limit); CURL* curlClient(QString tag, CurlResult& userdata, const unsigned int page = 1); }; } #endif // MOEBOORUCLIENT_H