Saucenao.hpp 621 B

1234567891011121314151617
  1. #pragma once
  2. #include "Page.hpp"
  3. namespace QuickMedia {
  4. class SaucenaoPage : public LazyFetchPage {
  5. public:
  6. SaucenaoPage(Program *program, const std::string &path, bool is_local) : LazyFetchPage(program), path(path), is_local(is_local) {}
  7. const char* get_title() const override { return "SauceNAO"; }
  8. bool submit_is_async() const override { return false; }
  9. PluginResult submit(const SubmitArgs &args, std::vector<Tab> &result_tabs) override;
  10. PluginResult lazy_fetch(BodyItems &result_items) override;
  11. private:
  12. std::string path;
  13. bool is_local;
  14. };
  15. }